Non-binary Edge Detection

I'm in the process of writing an image alignment algorithm, and I cannot seem to figure out how to use the edge detection feature without returning a binary image. I've searched multiple forums, but I still can't seem to find an answer. Is there a step I'm missing?
example code:
A = imread('cameraman');
B = edge(A);
imshow(B)
How do I make this a gradient and not binary?

 Respuesta aceptada

Jeff E
Jeff E el 10 de Oct. de 2013

0 votos

You'll want to use the IMGRADIENT function.

1 comentario

Joe
Joe el 10 de Oct. de 2013
This is exactly what I was looking for. Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

Joe
el 10 de Oct. de 2013

Comentada:

Joe
el 10 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by