SURF: Speeded Up Robust Features
Paper · 2006 · Herbert Bay, Tinne Tuytelaars and Luc Van Gool
Summary
A museum visitor takes a photograph of an object from a different angle than the reference photograph. The object may appear smaller, the lighting may have changed, and the camera may capture less detail. To recognize it, a computer vision system can look for small patches that correspond across the photographs. SURF, short for Speeded Up Robust Features, tackles the work of finding those patches, describing them, and comparing their descriptions. Bay, Tuytelaars, and Van Gool aim to make all of these operations fast enough for practical use while preserving the ability to recover reliable matches from altered images.
The detector, called Fast-Hessian, looks for localized patterns of intensity at several sizes. It uses a mathematical test for curvature in the image, approximated by rectangular filters. An integral image, which stores cumulative pixel sums, makes each rectangle cheap to evaluate even when it covers a large area. Once the detector finds a point and estimates its scale, the descriptor summarizes intensity changes around it. It can align the patch to a direction estimated from the image itself, so a patch that turns in the image can still give a similar description. The standard descriptor has 64 components. An upright version, U-SURF, skips direction estimation when the expected camera motion makes that step dispensable, while SURF-128 keeps more information about the local pattern.
In the benchmark tests, Fast-Hessian was about as repeatable as its competitors on several image sequences and did better on Wall. On the first Graffiti image, detection took 120 milliseconds with Fast-Hessian and 400 milliseconds with the Difference of Gaussians detector. With feature counts matched for a separate timing comparison on the same image, the joint detection and description time was 354 milliseconds for SURF and 1036 milliseconds for SIFT. The descriptor tests gave the competing methods points from the same detector. SURF generally recovered more correct correspondences at comparable precision, and the extended descriptor usually improved on standard SURF at the cost of slower comparisons.
The museum experiment put the features into a complete recognition procedure. Each test photograph was assigned the identity of the object in the reference photograph that produced the most accepted point matches. SURF-128 reached 85.7% recognition on the museum test set, followed by U-SURF at 83.8% and standard SURF at 82.6%. SIFT reached 78.1%. The results show how the choice among SURF variants depends on where the work lies. Omitting orientation estimation can save time at extraction, while keeping a richer description can help recognition when additional matching work is acceptable.
Deep dive: SURF: Speeded Up Robust Features
SURF finds and matches distinctive points across images using fast box filters and compact descriptors designed to handle changes in scale and rotation. · about 36 minutes to read
The problem and its context
What a correspondence has to survive
A correspondence identifies something in one photograph as the same local structure seen in another. An image registration system can use such pairs to bring photographs into alignment. A reconstruction system can use them as observations of the same part of a scene from different viewpoints. In recognition, a collection of correspondences can indicate that a newly photographed object is the one shown in a reference image. These uses place a practical demand on the first stage of the work. A system needs enough reliable pairs to support the next decision, and it needs to find them within the time available to that application.
The paper breaks this task into detection, description, and matching. A detector selects promising locations, such as a corner, a roughly compact patch of contrasting intensity, or a junction where contours meet. An effective detector will select the same underlying structures after a change in viewing conditions. The paper calls this property repeatability. A location that looks conspicuous in a single image is of limited value if the detector cannot find its counterpart. A point's scale matters too. The patch around it needs to cover approximately the same local structure when that structure appears at a different size.
A descriptor takes over once a point has been found. It represents the surrounding patch as a vector of measurements that can be compared with vectors from another image. A small positioning error or change in lighting should leave the description similar enough to recognize. At the same time, different patches should remain distinguishable. A very detailed account of the pixel pattern can be sensitive to changes the application needs to tolerate. Summarizing the patch more broadly can make it stable, but the summary still needs to convey enough of the pattern to distinguish it from the other candidates.
Matching uses distances between vectors to decide which pairs deserve to be treated as correspondences. Euclidean distance, used in the museum experiment, measures the separation between feature vectors as points in a coordinate space. A long descriptor brings more component comparisons every time a distance is evaluated. That expense matters when a point has many potential partners, or when an application repeats the search across a collection of reference images. The paper accordingly treats vector length as a computational decision with consequences beyond the construction of the descriptor itself.
The intended range of geometric variation guides the design. Scale invariance addresses a feature's apparent size, and rotation invariance addresses turns in the plane of the image. A surface seen from a different viewpoint may also appear sheared, stretched more in one direction, or altered by perspective. The authors treat these effects as deformations that a robust descriptor can tolerate to a degree. They argue that the added complexity of full affine invariance is most likely to pay off when large viewpoint changes are expected. At the other end of the range, an application with an approximately level camera may be able to use the image axes directly. The upright variant follows from that more restricted set of viewing conditions.
The authors also choose a simple account of photometric variation, meaning changes in image brightness and contrast. They consider an additive shift in intensities and a change in their overall scale. Their features use intensity and omit color. This choice places the emphasis on patterns such as how brightness changes across a patch, and it lets the method use a common set of operations for both finding and describing those patterns.
How earlier detectors chose a location and a scale
In the paper's account, the Harris detector is a prominent starting point for finding corners. Its decision depends on eigenvalues of a matrix built from local image variation. Those values summarize how strongly intensity changes in different directions. The original Harris detector leaves scale unresolved. A photograph can contain useful structures of very different sizes, and a structure can appear at a different size in a second photograph. Scale selection lets each detected point carry an estimate of the size appropriate to its neighborhood.
Lindeberg's work supplied that idea of automatic scale selection. The paper describes tests with the Hessian determinant and the Laplacian, both of which derive from second derivatives of image intensity. Second derivatives express how the first changes in brightness are themselves changing. The Laplacian adds the curvature along the image axes. The Hessian determinant combines curvature in those directions with a correction for their interaction. In the comparison of earlier detectors discussed by the authors, Hessian-based selection had looked more stable and repeatable than Harris-based selection. They favored the determinant because elongated structures with poorly defined positions could more readily produce strong responses under the Laplacian.
Harris-Laplace and Hessian-Laplace made the roles of location and scale explicit. They found promising positions with a scale-adapted Harris measure or a Hessian determinant, then used the Laplacian to select the scale. This split gave the scale decision its own criterion. SURF's detector takes the earlier evidence in favor of the Hessian as a reason to use its determinant at both stages. The detector searches for a response that stands out in the image plane and among nearby scales.
The paper also draws a precedent for approximation from Lowe's Difference of Gaussians, or DoG. A Gaussian filter smooths an image by weighting nearby pixels, and the degree of smoothing can change with scale. The difference between images smoothed at nearby scales approximates the effect of a Laplacian of Gaussian filter. For the SURF authors, the point of the example is that a simplified calculation can retain the behavior needed for detection while reducing the numerical work. The paper also mentions earlier detectors based on regional entropy and on edges. These offered other definitions of a salient structure, though the authors saw less scope for accelerating them in the same way.
Why the arrangement inside a descriptor matters
Earlier descriptors surveyed in the paper draw on several kinds of local measurements, including Gaussian derivatives, moment invariants, steerable filters, and phase. The authors give particular attention to descriptors that record the distribution of finer-scale measurements inside a patch. Such a representation can keep a rough account of where things happen without requiring individual pixel positions to agree exactly. A boundary that moves slightly within a patch can still contribute to the same regional statistics.
SIFT illustrates this organization. It groups local intensity gradients by their orientation and by their position in the neighborhood. Here a gradient describes the direction and strength of the local increase in intensity. The SIFT representation in the paper uses 8 orientation bins in each part of a 4 × 4 layout, producing a 128-dimensional vector. The regional arrangement gives the descriptor a way to tell apart patches that contain similar directions of change in different places. The aggregation within regions gives it room to accommodate small errors in position and scale.
Two refinements help explain why SURF treats extraction and matching separately. PCA-SIFT applies principal component analysis to a gradient image to obtain a 36-dimensional descriptor. A shorter vector helps at comparison time, but the prior evaluation cited by the paper found lower distinctiveness than SIFT, and the work needed to compute the features reduced the overall speed benefit. GLOH, the other refinement discussed here, kept the same dimensionality as SIFT and was reported as more distinctive in an earlier comparison, with greater computational expense.
The authors regard SIFT as a practical baseline because it already combined relative speed with distinctive descriptions. They discuss earlier attempts to improve its speed at different points in the process. A hardware implementation substantially accelerated feature processing, and a best-bin-first search accelerated matching with an accuracy tradeoff. SURF pursues a design that a regular PC can compute and compare efficiently. The question is how much of the useful information in local gradient distributions can be carried by a small set of sums over the parts of a patch.
The method, step by step
From pixels to candidate matches
SURF first prepares a cumulative representation of the image so that sums over rectangular areas are quick to obtain. It uses those sums to look for structures of different sizes and selects points that have strong responses compared with their immediate neighbors in position and scale. Each point then serves as the center of a patch. The detector's estimate of scale sets the size of the patch and of the measurements taken within it. Standard SURF estimates an orientation before collecting the descriptor, while U-SURF uses an upright patch.
The resulting vector records how intensity changes within different parts of the patch. The vector is normalized so that a change in overall contrast has less effect on the comparison. The detector also makes a simpler distinction available during matching. A candidate can be labeled according to whether its local structure has one contrast polarity or the other. SURF uses that label to restrict which pairs receive a full vector comparison.
How SURF detects and matches local features
The steps in order.
Make rectangular sums cheap
The integral image stores a running total over both image coordinates. The entry for a pixel includes its intensity and the intensities of the pixels in the rectangle between that pixel and the origin. Written with the point's coordinates shown separately, the paper's definition is
IΣ(x, y) = ∑ᵢ₌₀ˣ ∑ⱼ₌₀ʸ I(i, j)
Here I is the input image, and I(i, j) is its intensity at horizontal coordinate i and vertical coordinate j. IΣ is the integral image, with Σ in its name indicating a cumulative sum. The coordinates x and y specify the end of the rectangle. The two ∑ symbols direct the calculation to include all indices i and j from the origin, whose coordinates are 0, through x and y respectively.
A sum over a rectangle anywhere in the image follows from the cumulative entries at its corners. Start with the total through the far corner. Removing the cumulative regions on the two sides excludes pixels beyond the desired rectangle. Their common part has then been removed twice, so it is added back. The paper counts four additions for the rectangular sum. The important property is that the same small set of operations covers a large rectangle as well as a small one.
A box filter places such rectangles in a fixed pattern and gives them weights. Evaluating the filter means adding up the weighted rectangle totals at each location. The weights determine the image pattern to which the filter responds. A filter may, for example, compare neighboring areas of a patch to catch a rise or fall in brightness. Areas assigned zero weight contribute nothing. Where a filter is composed of a few such areas, evaluating it through the integral image takes work determined by the layout, regardless of the number of pixels covered by the enlarged layout.
This property helps at two distinct stages. In the detector, it makes approximations to second derivatives cheap enough to evaluate across many locations and sizes. In the description stage, it makes Haar wavelet responses cheap at the measured scale of each point. Both stages get their local measurements from the same kind of cumulative sum, even though the measurements serve different purposes.
Look for localized curvature with Fast-Hessian
Consider a patch with a compact bright center surrounded by darker pixels. Moving across its center, intensity changes in a way that indicates a turn in the brightness profile. A different crossing direction can show a similar turn. Now consider a long, nearly straight band. Its profile can bend strongly across the band and change little along it. In choosing an interest point, a detector can use the distinction between curvature that supports a location in both directions and curvature that leaves the point poorly localized along the band.
The Hessian is the matrix that collects these curvature measurements at a given point and scale. The paper writes it as
H(x, σ) = [ Lₓₓ(x, σ) Lₓᵧ(x, σ) / Lₓᵧ(x, σ) Lᵧᵧ(x, σ) ]
H is the Hessian. The x used as its argument denotes the image location as a point, with horizontal coordinate x and vertical coordinate y. The symbol σ is the scale of the Gaussian used to form the derivative measurements. The brackets enclose the matrix, and the slash separates its rows. Lₓₓ is the image response to a Gaussian differentiated twice in the horizontal direction. Lᵧᵧ is the counterpart for the vertical direction, and Lₓᵧ uses a derivative in each direction. Each entry is formed by convolving the corresponding filter with the image, which means taking a weighted sum of nearby intensities at the indicated location. The mixed response appears in both off-diagonal positions.
The determinant of this matrix combines the two axis-aligned responses by multiplying them and subtracting the square of the mixed response. That arrangement gives the detector a measure of curvature in the neighborhood that accounts for the mixed term. The trace is a different reading of the same matrix. It simply adds the axis-aligned responses. The paper uses the determinant to find points and leaves the trace's sign for use during matching.
The authors acknowledge the appeal of Gaussian derivatives for scale analysis, then focus on the filters that can actually be evaluated on an image. A Gaussian must be sampled on a pixel grid and cut off to make a practical filter. Sub-sampling can still cause aliasing, where details that the coarser grid can no longer represent influence the sampled result. The paper also points out that a theoretical guarantee about new structures failing to appear at coarser scales does not extend from the one-dimensional setting to the two-dimensional case of interest. These considerations motivate testing a rougher approximation with a simpler computational form.
In Fast-Hessian, each derivative filter is replaced by a layout of weighted rectangles. The paper illustrates the approximation for the second derivative in the vertical direction and for the mixed derivative. The illustrations show how regions with a common weight stand in for parts of the smoother Gaussian derivative, with zero-weight areas omitted from the response. The corresponding horizontal derivative is treated in the same manner. At the finest scale, the 9 × 9 filters stand in for Gaussian derivatives with σ of 1.2.
A determinant is sensitive to the relative magnitudes of its input responses. Replacing the filters with boxes can change the magnitude of the mixed derivative relative to the axis-aligned derivatives. The authors compensate by comparing the filter norms at the initial scale. The relation in the paper is
(‖Lₓᵧ(1.2)‖F · ‖Dₓₓ(9)‖F) / (‖Lₓₓ(1.2)‖F · ‖Dₓᵧ(9)‖F) = 0.912… ≃ 0.9
In this expression Lₓᵧ and Lₓₓ denote the mixed and horizontal Gaussian derivative filters at the scale 1.2. Dₓᵧ and Dₓₓ denote their box approximations, with 9 specifying the side length of the initial masks. The notation ‖ ‖F gives the Frobenius norm, which measures the overall magnitude of a filter array by taking the square root of the sum of its squared entries. The centered dot multiplies the norms in each pair, and the slash divides the first product by the second. The ellipsis indicates further digits in the norm ratio. The approximate equality gives the simpler weight used by the detector.
With that weight, Fast-Hessian computes the response as
det(Happrox) = Dₓₓ Dᵧᵧ − (0.9 Dₓᵧ)²
Here det is the determinant and Happrox is the approximate Hessian at the location and scale being evaluated. Dₓₓ and Dᵧᵧ are the horizontal and vertical box-filter responses, and Dₓᵧ is the mixed box-filter response. Juxtaposition indicates multiplication. The weight 0.9 adjusts the mixed response before the superscript ² squares it. The minus sign subtracts the weighted square from the product of the axis-aligned responses. The paper also normalizes filter responses for mask size, keeping the Frobenius norm constant as the filters grow.
Search over position and size
A scale space is a collection of responses to image structure at different sizes. In a conventional image pyramid of the kind described in the paper, layers are made by repeatedly smoothing and sub-sampling the image. Structures measured by a fixed filter at coarser layers correspond to larger structures in the original photograph. Fast-Hessian can obtain a similar range of measurements by enlarging the filters and applying them directly to the same input image. A large box filter still consists of a few rectangle totals, so the cost of a filter evaluation stays independent of the mask's area.
The first layer uses the 9 × 9 mask and is assigned scale 1.2. The next sizes in the paper's sequence are 15 × 15, 21 × 21, and 27 × 27. The filter pattern keeps its relative proportions as far as the discrete layout permits. In the example with the 27 × 27 filter, the corresponding Gaussian scale is 3.6. The filter schedule is grouped into octaves, which are ranges of progressively coarser scales. The increment in mask size grows at octave transitions, from 6 to 12 to 24. Spatial sampling intervals can also double, allowing the detector to examine coarser layers on a wider grid. Each layer can be computed from the original image independently. The authors note the opportunity for parallel computation and evaluate their method without using it.
At this point the detector has an approximate determinant response for sampled positions across the stack of scales. It looks for a local peak using non-maximum suppression in a 3 × 3 × 3 neighborhood. The neighborhood spans positions in the image and the nearby scale layers. A response surrounded by a stronger one gives way to the stronger response. This step selects points whose locations and scales stand out together, using the same criterion for both.
The maximum found on that grid is then refined through interpolation in position and scale, following the method the authors attribute to Brown and colleagues. Interpolation estimates the location of the peak between samples. Scale refinement is particularly important when the sampled filter sizes are relatively far apart, as they are between the first layers within an octave. The refined scale feeds directly into the size of the descriptor's support. A change in which part of a patch is measured can change its vector even when the location in the image is close to correct.
The paper's sunflower field illustrates the kind of structure that the detector selects. The scene presents many compact structures that can give a Hessian response, and the detected points make that preference visible. An illustration from the Graffiti scene shows another consequence of assigning a scale to every point. Descriptor windows around different points can occupy visibly different areas of the same photograph.
Estimate a direction for the patch
When the image turns, directions defined by the image axes turn relative to the pictured object. SURF estimates an orientation from the neighborhood of the detected point and uses it as the reference for describing the patch. If that estimate follows a turn of the object consistently, measurements expressed in the patch's own axes remain comparable across the photographs.
The estimate uses Haar wavelets, filters that compare the intensities of neighboring rectangular regions. One filter measures a local change along the horizontal image direction and another measures it along the vertical direction. An integral image makes each response cheap, with six operations per direction according to the paper. Each sample contributes a pair of responses, which can be pictured as the horizontal and vertical coordinates of a vector. Its direction describes the direction of the measured change, and its length reflects the strength of that change.
The detector's scale estimate, s, sets the dimensions of this operation. The samples lie in a circle of radius 6s about the point, and their spacing is s. Each wavelet has side length 4s. Thus a larger feature supplies a larger physical neighborhood and uses larger filters to measure it. Before the responses are combined, they are weighted by a Gaussian centered at the point with σ of 2.5s. This gives stronger influence to samples near the center of the patch.
To choose a direction, the authors slide an angular window of width π/3 through the space of response directions. Here π is the circle constant, the angle is in radians, and the window gathers vectors that point within its current angular range. For each position of the window, SURF sums the horizontal components of the included vectors and separately sums their vertical components. The resulting vector records the combined strength and direction of the responses in that range. The direction of the longest resulting vector becomes the point's orientation.
The window width addresses a balance between two sources of instability. A very narrow window can select a single unusually strong sample. A wide window can pool several directions so that the strongest combined vector is only weakly distinguished from nearby alternatives. The authors chose the width experimentally. U-SURF omits the search and keeps the patch in the image's coordinate frame. It still uses the scale estimated by the detector.
Describe the spatial pattern of intensity changes
The descriptor uses a square centered on the interest point with a side length of 20s. In standard SURF, the square is aligned with the estimated orientation. The upright version keeps it aligned with the image. The square is divided into a 4 × 4 grid of subregions, each sampled at 5 × 5 regularly spaced locations. The grid preserves the rough layout of the intensity pattern. Changes on one side of the point can therefore make a different contribution from similar changes on the other side.
At each sample the algorithm measures a horizontal and a vertical Haar response with filters of size 2s. The horizontal and vertical axes for these descriptor responses are defined relative to the chosen patch orientation. This is distinct from the orientation-estimation stage, where horizontal and vertical image responses were evidence for choosing the patch axes in the first place. The sample responses used in the descriptor are weighted by a Gaussian centered at the interest point, with σ of 3.3s. Weighting the center more strongly reduces the influence of changes near the patch boundary, where small shifts or deformations can affect which part of the image is included.
Each subregion contributes the signed sum of the responses along each axis and the sum of their magnitudes along each axis. In the paper's notation, the local vector is
v = (∑ dₓ, ∑ dᵧ, ∑ |dₓ|, ∑ |dᵧ|)
The symbol v names the vector for a subregion. The variables dₓ and dᵧ denote the weighted Haar responses along the horizontal and vertical axes of the descriptor at a sample. Each ∑ runs over the sample points in the current subregion. The vertical bars indicate an absolute value, so the last entries accumulate magnitudes before any responses can cancel. The parentheses group the entries in their order in the vector.
The distinction between signed and absolute sums gives the subregion a compact account of the pattern it contains. In the paper's example of a nearly homogeneous area, all of the entries are small. In an area where intensity repeatedly rises and falls along the horizontal direction, horizontal changes can be strong even as their signed sum stays small. The sum of the absolute horizontal responses can still be large. A steady increase in intensity along the horizontal direction gives both a strong signed horizontal total and a strong magnitude total. Across the grid, the descriptor can record where these different kinds of local activity occur.
Putting the subregion vectors in spatial order produces the 64-component standard descriptor. Its responses already discount a uniform additive shift in brightness because Haar filters compare areas of the image. Under a common contrast multiplier, the entries change in magnitude together. The authors divide by the vector's length to obtain a unit vector, so the comparison emphasizes its pattern of components. Gaussian weighting, pooling over samples, and normalization handle different changes. Weighting adjusts the influence of locations, pooling reduces sensitivity to small movements of the pattern, and normalization removes a common change in vector magnitude.
Keep more detail when the matching budget permits
SURF-128 retains the same spatial grid but splits each group of sums according to the sign of the response along the other axis. The horizontal signed response and its absolute value are accumulated separately for samples where the vertical response is negative and where it is zero or positive. The vertical response and its magnitude are divided in the corresponding way using the sign of the horizontal response.
This split keeps information that a single total would pool together. Two patches can contain similar amounts of horizontal and vertical intensity change when those directions are summarized independently. They can still differ in how a horizontal change occurs together with a vertical one. Conditioning the sums on the other response makes some of those differences visible. The samples and their wavelet responses are already available, so the extended version changes the way the values are accumulated. The longer vector then brings extra work whenever two descriptors are compared.
The detector also supplies a small item of information that is kept outside this account of the patch's spatial pattern. The sign of the Laplacian, which is the trace of the Hessian, distinguishes the polarity of blob-like structures. The trace adds the horizontal and vertical curvature terms, both of which are available from detection. A bright structure surrounded by a darker background and a dark structure surrounded by a brighter background give different polarities. At matching time the authors compare descriptor vectors only when the polarity agrees. This reduces the candidate pool before the more expensive distance computation and, in their tests, slightly improves matching performance.
Decide what counts as a match
The paper evaluates two ways of accepting descriptor matches. A similarity threshold sets a cutoff on the comparison itself. Changing this cutoff changes how many pairs are accepted and how many of those pairs are correct. The nearest-neighbor ratio instead asks whether the best candidate has a comfortable lead over the next candidate. The attraction of a very close match is reduced if another point in the same reference image has a nearly equally close description.
The museum experiment uses the ratio test with Euclidean distance. Its acceptance rule can be written as
d₁ < 0.7 d₂
Here d₁ denotes the distance to the closest candidate descriptor and d₂ the distance to the second closest. The multiplier 0.7 is the experimental cutoff. The less-than sign indicates that the closest distance must fall below that fraction of the second closest distance for the pair to count as a match.
The method computes feature vectors from the input images through filtering and aggregation. Its adjustable design choices, such as the angular window for orientation and the layout of the subregions, were investigated experimentally. In museum recognition, the reference collection supplies examples to match against. The system counts the accepted local pairs for each test and reference image combination and transfers the object's identity from the reference image with the highest count.
Experiments and results
How the benchmark separates detection from description
The paper uses the real image sequences and evaluation software supplied by Mikolajczyk. The sequences include textured and structured scenes photographed or transformed under different conditions. This setup lets the authors ask related but distinct questions. A detector test asks whether the same structures are selected across views. A descriptor test asks whether the resulting local measurements can identify the correct partners. A fast detector can produce points that are hard to match, and a good descriptor can only act on the points that are available to it. Measuring the stages separately helps locate the source of a performance change.
Four sequences illustrate the detector comparison. Graffiti and Wall change the viewpoint, Boat combines zoom and rotation, and Leuven changes the lighting. Fast-Hessian is compared with Hessian-Laplace, Harris-Laplace, and DoG. The authors used the original implementations for the methods in their comparisons. They report that point counts were broadly similar on average and give the first Graffiti image, at 800 × 640, as an example of the settings, output counts, and detection times.
Repeatability relates the number of points recovered in both images to the smaller total number of detections in either image. Only the part of the scene visible in both views is considered. This restriction matters when one photograph includes structures outside the other's field of view. Those structures offer no opportunity for repeat detection. The use of the smaller count makes the score relative to the detections that the more limited of the two point sets could possibly share. Repeatability measures the detector's contribution before the descriptor has to distinguish those points from alternatives.
Fast-Hessian's repeatability was comparable to the other detectors on Graffiti, Leuven, and Boat in the reported comparisons. It did better on Wall. The viewpoint changes on Graffiti and Wall cause affine deformations, which can stretch or shear patches as well as turn them. The detectors in the comparison are designed for scale and image rotation. The viewpoint results therefore show how the tested methods tolerate those deformations incidentally to their design.
Detection time on the first Graffiti image
Detector computation time on the first Graffiti image
Fast-Hessian has the shortest detection time in the comparison.
The numbers
| System or setting | ms |
|---|---|
| Fast-Hessian (this paper) | 120 |
| DoG | 400 |
| Hessian-Laplace | 650 |
| Harris-Laplace | 1800 |
In this detector-only measurement, Fast-Hessian yielded 1,418 points at threshold 600. DoG yielded 1,520 points using its default setting. Hessian-Laplace yielded 1979 at threshold 1000, and Harris-Laplace yielded 1664 at threshold 2500. The thresholds belong to the respective detector responses. Their values specify the settings of the comparison, while the point counts show what those settings produced. The timing example represents similar workloads in the broad sense that all the methods returned substantial point sets, with differences in their exact output counts.
The timings were measured on a Linux PC with a Pentium IV running at 3GHz. On that machine and image, Fast-Hessian spent less time on detection than any of its competitors. Read alongside the sequence tests, the result shows that the lower detection time coexisted with competitive repeatability under several forms of image change. The repeatability finding comes from the sequences. The runtime chart concerns the single image identified in the timing table.
Descriptor quality with the detector held fixed
For the descriptor comparison, the authors take points from Fast-Hessian and compute alternative descriptions of them. They compare SURF with SIFT, GLOH, and PCA-SIFT. Using one set of detections puts the burden of distinguishing correct partners on the descriptions and the matching procedure. A comparison using a different detector with every descriptor would also reflect differences in how many points were available and how easily their locations or scales could be recovered.
The evaluation generally pairs the first and fourth images in a sequence. For Graffiti it pairs image 1 with image 3, at a viewpoint change of 30 degrees. For Wall it pairs image 1 with image 5, at a viewpoint change of 50 degrees. The Boat descriptor result is shown for a scale factor of 2. Bikes and Trees supply blur examples, Leuven supplies a brightness change, and Ubc supplies JPEG compression. The paper reports descriptor curves for the evaluation sequences apart from Bark. This gives several kinds of evidence about whether a descriptor can preserve a correspondence when the appearance of the patch has changed.
The curves plot recall against the complement of precision. Recall measures the share of available correct correspondences that the procedure recovers. Precision asks what share of its accepted matches are correct. Its complement thus measures the share of accepted matches that are wrong. A curve allows comparison over several operating points. One can examine how much recall each method offers at the same precision, or how precision changes when a procedure is asked to recover more of the known partners.
The paper presents both similarity-threshold and nearest-neighbor-ratio matching for Graffiti. The choice changes the relative ordering of descriptors, although the SURF entries lead the comparison under both procedures. The broader sequence plots use the similarity threshold. The authors favor it there because they regard it as a better view of how the descriptors are distributed in their vector space and describe it as the more widely used of the two procedures. The ratio test returns in the museum experiment, where the goal is to accept an unambiguous partner within each reference image.
The authors report that SURF outperformed the alternatives in almost all the descriptor comparisons and sometimes improved recall by more than 10% at the same precision. This is a statement about particular comparisons at a shared precision level. The curves cover different image pairs, and the quoted improvement describes an advantage reached in some of those tests. The extended SURF-128 generally produces slightly better results than standard SURF, while the paper identifies its longer comparisons as a cost for applications that depend on speed.
Time to detect and describe the same number of points
Joint detection and description time on the first Graffiti image
U-SURF has the shortest joint computation time, and both rotation-aligned SURF variants finish faster than SIFT.
The numbers
| System or setting | ms |
|---|---|
| U-SURF (this paper) | 255 |
| SURF | 354 |
| SURF-128 | 391 |
| SIFT | 1036 |
These times are for detection and description together. The authors adjust the thresholds for this measurement so each implementation detects the same number of interest points. That makes the amount of feature output comparable in a way that differs from the detector-only timing example. The authors describe these relative speeds as representative of other images. They also report using a common set of parameters and thresholds across the broader experiments, including museum recognition. The equal-count adjustment is the specific condition stated for the joint timing test.
The time for U-SURF reflects a processing route that leaves out orientation assignment. Standard SURF includes that operation, and the extended variant also computes the sign-conditioned sums in its longer vector. The times for standard and extended SURF are close in this test, consistent with both descriptions reusing the same wavelet samples. Once the vectors have been extracted, their length matters again. The table measures the cost of producing the vectors, while the paper discusses the advantage of shorter vectors during matching separately.
Recognizing objects in museum photographs
The application experiment uses a museum database with 216 images of 22 objects. Its test set contains 116 images, at a size of 320 × 240. The authors describe challenging lighting, photographs taken through reflecting display cabinets, changes in view and zoom, and cameras of varying quality. The small images lose detail, so a patch may offer relatively little information to the detector and descriptor. The paper illustrates the difference between the reference and test sets with a pair whose viewpoint and colors visibly change.
For each test image, the procedure matches its interest points against those in every reference image. It uses Euclidean distances and the nearest-neighbor ratio rule with multiplier 0.7. Each accepted pair adds to the match count for that reference image. The reference photograph with the greatest count determines the predicted object identity. This decision aggregates local evidence across an image. A single visually ambiguous patch can be misleading, while several successfully matched patches can support the same recognition result.
The authors leave geometric verification out of the comparison. A geometry check can test whether point pairs are consistent with a shared spatial transformation and reject some false matches. The paper explains that such a stage could help any matcher and could conceal weaknesses in the features being compared. The reported recognition rates therefore reflect the local features, the ratio test, and the match-count decision used in this experiment.
Object recognition rate on the museum test set
SURF-128 leads the recognition comparison, with U-SURF ahead of standard SURF.
The numbers
| System or setting | recognition rate % |
|---|---|
| SURF-128 (this paper) | 85.7 |
| U-SURF | 83.8 |
| SURF | 82.6 |
| GLOH | 78.3 |
| SIFT | 78.1 |
| PCA-SIFT | 72.3 |
The extended descriptor's lead is consistent with the benchmark finding that keeping more detail about the wavelet responses can improve distinctiveness. The position of U-SURF is also consequential. On this test set, the upright version recognizes more objects correctly than standard SURF even though it omits the local orientation estimate. The overall rates show that orientation assignment can be an unnecessary transformation for a practically relevant collection of images. They leave open how the two versions would compare in subsets with specified amounts of image rotation.
The paper reports that a binary of SURF was available. Its benchmark work used Mikolajczyk's image sequences and testing software, and the museum test used the authors' separate collection. The benchmark supplies comparisons of individual stages under specified changes. The museum experiment gives a recognition result that depends on those stages working together.
What the ablations show
Simpler filter shapes can preserve useful detections
The paper offers controlled comparisons and design explorations at several levels. At the detector level, the authors report comparable behavior from their box approximation and from discretized, cropped Gaussian derivatives. The accompanying filter illustration gives a reason to examine the approximation directly. The rectangular layout retains the main arrangement of positive, negative, and zero contributions in a form suited to cumulative sums. The detector benchmark then shows that the complete Fast-Hessian design can be fast while remaining competitive in repeatability.
The distinction matters for attributing the speed result. Fast-Hessian combines rectangular filters, the use of one determinant criterion for position and scale, direct filtering of the original image, and a scale-dependent sampling schedule. The timings against DoG and the Laplace detectors are comparisons between complete implementations. They do not quantify the independent runtime contribution of each choice. The paper's analysis supports the viability of the filter approximation and measures the benefit of the combined detector.
A coarse grid retains useful spatial information
The descriptor experiments vary both the measurements that go into a region and the division of the patch. The authors tried squared wavelet responses, higher-order wavelets, principal component analysis, medians, and averages. They also varied the number of sample points. They report that the adopted combinations of sums performed best in their evaluation. The paper presents selected comparisons, so the finding is about the preferred set of components as a whole. The relative performance of every discarded statistic remains unspecified.
The grid experiment is easier to interpret as a change in the descriptor's tradeoff. A finer grid makes the pooled measurements more spatially specific. It also lets a small shift move a response from one subregion to another and increases the amount of information to compare. The authors found the finer divisions less robust and their matching costs too high. The shorter SURF-36 uses a 3 × 3 layout. Its vector is fast to compare and remains competitive enough to be of interest, although it performs worse than the preferred layout in the reported exploration. The 4 × 4 choice preserves more information about where changes occur while keeping the measurements pooled over areas large enough to tolerate small shifts.
The comparison of standard SURF and SURF-128 changes the contents of a subregion while preserving the grid. The extended descriptor gives the best result in the Graffiti parameter comparison and slightly better results in the broader descriptor tests. Its performance shows that the relation between response signs across axes can carry information about the patch. The small change in joint detection and description time is consistent with reusing the wavelet measurements. The matching cost illustrates where the extra detail is paid for after extraction.
The orientation choice depends on the image pair
The orientation window was also selected through experiments. The authors describe instability at both extremes of its width. Narrow windows can make the result depend on one locally dominant response, while broad windows can make the length of the combined vector vary too little as the window moves. This is a qualitative parameter analysis. It identifies the failure behavior that motivated the chosen width, with no full numerical sweep reported.
U-SURF provides a larger change to the pipeline by omitting orientation assignment. The joint timing comparison shows the extraction advantage on Graffiti, and the museum result shows that this shortcut can coexist with strong recognition. The two results answer different questions. The timing comparison measures the cost of computing an orientation and using the aligned description in the complete implementation. The aggregate recognition comparison measures how the versions fare on one collection of images, where many other changes are present alongside any rotation. The authors' design rationale is that retaining the orientation relative to the image can itself help distinguish patches when the camera stays roughly level.
Matching rules affect what the same descriptors can achieve
The Graffiti comparison under both matching rules holds the image pair and the detector fixed. A similarity cutoff judges a pair by its proximity alone. A nearest-neighbor ratio also takes account of crowding among the best candidates for the same point. In a scene with repeated patterns, a close descriptor may be one of several plausible partners. That context can change how well a descriptor performs when the matching rule uses the next closest candidate as evidence of ambiguity.
The paper observes a change in descriptor ranking with the rule and reports that the SURF versions remain strongest in both Graffiti comparisons. This supports their performance on that image pair across different decision procedures. The polarity restriction is another matching change. The authors say it gives a small improvement in match quality as well as speeding comparisons by screening candidates. They provide a mechanical explanation for the saving, since one curvature sign is checked before a full distance evaluation. They leave its numerical contribution to the runtime and recognition results unmeasured.
Limitations
Limits the authors state
The authors choose scale changes and in-plane rotation as the geometric transformations that the method is designed to handle explicitly. Full affine invariance is outside the scope of the detector. Skew, unequal stretching in different directions, and changes of perspective are left to the feature's tolerance of moderate deformations. Graffiti and Wall test part of that tolerance, since both include viewpoint changes with out-of-plane rotation. The authors also flag that their Graffiti descriptor curves use points from a detector without affine invariance, which prevents direct comparison with the curves in the earlier evaluation they cite.
U-SURF assumes a narrower range of image rotation. The authors suggest it for circumstances in which the camera tends to stay level, such as some navigation and tourist-guidance applications. Its patch stays upright in image coordinates. Scale adjustment still applies, and the method retains information about the patch's direction relative to the image. In a setting with substantial tilt, the same local structure can fall into a different pattern of subregions and axes in the two views.
The stated photometric assumptions cover a common brightness offset and contrast factor. Haar responses and vector normalization address those cases through different operations, and neither step uses color. Local shadows, reflections, and other changes that affect different areas differently fall outside the simple assumption. The museum collection contains some of these practical difficulties, so its rate measures performance in their presence under the tested setup. It offers no separate estimate of the effect of each kind of lighting change.
The authors describe the descriptor as extendable to affine-invariant regions. That is a direction for using the representation with a different account of region geometry. The published experiments establish the results for the scale and orientation choices actually evaluated. They also leave code optimization for future work and mention parallel evaluation of scale layers as a possibility that the implementation did not exploit.
Limits visible in the experimental setup
The benchmark has the advantage of isolating several kinds of image change, but the reported detector plots cover selected sequences and the descriptor comparisons use selected image pairs. The paper attributes some omissions to space. The illustrated results establish what happened at the chosen viewpoints, levels of blur, and other settings. The curves do not map out the full range over which each descriptor remains reliable. A result on a particular viewpoint pair can show tolerance at that separation without identifying the point at which a larger deformation overwhelms it.
The descriptor benchmark is conditioned on Fast-Hessian points. This is a useful control because it gives the descriptors the same detections to describe, and it limits the comparison's reach at the same time. A different detector can select a different mix of structures and assign their scales differently. The controlled descriptor results apply to the common point set, while the runtime table for joint implementations and the museum test address other parts of the system. The paper provides no exhaustive account of how all the tested detectors and descriptors interact when paired in different ways.
The numerical claims about speed are tied to a specific machine, implementation, and workload. In the detection-only example the methods return different numbers of points. In the joint timing test they are configured for equal counts. Both comparisons describe the stated conditions, and neither supplies a full cost curve as image size, point density, or the number of reference images changes. The runtime for end-to-end recognition also depends on how many vector comparisons the candidate selection and matching rules leave to be performed. The reported vector lengths and polarity test explain why a difference can arise there, while the joint timing chart covers extraction.
The paper's observations about parameter choices are stronger for some decisions than for others. The standard, shorter, and extended variants give a direct comparison of alternatives for organizing wavelet information. The experiments with other statistics and sampling layouts are described more briefly. A reader can see which design the authors favored and why, but has limited numerical evidence about how sensitive the result is to every choice. In particular, the paper does not give a separate effect size for the polarity test or for the various kinds of weighting in the descriptor.
The museum experiment reports aggregate recognition rates on the test images of objects represented in its reference collection. It combines changes in scale, viewpoint, illumination, and acquisition quality without publishing rates for each kind of change. The rates therefore cannot establish which conditions account for the gap between U-SURF and standard SURF or for the lead of the extended vector. The absence of an added geometry check keeps the comparison sensitive to differences in the raw matches. Geometry-aware recognition may respond differently to those same differences, depending on which false matches can be rejected and which correct ones survive.
Finally, the benchmark and museum results establish agreement in direction across two forms of evaluation. A descriptor that compared well on the image sequences also supported strong museum recognition, and the more detailed version was the strongest on the museum test set. The results concern a recognition rule that chooses whichever reference photograph has the most accepted matches. They give no estimate of how the system would decide that an object was absent from the reference collection or of how it would perform as that collection changed.
What came after
DeCAF cites SURF in work on deep convolutional activation features for generic visual recognition. The connection is the use of an image representation to support recognition. SURF starts with individually detected points and builds a descriptor from fixed local intensity measurements. DeCAF's title identifies a different source for its features, the activations of a deep convolutional system. The documented link is a citation. It leaves the use of specific SURF operations, such as the box-filter detector or the Haar response sums, unspecified.
On the Opportunities and Risks also cites SURF, in a work with a broader scope than local feature matching. The citation establishes that the paper enters that later discussion. It leaves the purpose of the reference unspecified, including whether SURF is being mentioned as an example, used in a comparison, or discussed for some other aspect of its design. The two citations trace SURF into work at different levels of scope, from a visual feature for recognition to a broader treatment of opportunities and risks. Neither citation by itself establishes that the later work implemented or extended the SURF pipeline.
Cite
Cite as Herbert Bay, Tinne Tuytelaars and Luc Van Gool. 2006. SURF: Speeded Up Robust Features. Lecture notes in computer science.
@inproceedings{bay2006surf,
title = {{SURF: Speeded Up Robust Features}},
author = {Herbert Bay, Tinne Tuytelaars and Luc {Van Gool}},
booktitle = {Lecture notes in computer science},
year = {2006},
doi = {10.1007/11744023\_32},
url = {https://doi.org/10.1007/11744023_32}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bay-2006-surf-speeded-up-robust-features/