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 Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by