How to saperate these overlapping objects ?

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
KALYAN ACHARJYA 2019년 11월 18일
Can you elaborate more with the color symbol indicated by marker?
You can use paint?
Namrata Patil
Namrata Patil 2019년 11월 18일
I want to place green circle over circular objects and an ellipse over elliptical objects. But as some objects are overlapping I have to seperate them first by detecting their intersecting points.

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2019년 11월 18일

0 개 추천

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.
Image Analyst
Image Analyst 2020년 4월 22일

0 개 추천

댓글 수: 1

Namrata Patil
Namrata Patil 2020년 4월 22일
Thanks for helping. I am facing same error as Steve's code . Ellipse of same size doesn't fit if two cells are overlapped. For that I have to saperate them first.

댓글을 달려면 로그인하십시오.

제품

릴리스

R2014a

질문:

2019년 11월 18일

댓글:

2020년 4월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by