fit ellipse with noise

1 visualizzazione (ultimi 30 giorni)
Guillaume
Guillaume il 1 Set 2014
Risposto: Image Analyst il 1 Set 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

Risposte (1)

Image Analyst
Image Analyst il 1 Set 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

Community Treasure Hunt

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

Start Hunting!

Translated by