Removing Excess White from Binary Image

2 vues (au cours des 30 derniers jours)
Brian Peoples
Brian Peoples le 19 Juin 2019
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

Réponse acceptée

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

Plus de réponses (1)

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

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by