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

4 vues (au cours des 30 derniers jours)
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..

Réponse acceptée

Walter Roberson
Walter Roberson le 10 Déc 2011
find(YourImage(TheRow,:),1)

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by