How to remove few part of a circle?

2 Ansichten (letzte 30 Tage)
Zara Khan
Zara Khan am 2 Mär. 2019
Kommentiert: Zara Khan am 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.

Antworten (1)

Image Analyst
Image Analyst am 2 Mär. 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 Kommentare
Image Analyst
Image Analyst am 31 Okt. 2019
Again, you'd have to use an RGB image.
Zara Khan
Zara Khan am 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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by