Machine learningComputer VisionCorner detectionAlgorithm

Harris Corner Detection

Also known as: Harris Corner Detector, Harris-Stephens Detector, Plessey Operator

OriginatorChris Harris and Mike StephensYear1988Sources2Related methods15

The Harris corner detector, introduced by Chris Harris and Mike Stephens in 1988, is a foundational method for identifying corners and interest points in digital images. Harris corners are points where two edges meet at a significant angle, making them stable and repeatable features for image analysis, matching, and 3D reconstruction.

Key highlights

  • Simple, interpretable method based on well-understood mathematical principles
  • Computationally efficient compared to multi-scale methods like SIFT
  • Good localization accuracy; corners are precisely located
  • Robust to small intensity variations and slight rotations
  • Produces stable, repeatable interest points suitable for matching

Intuition

This section is available to Pro members. Upgrade to Pro

How it works

This section is available to Pro members. Upgrade to Pro

When to use it

Use Harris corners for feature-based image registration, motion estimation, and 3D reconstruction where robust interest points are needed. Harris works well on images with clear geometric structure and sufficient texture. Avoid Harris when images are heavily blurred or contain repetitive patterns; consider SIFT or learning-based detectors for highly variable viewpoint or illumination changes, or when absolute scale invariance is required.

Strengths & limitations

Strengths
  • Simple, interpretable method based on well-understood mathematical principles
  • Computationally efficient compared to multi-scale methods like SIFT
  • Good localization accuracy; corners are precisely located
  • Robust to small intensity variations and slight rotations
  • Produces stable, repeatable interest points suitable for matching
Limitations
  • Not inherently scale-invariant; corner response varies significantly with image zoom
  • Sensitive to edge orientations; may detect many corners along straight edges with texture
  • Performance degrades under significant viewpoint changes or affine transformations
  • Relies on careful parameter tuning (window size, threshold, smoothing) for different image types

Common pitfalls

This section is available to Pro members. Upgrade to Pro

Applications

This section is available to Pro members. Upgrade to Pro

Frequently asked

What is the structure tensor M and how does it relate to corner detection?

The structure tensor (or auto-correlation matrix) M is a 2×2 matrix that captures the directional properties of image gradients in a small neighborhood. Its eigenvalues reveal the magnitude of intensity change in the principal directions: if both eigenvalues are large, the neighborhood contains a corner; if one is large and one small, it's an edge; if both are small, it's a flat region. Harris uses the eigenvalues to compute a corner response score.

Why is Gaussian smoothing applied before Harris corner detection?

Gaussian smoothing reduces noise and creates a more stable structure tensor by averaging gradients over a region. Without smoothing, small random intensity fluctuations produce misleading gradient patterns and spurious corner detections. The smoothing scale (sigma parameter) controls how large a neighborhood influences the corner response.

How does Harris compare to FAST corner detection?

FAST (Features from Accelerated Segment Test) is much faster than Harris because it uses a simple rule—checking if pixels in a circle around a candidate point are significantly brighter or darker—rather than computing eigenvalues. Harris is more theoretically principled and produces more stable corners, but FAST is preferred in real-time systems. ORB combines FAST detection with a descriptor for practical use.

Can Harris corners be made scale-invariant?

Yes, by applying Harris detection at multiple image scales (a scale-space pyramid) and selecting corners that appear consistently across scales. However, this multi-scale extension is computationally expensive. SIFT essentially incorporates scale-space Harris-like detection into a more comprehensive framework with additional robustness properties.

Sources

  1. 1.
    Harris, C., & Stephens, M. (1988). A combined corner and edge detector. Alvey Vision Conference, 147–152.
  2. 2.
    Förstner, W., & Gülch, E. (1987). A fast operator for detection and precise localization of distinct points, corners and centres of circular features. ISPRS Intercommission Conference on Fast Processing of Photogrammetric Data, 281–305.

You have read it. What now?

Cite this page

ScholarGate. (2026, June 3). Harris Corner Detection. ScholarGate. https://scholargate.app/computer-vision/harris-corner-detection

Harris Corner Detection | ScholarGate