How to saperate these overlapping objects ?

12 ビュー (過去 30 日間)
Namrata Patil
Namrata Patil 2019 年 11 月 18 日
コメント済み: Namrata Patil 2020 年 4 月 22 日
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 日
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 日
  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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by