Image comparison with respect to edges

I want to compare two pictures with respect to edges.
I have a slit that moves over lens and camera takes pictures for each step on lens.
To detection of starting point of lens, i want to take pictures continuously and use edge detection to compare with old picture until having a picture with edges.
For example the first picture is completely dark (completely zero on binary) and the next picture has some 1s on binary. How can i compare and tell to program if an edge occurs?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Jun. de 2011
Unless I am missing something (and I probably am),
any(Image(:))
will be true if and only if there are some non-zero elements in Image.

1 comentario

Can Acar
Can Acar el 25 de Jun. de 2011
Thank you very much, this would be a good idea, i will apply!

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by