How do I fit an ellipse to a partial ellipse image?

조회 수: 8 (최근 30일)
D Kemper
D Kemper 2018년 5월 20일
답변: Michal 2022년 5월 18일
I have a binary image which contains a part of an ellipse. Now, I would like to fit an ellipse to this data:
I have tried regionprops, but this doesn't work because it doesn't contain a
whole ellipse:
How can I fit an ellipse following the borders of the partial ellipse image?
It would be even better to separate the binary image in a left and right part and fitting two separate ellipses for the left and right part.
Any help is appreciated.

답변 (2개)

Image Analyst
Image Analyst 2018년 5월 20일
Be sure to remove any points where y = 1 or y = the number of rows in the image because you do not want to include the flat top and bottom in the fit.

Michal
Michal 2022년 5월 18일
I've use this one from Matlab File Exchange in the past and it worked nicely
kudos to Ohad Gal for this one :)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by