How do I fit an ellipse to a partial ellipse image?
2 ビュー (過去 30 日間)
古いコメントを表示
I have a binary image which contains a part of an ellipse. Now, I would like to fit an ellipse to this data:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190697/image.png)
I have tried regionprops, but this doesn't work because it doesn't contain a
whole ellipse:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190698/image.png)
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.
0 件のコメント
回答 (2 件)
Image Analyst
2018 年 5 月 20 日
See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_fit_an_ellipse_or_other_shape_to_a_set_of_XY_data.3F
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.
0 件のコメント
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 :)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!