how can fill gaps in binary image?

 Respuesta aceptada

Image Analyst
Image Analyst el 24 de Dic. de 2014
What do you want to fill the gap with? A uniform color, like white? If so...
grayImage(row1:row2, col1:col2) = 255;

2 comentarios

Abo
Abo el 24 de Dic. de 2014
thank you for your answer. yes, uniform color (white), but I dont know how can I use 'grayImage(row1:row2, col1:col2) = 255;' in the mentioned demo?
Image Analyst
Image Analyst el 24 de Dic. de 2014
What is the name of your image variable? Replace my "grayImage" with your variable name. What rows and columns do you need replacing? Just assign them to row1, row2, col1, and col2.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

Abo
el 24 de Dic. de 2014

Comentada:

el 24 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by