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

1 view (last 30 days)
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..

Accepted Answer

Walter Roberson
Walter Roberson on 10 Dec 2011
find(YourImage(TheRow,:),1)

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!