How to saperate these overlapping objects ?
Mostra commenti meno recenti
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 Commenti
KALYAN ACHARJYA
il 18 Nov 2019
Can you elaborate more with the color symbol indicated by marker?
You can use paint?
Namrata Patil
il 18 Nov 2019
Risposte (2)
Image Analyst
il 18 Nov 2019
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.
Categorie
Scopri di più su Region and Image Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!