Return coordinate of a first nonzero value pixel from a matrix of an image.

3 Ansichten (letzte 30 Tage)
Hai friends, I have a binary image. I want my function return coordinate of the first nonzero value pixel from a selected row. How can I achieve this ? Thankq..

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Dez. 2011
find(YourImage(TheRow,:),1)

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by