Find Objects that are touching Circles

조회 수: 8 (최근 30일)
Lorenzo Tum
Lorenzo Tum 2021년 3월 19일
댓글: Lorenzo Tum 2021년 3월 22일
Hi Community,
I have an Image where I put the pixel values of the circles to 0.5 so they are gray. I achieved this via findcircles and than I created a new Image where I put disks with the certain radii´s at the certain centers. I thought that it would be easier like this but I am struggling to identify now the touching objects. If it would be better to work with the binary image let me know.
Some circles are touching other objects and I want to detect those objects (count them, regionprop them). Is there any way this works?
Thank You very much

답변 (1개)

Manas Meena
Manas Meena 2021년 3월 22일
If i understand your question correctly you want to detect the overlapping shapes in your given image. 'regionprops' can be applied to look for shapes with higher solidity. Also, You can try to use ellipse measurements for detecting the smaller blobs.
props = regionprops(mask, 'Solidity', 'MajorAxisLength', 'MinorAxisLength');
For circles the minor and major axes'lengths should be roughly equal.
The following blogs posts might be a good starting point:
  댓글 수: 1
Lorenzo Tum
Lorenzo Tum 2021년 3월 22일
Thanks for your answer but it is not yet the way I want to have the code.
I am trying to detect the non circular objects that are touching the circular objects.

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

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by