finding black pixel position

2 ビュー (過去 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 Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by