How can I find the round polygons

조회 수: 1 (최근 30일)
Neil Liu
Neil Liu 2015년 4월 1일
댓글: Neil Liu 2015년 4월 13일
Hello everybody!Wish you have a good day!
I want to automatically find the round polygons (it is the binary information of myocardium) in these images in order to locote and get their centers. But "imfindcircles" won't find it. Could you please tell me how to find these polygons? The following is the images and what I want to get (I marked the parts I wanted manually) The 3 orignal images:
The images I want:
Thank you for helping!
Best regards Neil
  댓글 수: 7
Neil Liu
Neil Liu 2015년 4월 2일
@Mohammad Abouali, dear sir, this is the point. I have no idea how to get the criteria. In fact, I just need to know the center of the object I marked.
Michael Haderlein
Michael Haderlein 2015년 4월 2일
Ok, but only given these processed images, how do you as an expert know that the object of interest are the ones you have marked an not the other ones? We cannot find the criterion because we have no idea of myocardia and I guess most people here would have chosen the ones I have described in my first comment. A criterion could also be that these nearly perfect octagons are not the correct objects. Then you can first filter them out and then find the roundest element. But if then you have a fourth image and there is a hexagon which isn't what we're looking for, this will mess up everything again. So we first need a good criterion.

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

채택된 답변

Image Analyst
Image Analyst 2015년 4월 11일
This is really not very hard. Circularity is the usual method that works pretty well in most cases.
circularities = perimeters .^ 2 ./ (4 * pi * areas); % <= ~3 or 4 is pretty rounded
There are other criteria you can use if you need to: http://en.wikipedia.org/wiki/Roundness_%28object%29. Let me know if you still need help and I can whip out a program in a few minutes.
  댓글 수: 3
Image Analyst
Image Analyst 2015년 4월 11일
Well they're certainly close. You'd have to look at a bunch of properties and see exactly which values describe the one you want and not the others. You might have to have very close/tight thresholds. You're the one who picked that particular blob so I would not think you would ask - I think you would know what's different about that one. Maybe your criteria is to pick only one blob, and you pick the one blob that is round enough and is closest to the center of the image. Who knows? I don't know - it's your image and your decision. You should know.
Neil Liu
Neil Liu 2015년 4월 13일
Thank you Mr Image Analyst. I know the coordinate range of the blob. So it could be the criteria

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labeling, Segmentation, and Detection에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by