Edges & Corners
Edges are 1D loci of intensity discontinuity; corners are 0D points where intensity changes in every direction. Both are derivative-based features built from the gradient operations of the previous chapter, and both feed downstream pipelines: edges into segmentation and contour analysis, corners into feature matching and SfM.
The Canny edge detector
A Computational Approach to Edge Detection (Canny, PAMI 1986) is the canonical edge detector and remains the reference algorithm for sharp, single-pixel-width edges. The pipeline is four stages:
- Smooth the image with a Gaussian to suppress noise.
- Compute the gradient
via convolution; the magnitude marks edge strength and the orientation marks the edge normal. - Non-maximum suppression along the gradient direction — keep only pixels that are local maxima of magnitude perpendicular to the edge.
- Hysteresis thresholding — accept any pixel above
, reject any below , accept the in-between band only if connected to a strong pixel.
Canny is the example of how a multi-stage classical pipeline (smoothing, derivatives, suppression, hysteresis) is needed to produce clean output from noisy inputs.
Harris corner detector
A corner is detected by looking at how the second-moment matrix behaves in a window:
The eigenvalues of
Local maxima of
FAST corners
FAST: Features from Accelerated Segment Test (Rosten & Drummond, ECCV 2006) is the algorithm of choice when corner-detection cost matters (real-time SLAM, embedded systems). For each candidate pixel
Edges and corners in the deep era
Modern detectors and descriptors (SuperPoint, KeyNet, DISK) re-derive these signals as side outputs of CNNs trained for downstream tasks. SuperPoint, for example, predicts a corner heatmap and a per-pixel descriptor jointly, distilling years of hand-crafted detector design into a single forward pass. The classical edge/corner story matters because it explains what those networks learn and why the receptive-field, scale, and threshold considerations remain relevant.
What to read next
- Local Features (SIFT, SURF, ORB) — turning corners into matchable descriptors.
- Image Pyramids & Scale-Space — the multi-scale extension that makes detectors scale-invariant.
- Linear Filters & Convolution — the gradient operators these detectors are built on.