필터 지우기
필터 지우기

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

조회 수: 18 (최근 30일)
Surendra Ratnu
Surendra Ratnu 대략 8시간 전
댓글: Image Analyst 대략 5시간 전
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 ??
  댓글 수: 2
Torsten
Torsten 대략 3시간 전
편집: Torsten 대략 7시간 전
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.
Surendra Ratnu
Surendra Ratnu 대략 5시간 전
This image has the close loop shape in white pixels.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 대략 7시간 전
I don't even know what "fill with a different diameter" means, but you might try imfill
mask = imfill(mask, 'holes');
  댓글 수: 2
Surendra Ratnu
Surendra Ratnu 대략 4시간 전
@Image Analyst, I attached another image. There are the circles in red colour, So i want to fill this region like these circle or fit the different circle inside the close curve (which is showing in white pixels) and need to find the all inscribed circle diameter.
Image Analyst
Image Analyst 35분 전
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.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by