Harris Corner Detection

Harris corner detection is a corner detection algorithm used to identify corner points in an image where the intensity changes significantly in both directions (i.e., where edges intersect or where there is strong local variation). These points are often good features to track or match between images.

For each pixel , consider a small window and compute the sum of squared differences (SSD) between the window and its shifted version:

where is a Gaussian weighting function.

Approximating with a Taylor expansion leads to

where is the second-moment (structure) matrix.

The eigenvalues of describe intensity variation, such that a point can be a corner (both large), an edge (one large), or a flat region (both small).

To avoid explicit eigenvalue computation, Harris proposed a corner response function ,

such that pixels with large (positive and above threshold) are identified as corners. Here, is typically between 0.04–0.06.