Skip to main content

Module surf

Module surf 

Source
Expand description

Speeded-Up Robust Features (SURF).

SURF is a faster relative of SIFT built on the integral image, in which the sum of any axis-aligned rectangle costs four lookups regardless of its size. Following Bay et al. (2008):

  1. Detection. The determinant of the Hessian Dxx Dyy − (0.9 Dxy)² is approximated with box filters of increasing size (9, 15, 21, 27, then 15, 27, 39, 51, … in octaves). Instead of shrinking the image, SURF grows the filter, so each scale costs the same. Local maxima over position and scale are refined with a quadratic fit.
  2. Orientation. Haar-wavelet responses in a circle of radius 6s are weighted by a Gaussian and a π/3 window is slid around the circle; the window with the longest summed response gives the dominant orientation.
  3. Descriptor. A 20s × 20s square aligned with that orientation is divided into 4×4 subregions of 5×5 Haar samples; each subregion contributes (Σdx, Σdy, Σ|dx|, Σ|dy|), giving a 64-vector normalised to unit length. (upright skips orientation for speed when images are not rotated.)

The image is normalised to [0, 1] first, so the detection threshold is relative to its dynamic range. The sign of the Laplacian (Dxx + Dyy) is stored so bright blobs on dark and dark on bright are never matched.

See the book entry Local features.

Structs§

IntegralImage
An integral image (summed-area table): box_sum of any rectangle in four lookups.
SurfKeypoint
A SURF keypoint with its descriptor.
SurfParams
SURF parameters.

Functions§

surf
Detects SURF keypoints and computes their descriptors.