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

3 ビュー (過去 30 日間)
Pramod Bhat
Pramod Bhat 2011 年 12 月 10 日
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