finding black pixel position

2 次查看(过去 30 天)
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 中查找有关 Historical Contests 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by