フィルターのクリア

How do I detect the ellipses in the image attached?

2 ビュー (過去 30 日間)
Ashutosh
Ashutosh 2013 年 7 月 6 日
This is a ring type target which I need to auto-detect and number. Currently I am trying to fit ellipse which is failing because I get all four connected components as separate ellipses.
What should be a robust strategy to detect the outer, the inner and the inner most ellipse so as to be able to detect code of the target?
In actual scenario, I will have many more targets like this in a single image, which will appear distorted depending upon the location of viewing camera.

回答 (1 件)

Image Analyst
Image Analyst 2013 年 7 月 6 日
Use bwconvhull() to get the convex hull of the whole set of objects. That will work better, but not perfect because you're missing a quadrant.
  7 件のコメント
Ashutosh
Ashutosh 2013 年 9 月 6 日
Absolutely correct Analyst.My mistake.
Image Analyst
Image Analyst 2013 年 9 月 6 日
You can't know the accuracy unless you have some "ground truth." I only told you one method: find the boundary points, then fit it to an ellipse. I don't know what you did after that for your second method. Did you then use poly2mask() to make a binary image and find the centroid with regionprops()?

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

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by