Quiz: geodesic active contours
Before this unit: Moving a curve: the level set equation (previous unit); Day 30: Snakes and active shape models; Day 13: Morphology.
See also: Day 51: Marching cubes.
Short questions to test your understanding. Try each on paper first, then open the answer. Edge-stopping function g = 1/(1 + |\nabla I_\sigma|^2/k^2); speed F = g(c - \varepsilon\kappa) plus advection along -\nabla g.
Q1. With k = 10, what is g where |\nabla I_\sigma| = 0, 10 and 30?
Plug in: 1/(1 + (m/k)^2).
1, 0.5 and 0.1. Flat regions let the front move at full speed; an edge three times stronger than k slows it to 10%.
Q2. Why smooth the image (σ > 0) before computing g?
What does the gradient of pure noise look like?
Differences of neighbouring noisy pixels are large, so without smoothing g is small at many pixels inside flat regions: the front gets stuck on noise. Smoothing averages the noise away while keeping large-scale edges (at the cost of blurring nearby edges together).
Q3. A balloon front (F = g c, no advection) reaches an edge where g = 0.05. Does it stop?
Is the speed zero?
No: it slows to 5% of c but keeps creeping, and after enough time it crosses the edge. Only g = 0 exactly would stop it. The advection term of geodesic active contours pulls it back into the edge.
Q4. In which direction does -\nabla g point on each side of an edge?
g has a valley at the edge.
Towards the edge from both sides: g decreases towards the bottom of the valley, so -\nabla g points downhill, into the edge. A front on either side is pushed onto it.
Q5. What is the edge-weighted length \oint g\,ds of a curve that runs exactly along an edge where g = 0.05, compared with a curve of the same length in a flat region?
Each bit of curve costs g times its length.
5% of it. Along edges the curve is “short” in the image’s metric, so the shortest closed curve (a geodesic) prefers to follow edges.
Q6. A curve shrinks onto a C-shaped object from outside, with no balloon. Why does it not enter the slot of the C?
What drives the part of the curve that bridges the opening?
The bridging part is straight (\kappa = 0) and lies in a flat region (g \approx 1, \nabla g \approx 0): no curvature, no advection, no balloon: nothing moves it. A negative balloon c pushes it into the slot.
Q7. Starting from one curve around three separate objects, how many curves do you get, and who decides that?
Recall unit 2.
Three (one per object, if the parameters are right). The zero level of \phi splits by itself when it passes between the objects; neither the user nor the algorithm has to count the objects.
Q8. Why does a large balloon leak through a weak part of an edge but not through a strong part?
Compare g c with the advection there.
On a weak edge g is not small (0.44 in the demo) and \nabla g is shallow, so the balloon’s push g c beats the advection that pulls the front back; on a strong edge g \approx 0 and the valley is steep. Once the front passes the weak spot, it spreads into the region behind it.