Segment certain regions of a binary image
1 次查看(过去 30 天)
显示 更早的评论
I have a binary image, which i would like to extract segments (labeled 1,2,3,4) from.

My previous approach to this was to sum the non-zero pixels on each line, and eventually get a plots with peaks. Using this plot, I determined the location of each peak using the built-in findpeaks function, along with their widths, in order to isolate these portions. This worked fairly well. However, using widths and location of the peaks does not give an accurate representation of the starting and ending points of the peaks.
I'm wondering if there is an alternative approach to this. Any suggestions would be appreciated.
Attached is a .mat file containing the binary data for this image.
6 个评论
Image Analyst
2015-11-17
Do you always know there will be straight segments in between the bushy ones? What if the whole plant looks like a bushy pine tree with no long "trunk-only" sections? Could that happen? Actually your section 3 and 4 don't have a straight run between them, and it's not straight after 4 either. How is some algorithm to know that segment 4 should not go all the way to the bottom? It looks like there are so many variations that you're going to have to have tons of special "rules" in any algorithm that can detect special cases/shapes.
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!