Removing Excess White from Binary Image

조회 수: 2 (최근 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 CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by