When you look at a photograph, your eye effortlessly traces the contour of a face, a road, a leaf. Computers have to earn that ability. For decades, the best answer to the question "where are the edges in this image?" has been a four-step pipeline published by John Canny in 1986 — a pipeline so elegant that it still ships in almost every modern vision system.
An edge is simply a place where pixel brightness changes sharply. Smooth regions change slowly; boundaries between objects change fast. Canny's insight was to make that notion of "fast change" precise: compute the gradient of the image (how brightness varies in every direction), thin it down to single-pixel ridges, and then decide which ridges are real edges with a double threshold called hysteresis.
The result is a map of the image's skeleton — the outlines of every object, drawn with one-pixel-wide curves, without gaps in important lines and without noise masquerading as signal.
Comments
Loading comments...