Automatically fit a circle on an arc in image and to plot the circle in the image.

40 ビュー (過去 30 日間)
I have an processed image (top image as shown here) where I have an arc portion that can be fitted into a circle. I need to fit an appropriate circle on this arc and plot it in the existing image (as shown in the bottom image). I need to fit the circle on the arc automatically as I have to go through batch of images for this process. How can I get the bottom image from the top one? FYI, the second image is cropped from word file and looks magnified.

採用された回答

Jonas
Jonas 2021 年 7 月 8 日
This may help you
  3 件のコメント
Jonas
Jonas 2021 年 7 月 8 日
編集済み: Jonas 2021 年 7 月 8 日
use
[y,x]=find(im);
on your image im. this finds all non zero elements in the image. you can then delete some points with big and small x coordinate to remove the influence of the non arc part at the ends of the white shape
Anjan Goswami
Anjan Goswami 2021 年 7 月 11 日
Thanks Jonas, it works.

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

その他の回答 (1 件)

Stephan
Stephan 2021 年 7 月 8 日
This example from the documentation appears to be suitable for your case.

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by