Change exact area in binary images from 1 to 0
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Eliska Paulikova
el 5 de Nov. de 2022
Comentada: Eliska Paulikova
el 5 de Nov. de 2022
Hello, I have this binary image, I know the center and the radius of that circle, and I would like to change this circle to black so from 1 to 0. My goal is to see only the little line without the circle. How can I do it?
Thank you so much
0 comentarios
Respuesta aceptada
Matt J
el 5 de Nov. de 2022
load BW
hole = bwareafilt(~BW,1,'smallest') ;
BW=BW& ~imdilate(hole,strel('disk',5));
imshow(BW)
Más respuestas (0)
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
