Canny Edge Detection
5 STEPS 5 STEPS Apply Gaussian filter to smooth the image in order to remove the noise Apply Gaussian filter to smooth the image in order to remove the noise Find the intensity gradients of the image Find the intensity gradients of the image Non-maximum suppression is an edge thinning technique. Non-maximum suppression is an edge thinning technique.edge thinningedge thinning Apply double threshold to determine potential edges Apply double threshold to determine potential edges Track edge by hysteresis: Finalize the detection of edges by suppressing all the other edges that are weak and not connected to strong edges. Track edge by hysteresis: Finalize the detection of edges by suppressing all the other edges that are weak and not connected to strong edges.
Gaussian Filter Gaussian Smoothing Gaussian Smoothing In 2-D, an isotropic (i.e. circularly symmetric) Gaussian has the form: In 2-D, an isotropic (i.e. circularly symmetric) Gaussian has the form:
Gaussian Filter The figure shows a suitable integer-valued convolution kernel that approximates a Gaussian with a σ of 1.0. The figure shows a suitable integer-valued convolution kernel that approximates a Gaussian with a σ of 1.0.
Intensity Gradients Example Example
Intensity Gradients Example Example
Intensity Gradients Example Example
Intensity Gradients OpenCV OpenCV
Non-maximum suppression Example Example
Thresholding Edges are found by thresholding the output of NONMAX_SUPRESSION Edges are found by thresholding the output of NONMAX_SUPRESSION If the threshold is too high: If the threshold is too high: Very few (none) edges Very few (none) edges High MISDETECTIONS, many gaps High MISDETECTIONS, many gaps If the threshold is too low: If the threshold is too low: Too many (all pixels) edges Too many (all pixels) edges High FALSE POSITIVES, many extra edges High FALSE POSITIVES, many extra edges
Thresholding Use a high threshold to start edge curves and a low threshold to continue them.
Edge Detection With Hysteresis Low thresholdHigh threshold Hysteresis (high and low threshold)
Edge Tracking Hysteresis thresholding [Canny ’86] Strong edge Weak edges Strong edges reinforce weak edges. We call a pixel an edge if it is strong. We also call a pixel an edge if it is weak but is connected to an edge. A pixel is connected to an edge if it is in a direction perpendicular to the edge normal Weak edge removed edges
References asses/EdgeDetect.pdf asses/EdgeDetect.pdf asses/EdgeDetect.pdf asses/EdgeDetect.pdf ADD/cannyedge.pdf ADD/cannyedge.pdf ADD/cannyedge.pdf ADD/cannyedge.pdf CSc83020_lec06_EdgeDetection2.ppt CSc83020_lec06_EdgeDetection2.ppt CSc83020_lec06_EdgeDetection2.ppt CSc83020_lec06_EdgeDetection2.ppt gsmooth.htm gsmooth.htm gsmooth.htm gsmooth.htm