Removing Excess White from Binary Image

3 ビュー (過去 30 日間)
Brian Peoples
Brian Peoples 2019 年 6 月 19 日
回答済み: Image Analyst 2019 年 6 月 29 日
Hello--
So I have a binary image and I only want to remove white from specified areas, such as the corners. (These areas being the circles). How would I do this???
I attached the image.
Regards,
Brian P

採用された回答

Image Analyst
Image Analyst 2019 年 6 月 29 日
Try thresholding then masking
mask = grayImage > 250; % or whatever intensity the spots are.
grayImage(mask) = 0; % blacken those pixels.

その他の回答 (1 件)

Brian Peoples
Brian Peoples 2019 年 6 月 19 日
This image is not binary by the way, but i would use bwareaopen(BW,250) to do it

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by