Splitting an object in an image into segments
显示 更早的评论
I have a number of wavy lines in a logical image. Using bwlabel I am able to get the individual pixel indices for each line.
I was wondering if there is a way to select, on a single line, where you want to split it into segments, and return the pixel indices separately for the each segment a line is split into?
采纳的回答
更多回答(1 个)
Elisa
2013-7-18
0 个投票
In one I don't know...
But using few lines, after bwlabel, I would use regionprops with area propertie...In a third line, cut that piece of the matrix...
类别
在 帮助中心 和 File Exchange 中查找有关 Region and Image Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!