Hello,
I'm doing project on image processing, and in one of my module i need to extract the particular bunch of the pixels.I know the values of that pixel but i'm not getting how exactly to extract that values. so please help me to get out of this!
[PixelRows, PixelColumns] = find( YourImage(:,:,1) == RedValue & YourImage(:,:,2) == GreenValue & YourImage(:,:,3) == BlueVaue );
sir i appreciate your answer but my image is binary image, sorry i completely forgot to mention it!! Now what to do??
http://www.dabi.temple.edu/~shape/MPEG7/dataset.html sir here you can see the database which i'm using for my project work.
Dear Nikhil, Are you sure those are the images or they are just for example??...if so, please share the original image you are working on through flickr.com or picasa, tiny pic or any other photo sharing site...
Also, I feel that the labeling of image will be helpful for you..try image labeling once you label the regions of your image, it will be relatively easy to extract them...try once this might be helpful...
You say
So the question remains,
sir will you please mention what the value should i write in the function you mentioned above? i mean in the below function..
imagesc(YourImageData, 'Alphadata', YourImageData)
colormap(gray)
MPEG-7 dataset..
sir you can download it from below link. http://www.imageprocessingplace.com/downloads_V3/root_downloads/image_databases/MPEG7_CE-Shape-1_Part_B.zip
2 Comments
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/57295#comment_118827
What do you mean by "extract" in this case?
Are the pixels RGB or grayscale?
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/57295#comment_119185
sir, here extract means retrieval of those pixels, i mean only "1". and its a grayscale image and i converted it into binary image. how can i do this, please guide me!