finding black pixel position

조회 수: 1 (최근 30일)
mohd
mohd 2012년 4월 11일
댓글: niranjan prasad 2018년 7월 1일
I need to scan black pixel row by row on image and store (or mark) only the position of first black pixel. after store the coordinate of first black pixel, do again in another row. this process is looping but i don't know how to do this. can anyone can help me...

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 4월 11일
[ii,jj] = find(all(I==0,3))
[~,k] = unique(ii,'first')
ij = [ii(k) jj(k)]
  댓글 수: 2
mohd
mohd 2012년 4월 19일
many thanks andrei bobrov..:). its help me a lot.
niranjan prasad
niranjan prasad 2018년 7월 1일
Thanks a lot.This really works for me.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by