Extract RGB value to decode
    5 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    

I'm trying to create a 2D Colour Barcode steganography which decodes a barcode into its corresponding text. On clicking the "Decode" button, the image must be decoded into its textual form.
I have given red, green, yellow and blue colours for letters A, B, C, D respectively. I want to decode this image by making use of RGB pixel values which will decide what's the letter.
The expected output for above image is ADBCD. Please help me!
[File_Name, Path_Name] = uigetfile('D:\');    %upload image by clicking on "Upload" button
 axes(handles.graph)            
imshow([Path_Name,File_Name])    %display image on axes in GUI window
0 Commenti
Risposte (1)
  Walter Roberson
      
      
 il 5 Apr 2019
        rgb2ind passing in a colormap of your four colors to get color indices.
9 Commenti
  Walter Roberson
      
      
 il 7 Apr 2019
				bwareafilt(mask0, SomeParameterGoesHere)   %get rid of small accidental matches
Vedere anche
Categorie
				Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!