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개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by