finding black pixel position

2 vues (au cours des 30 derniers jours)
mohd
mohd le 11 Avr 2012
Commenté : niranjan prasad le 1 Juil 2018
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...

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 11 Avr 2012
[ii,jj] = find(all(I==0,3))
[~,k] = unique(ii,'first')
ij = [ii(k) jj(k)]
  2 commentaires
mohd
mohd le 19 Avr 2012
many thanks andrei bobrov..:). its help me a lot.
niranjan prasad
niranjan prasad le 1 Juil 2018
Thanks a lot.This really works for me.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by