Removing Excess White from Binary Image

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

 Respuesta aceptada

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

Más respuestas (1)

Brian Peoples
Brian Peoples el 19 de Jun. de 2019

0 votos

This image is not binary by the way, but i would use bwareaopen(BW,250) to do it

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Jun. de 2019

Respondida:

el 29 de Jun. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by