How to remove few part of a circle?

7 次查看(过去 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 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by