fit ellipse with noise

3 views (last 30 days)
Guillaume
Guillaume on 1 Sep 2014
Answered: Image Analyst on 1 Sep 2014
Hello,
I have an image with something looking like an ellipse and some noise within the ellipse (see below).
I would like to determine the coordinates of the ellipse centre through ellipse fitting. In addition, I would like to have the uncertainty on these coordinates (like diag(sqrt(CovB)) with nlinfit).
Is there a MATLAB function that can help me remove the noise?
Should I use nlinfit with ellipse function as model or is there another function that is more appropriate?
Thanks! Guillaume

Answers (1)

Image Analyst
Image Analyst on 1 Sep 2014
That said, an easier answer is to fill the ellipse with imfill() then use regionprops() to get the centroid, orientation, and MajorAxisLength, and MinorAxisLength. If you need a tutorial in regionprops(), see my Image Segmentation Tutorial in my File Exchange http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862. Let me know if you need help

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!