How to saperate these overlapping objects ?
1 次查看(过去 30 天)
显示 更早的评论
I want to detect concave points of overlapping objects so that I can fit a circle and an ellipse or combination of 2 circles over it.
2 个评论
KALYAN ACHARJYA
2019-11-18
Can you elaborate more with the color symbol indicated by marker?
You can use paint?
回答(2 个)
Image Analyst
2019-11-18
Why not just use regionprops to look for blobs that have high solidity?
mask = imfill(mask, 'holes');
props = regionprops(mask, 'Solidity', 'MajorAxisLength', 'MinorAxisLength');
allSolidities = [props.Solidity]
allMajorAxesLengths = [props.MajorAxisLength]
allMinorAxesLengths = [props.MinorAxisLength]
nonConvexIndexes = allSolidities < 0.8; % or whatever.
circleIndexes = (allMajorAxesLengths ./ allMinorAxesLengths) < 1.5; % Or whatever.
Circles should have minor and major axes roughly the same.
Adapt as needed.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!