Quiz: keypoints across scale
Before this unit: Day 2: Edges, blobs and ridges.
See also: Day 21: Hough transform; Day 23: FFT registration; Day 20: Point detection.
Short questions to test your understanding. Try each on paper first, then open the answer.
Q1. What two properties should an interest point have, and what goes wrong without each?
We must find it again, and then tell it apart from the others.
Repeatable: the detector fires at the same physical point in the other view; without it there is nothing to match. Distinctive: its neighbourhood looks unlike those of the other points; without it the point is found again but cannot be recognised (a brick in a wall).
Q2. Harris corners are found again after a rotation, but not after a 2.5× zoom. Why the difference?
What turns with the image, and what keeps its size in pixels?
Rotating the image rotates the gradients and the structure tensor, but its eigenvalues stay the same, so the corner response is unchanged. The window and the derivative scale are fixed in pixels, though: after a zoom they cover a different piece of the scene, so a rounded corner can look like an edge and fine texture can look like new corners.
Q3. A blob is detected at σ = 3 px. The image is zoomed by 2. Where and at what σ do you expect it?
The scale-normalised response is a function of position and σ together.
At twice the coordinates (relative to the centre of the zoom) and at σ = 6 px: extrema of the scale-normalised DoG move from (x, y, \sigma) to (2x, 2y, 2\sigma).
Q4. With S = 3 steps per octave, how many blurred images and how many DoGs does an octave have, and on which DoG levels are extrema searched?
An extremum needs a level below and a level above.
S + 3 = 6 blurred images, S + 2 = 5 DoGs; extrema on the S = 3 inner DoG levels 1, 2, 3. Together the octaves then cover every scale exactly once.
Q5. Why are candidates along a straight edge rejected, even when their DoG value is large?
Could you say where along the edge the point is?
Along an edge the response barely changes, so the position along the edge is undefined and noise decides where the extremum lies: in another image it lands somewhere else on the edge. The curvature across the edge is large and along it small, so the ratio test (\operatorname{tr}^2/\det of the 2 × 2 Hessian above (r + 1)^2/r) removes it.
Q6. A keypoint’s orientation histogram has peaks of height 100 and 85. What does the detector output?
The 80 % rule.
Two keypoints at the same position and scale, one with each orientation (85 ≥ 80 % of 100). Both are described; at most one of them will match in the other image, which costs little.
Q7. Which images give few or useless keypoints: (a) a defocused, almost uniform field; (b) a regular array of identical wells; (c) a cell culture with textured cytoplasm?
Repeatable, distinctive, or neither?
- Few keypoints: no texture, nothing to find (use intensity-based alignment). (b) Many repeatable keypoints, but they all look alike: not distinctive. (c) Fine: many keypoints at several scales, mostly distinctive.
Q8. (math) Show that \operatorname{tr}^2/\det of a 2 × 2 symmetric matrix with positive eigenvalues \alpha = r\beta depends only on r.
Trace and determinant in terms of the eigenvalues.
\operatorname{tr} = \alpha + \beta = (r + 1)\beta, \det = \alpha\beta = r\beta^2, so \operatorname{tr}^2/\det = (r + 1)^2\beta^2/(r\beta^2) = (r + 1)^2/r, independent of β. (The same holds for two negative eigenvalues.)