Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Canny Edge Detection Algorithm

Numerical Algorithm

The Canny edge detector is a multi-stage algorithm for finding the edges, the boundaries of sudden brightness change, within a digital image. It first smooths the image with a Gaussian filter to suppress noise, then computes the intensity gradient at every pixel to find both the strength and direction of the brightest rate of change; it thins the resulting ridges of gradient magnitude down to single-pixel-wide lines through a step called non-maximum suppression, which keeps only the pixels that are local maxima along the gradient direction, and finally applies a double threshold followed by edge tracking by hysteresis, keeping strong edges outright, discarding weak isolated responses, and keeping weak edges only where they connect to a strong one. John Canny developed the algorithm in 1986 alongside a computational theory explaining why the method finds edges accurately, avoids marking spurious edges from noise, and marks each true edge only once, and it remains one of the most widely used edge detection algorithms in computer vision.

Facts
Time Complexity
Time Complexity (category)
Linear Time -- O(n) 1
Connections

In Field

Source Canny edge detector (Wikipedia)
Sources
1. Canny Edge Detection Algorithm (Wikipedia)
Wikipedia infobox: time complexity linear
Quote, Wikipedia infobox: time complexity linear
linear
View the Source
Canny edge detector (Wikipedia)
In Field: Algorithms and Complexity Theory, Lead
Quote, In Field: Algorithms and Complexity Theory, Lead
The Canny edge detector is an edge detection operator that uses a multi-stage algorithm to detect a wide range of edges in images.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.