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

1 次查看(过去 30 天)
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..

采纳的回答

Walter Roberson
Walter Roberson 2011-12-10
find(YourImage(TheRow,:),1)

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by