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

image analysisimage processing

grayscale image

Best Answer

row_has_some_zero = find( any(YourImage == 0, 2) );
row_is_all_zero = find( all(YourImage == 0, 2) );