Quiz: the Hessian
Before this unit: Scale space, blobs and pyramids (previous unit); Day 1: Images, filters and frequencies.
Short questions to test your understanding. Try each on paper first, then open the answer. Eigenvalues are ordered |\lambda_1| \le |\lambda_2|; bright = high.
Q1. What do the eigenvalues and eigenvectors of the Hessian at a pixel tell you, in words?
Think of the image as a landscape.
The eigenvalues are the strongest and weakest curvature (bending) of the brightness surface at that pixel; the eigenvectors are the two perpendicular directions in which they occur. Negative means bending down (a bright structure), positive bending up (a dark one).
Q2. At a pixel \lambda_1 = -0.5 and \lambda_2 = -12. What structure is this? In which direction does it run?
One strong curvature, one weak.
A bright ridge (line): it bends down strongly across one direction (\lambda_2) and hardly at all along the other. It runs along the eigenvector of \lambda_1.
Q3. Classify: (a) \lambda = (-8, -10); (b) \lambda = (6, -9); (c) \lambda = (0.2, 11); (d) \lambda = (0.1, -0.3) when the noise gives |λ| up to about 1.
Signs, and the ratio of the sizes.
- Bright blob (both strongly negative, similar size). (b) Saddle (opposite signs, both large). (c) Dark ridge (one strong positive curvature, the other ≈ 0). (d) Flat (both within the noise).
Q4. Why can the Laplacian of Gaussian not tell a blob from a line, while the determinant of the Hessian can?
Trace and determinant in terms of the eigenvalues.
The LoG is the trace \lambda_1 + \lambda_2. A blob with λ = (−10, −10) and a line with λ = (0, −20) both give −20. The determinant \lambda_1\lambda_2 is 100 for the blob and 0 for the line: it is large only when both curvatures are large.
Q5. What does the Hessian report at a step edge?
Where is the second derivative across a step zero?
On the edge itself the curvature across it is zero (it is the zero crossing of the second derivative), so the pixel looks flat. Just inside the bright side the brightness bends down (a weak bright half-ridge), just outside it bends up (a weak dark half-ridge). The Hessian finds the centres of lines and blobs; edges are the gradient’s job.
Q6. Vesselness has two knobs, β and c. What happens if you make β very large? If you make c very large?
Look at which ratio each one divides.
β divides the blob ratio R_B = \lambda_1/\lambda_2: with a large β the blob penalty disappears and blobs score as high as lines. c divides the structure strength S: with a large c almost every structure counts as “weak”, so all vesselness values become small (only the strongest lines remain visible).
Q7. Why is vesselness computed at several σ and normalised by σ²? What fails at a junction of two vessels?
Which σ fits a thin line, and which a thick one?
Each line responds best at a σ matched to its width; a single σ misses thick lines (or broadens thin ones). Normalising by σ² makes the responses at different σ comparable, so the maximum over σ picks each line’s own scale. At a junction two lines cross: both curvatures are large, the pixel looks like a blob, and vesselness drops exactly where branches meet.
Q8. (math) Show that the curvature \mathbf u^\top H\mathbf u along a unit vector \mathbf u is largest and smallest along the eigenvectors of H.
Write \mathbf u in the eigenvector basis.
H is symmetric, so it has orthonormal eigenvectors \mathbf e_1, \mathbf e_2. Write \mathbf u = \cos\phi\,\mathbf e_1 + \sin\phi\,\mathbf e_2. Then \mathbf u^\top H\mathbf u = \lambda_1\cos^2\phi + \lambda_2\sin^2\phi, a weighted average of the two eigenvalues with weights summing to 1. It lies between them and reaches them exactly at \phi = 0 and \phi = 90°, i.e. along the eigenvectors.