How can i fit the inscribed circle with different diameter in an image ??

4 ビュー (過去 30 日間)
Surendra Ratnu
Surendra Ratnu 2024 年 7 月 25 日
コメント済み: Image Analyst 2024 年 7 月 25 日
I have an image which has the close shape. I need to fill the the close loop with different diameter in the image. Can anyone give the suggestion for that ??
  1 件のコメント
Torsten
Torsten 2024 年 7 月 25 日
編集済み: Torsten 2024 年 7 月 25 日
A graphics that shows what you want to do would be helpful.
The image you included has content that I cannot relate with your question.

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

回答 (1 件)

Image Analyst
Image Analyst 2024 年 7 月 25 日
I don't even know what "fill with a different diameter" means, but you might try imfill
mask = imfill(mask, 'holes');
  1 件のコメント
Image Analyst
Image Analyst 2024 年 7 月 25 日
Why do you wan tto do this? And your image is of such low resolution it's hard to see what's going on but somehow I guess you've drawn circles inside the white outline, right? Can you attach higher resolution images, both with and without the red circles?
Have you tried viscircles?
If you want to know the largest circle that can fit at any point in the image you can use bwdist which tells you the distance in pixels from every point in the shape (you need to fill it first with imfill) to the nearest edge/border pixel.

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

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by