Info
This question is closed. Reopen it to edit or answer.
segmented parts should be treated as seperate regions
1 view (last 30 days)
Show older comments
i segmented the image . now each segmented part should be considered as region . i dont understand how to seperate as regions. i uploaded the segment image
0 Comments
Answers (1)
Image Analyst
on 25 Apr 2014
You call bwlabel(). It's all explained in gory detail in my well-commented Image Segmentation Tutorial in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
2 Comments
Image Analyst
on 27 Apr 2014
What? How could it fail? What are you talking about how many neighborhoods? There is only one neighborhood when talking about connected components - it's the 8 surrounding pixels, of which you can either consider 4 of them or all 8 of them depending on the connectivity you want. What does this say:
whos bw
You can also attach your image, either the binary image or the original image plus code to generate the binary image. Also, you say "i failed" but the only thing I can see that you failed at was in attaching images, code, or error messages. You can help us to help you by giving us the information you think we'd need to reproduce your labeling problem.
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!