I want to know at which rows of a gray scale image the intensity values are zeros and want to insert my pixel values in that rows at specific interval

1 visualización (últimos 30 días)
grayscale image

Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Nov. de 2015
row_has_some_zero = find( any(YourImage == 0, 2) );
row_is_all_zero = find( all(YourImage == 0, 2) );
  3 comentarios
Walter Roberson
Walter Roberson el 13 de Nov. de 2015
For example with the specific interval 23 and starting at column 17:
YourImage(row_is_all_zero,17:23:end) = 1;
Ram
Ram el 16 de Nov. de 2015
thanks but i need to give different pixel values not smiliar to all rows

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by