Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How can I extract and highlight the white portion of an image?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How can I extract the white portion of an image (see attached), or delete the black portion so that I have only the holes in the original image left? Also, how can I fill them in so I am able to see them?
0 comentarios
Respuestas (1)
Mark Saad
el 21 de Jun. de 2018
Editada: Mark Saad
el 21 de Jun. de 2018
You can try this link: https://www.mathworks.com/discovery/edge-detection.html
and this video: https://www.mathworks.com/videos/edge-detection-with-matlab-119353.html
Or since your image is purely black and white, you can try this:
img = imread('yourimage.png');
subplot(1,2,1);
imshow(img);
img = imcomplement(img);
subplot(1,2,2);
imshow(img)
1 comentario
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!