I have a image, i want to divide into blocks until each pixel in block have same value for example in the link below i have an image
http://www.sendspace.com/file/vp3njo
The image consists of waters ,leaves and green parts ,i want to dive into a block containing same values
please help
kash, I know you've been doing image processing for over a year now and I know you know about bwlabel() and bwconncomp(), so tell me why doing something like
labeled67blobs = bwlabel(grayImage == 67); % Similar for any other number.
is not doing what you want?
The image is http://imgur.com/upT3y
i saw tour demo at
http://www.mathworks.in/matlabcentral/answers/46705-how-images-are-divided-into-sub-images
like that i want to divide as in peppers image,
want to divide into sub image such that wach subimage has same pixel value
4 Comments
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/54914#comment_113761
You mean each pixel _exactly _the same? there might not even be such a block in your image. Plus what do you mean with dive into?
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/54914#comment_113763
I do not see any picture on the linked page, but a lot of advertisments.
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/54914#comment_113766
im= 64 65 66 69 69 64 66 68 70 72 64 64 66 67 73 64 62 64 62 67 63 60 62 63 66 64 62 60 63 67 67 63 61 61 65 67 68 67 63 63Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/54914#comment_113789
I didn't see a picture immediately either. When I clicked on the download link, my company threw up a page that says they've forbidden us to go to that web site. Please pick a site where we can see the image immediately, like tinypic.com or dozens of others.
What do you mean "grouped" or "in a block"? I think of a block as rectangular - what if your contiguous set of gray levels is not rectangular? Can you have blob-shaped "blocks"? If so are you talking about connected components labeling like done with bwlabel and bwconncomp?