Is there any way to project certain matrix into the x, y coordinate system?

Hello,
I have a question regarding to image analysis.
Here, I have a image like this black and white image (or matrix).
I=imread(['111.png']);
imshow(I)
My final goal is find a best fit ellipse for the white area.
However, right now, I'm struggling how to find an ellipse equation, x2/a2+y2/b2=1 just in this matrix.
So, when we suppose center of the image as a center of the ellipse, is there any way to convert this image into x, y coordinate system or simpler way to find ellipse equation?

 採用された回答

Walter Roberson
Walter Roberson 2022 年 9 月 15 日
編集済み: Walter Roberson 2022 年 9 月 15 日

1 投票

3 件のコメント

HyoJae Lee
HyoJae Lee 2022 年 9 月 15 日
Appreciated!
Sorry, but is there effective way to get the boundary points in that matrix?
Walter Roberson
Walter Roberson 2022 年 9 月 15 日
https://www.mathworks.com/help/images/ref/bwboundaries.html
HyoJae Lee
HyoJae Lee 2022 年 9 月 16 日
Thank you for fast reply!
It helps a lot!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by