How to find first row with a nonzero element in an image matrix?

3 visualizaciones (últimos 30 días)
I am trying to find the first row in an image matrix with a non zero value in it.
PLS&THANK YOU!

Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de Ag. de 2019
Editada: Walter Roberson el 16 de Ag. de 2019
find(any(any(YourImage, 3),2),1,'first')

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by