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 view (last 30 days)
Ram
Ram on 13 Nov 2015
Commented: Ram on 16 Nov 2015
grayscale image

Accepted Answer

Walter Roberson
Walter Roberson on 13 Nov 2015
row_has_some_zero = find( any(YourImage == 0, 2) );
row_is_all_zero = find( all(YourImage == 0, 2) );
  3 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!