How to remove few part of a circle?

조회 수: 3 (최근 30일)
Zara Khan
Zara Khan 2019년 3월 2일
댓글: Zara Khan 2019년 11월 4일
I am drawing different radius circles over an image object using simple plot function. How can remove circle portion from background and will only left the portion that is going through image object.

답변 (1개)

Image Analyst
Image Analyst 2019년 3월 2일
You can make a mask and then use it to erase the part of the image you don't want
binaryImage(mask) = false; % Erase in mask
However your wording is so ambiguous, I don't know what the mask should be :
  1. the circle perimeter alone,
  2. the part inside the circle, or
  3. the part outside the circle.
Please explain better or attach a desired output image.
  댓글 수: 17
Image Analyst
Image Analyst 2019년 10월 31일
Again, you'd have to use an RGB image.
Zara Khan
Zara Khan 2019년 11월 4일
How can make the black background to white ,keeping circle portion instead ? Changing the black background to white making full image white.

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

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by