How to remove few part of a circle?

2 views (last 30 days)
Zara Khan
Zara Khan on 2 Mar 2019
Commented: Zara Khan on 4 Nov 2019
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.

Answers (1)

Image Analyst
Image Analyst on 2 Mar 2019
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 Comments
Image Analyst
Image Analyst on 31 Oct 2019
Again, you'd have to use an RGB image.
Zara Khan
Zara Khan on 4 Nov 2019
How can make the black background to white ,keeping circle portion instead ? Changing the black background to white making full image white.

Sign in to comment.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!