Borrar filtros
Borrar filtros

finding black pixel position

1 visualización (últimos 30 días)
mohd
mohd el 11 de Abr. de 2012
Comentada: niranjan prasad el 1 de Jul. de 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...

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by