close lines after edge detection
显示 更早的评论
Hi all, After edge detection and adding some circular object, I like to close the lines and fill each area. this is an example : http://i48.tinypic.com/35hq0cg.jpg
is there a way to close the lines without dilation or morfological operations? those would modify the accuracy of the detection.
回答(2 个)
Image Analyst
2012-5-28
1 个投票
Other options would be convex hull or restricted convex hull, or Sean's shrink wrap: http://www.mathworks.com/matlabcentral/fileexchange/29175-shrinkwrap
4 个评论
Elad
2012-5-29
Stelios Fanourakis
2019-8-9
Hi.
Did you manage to solve your issue? Image Analyst, is there a way to apply the convex hull to pixels?
Image Analyst
2019-8-10
Using a convex hull may not always be a good choice - it won't give the right shape in some situations. For a banana shape, it convex hull would give a D-shape. One must really look at the image and not just make blanket generalizations.
Stelios Fanourakis
2019-8-21
Image Analyst. I want to apply convex hull to a closed contour shape. Thus, the convex hull shape is more or less defined when applied to a closed contour. Isn't it?
Walter Roberson
2012-5-28
imfill( YourBWArray, 'holes' )
3 个评论
Elad
2012-5-28
Walter Roberson
2012-5-28
The example where the line leaves a gap: where should it attach to the main body? If the "accuracy of the detection" is an issue, every choice is wrong, unless there is external information available.
Elad
2012-5-29
类别
在 帮助中心 和 File Exchange 中查找有关 Object Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!