MATLAB Answers

Saad Abdullah

Edge Detectors

Asked by Saad Abdullah
on 22 Dec 2011
Accepted Answer by Naz

Which one is robust to detect weak edges while going unresponsive to noise? Sobel or Canny edge detectors?



No products are associated with this question.

3 Answers

Answer by Naz
on 22 Dec 2011
 Accepted answer

I would recommend you to try out all and see which one works better in your case. I had to do it once and I applied edge enhancement algorithms before using edge detection. In the following paper named nldiffusioncode.pdf you can read about three algorithms they developed. The code is free and the link is I could not find the actual webpage.

I also used adapthisteq function from matlab to enhance contrast before before edge enhancement and detection


Answer by Sean de Wolski
on 22 Dec 2011

Perhaps you could try testing and comparing them for your application:

doc edge


Answer by David Young
on 22 Dec 2011


  1 Comment

yeah i was also thinking about Canny, but I did not know whether it is unresponsive to noise or not. It is because when i set threshold value to 0.02, it shows more noise than sobel.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!