Quiz: active shape models
Before this unit: Shape models: landmarks, Procrustes and PCA (previous unit); Day 27: Graph cuts; Day 2: Edges, blobs and ridges.
See also: Day 6: Splines and NURBS.
Short questions to test your understanding. Try each on paper first, then open the answer. One ASM iteration: suggest points along the normals, fit the pose, project onto the modes, clamp.
Q1. Which step of an ASM iteration is “a snake without internal forces”, and which steps replace \alpha and \beta?
The suggestion step: every landmark moves towards a better image position on its own. Fitting the pose, projecting onto the modes and clamping replace the smoothness terms: instead of “be smooth”, the points must form a shape like the training shapes.
Q2. Why does the search look along the normal of the outline, not in every direction?
Along the outline the image hardly changes, so a move along it cannot be judged from the image; across it (along the normal) the edge is visible. Searching only along the normal also makes the search one-dimensional and cheap. Sliding along the outline is left to the shape model (which is why landmarks can end up slightly shifted along a smooth outline).
Q3. The profile model at a landmark expects a dark-to-bright step. Along the normal there is a strong bright-to-dark edge 4 pixels out and a weaker dark-to-bright edge 1 pixel in. Which does each matching rule choose?
The strongest edge (by magnitude) chooses the strong edge 4 pixels out, although it has the wrong polarity. The profile model (Mahalanobis distance to the trained profile) chooses the weaker edge 1 pixel in, whose profile looks like the trained one.
Q4. After projection, b_2 = 5\sqrt{\lambda_2}. What happens in the clamp step, and why?
b_2 is set to 3\sqrt{\lambda_2}: 5 standard deviations is far outside the range of the training shapes, so the suggested points are more likely wrong than the shape is real. The clamp keeps the shape plausible.
Q5. Part of the object is hidden behind another object. Why can an ASM still give a sensible outline there, and a snake not?
The ASM fits pose and a few mode parameters to all landmarks at once; the visible ones determine them, and the model draws the hidden part as the training shapes look there. A snake only knows “smooth”: it either follows the occluder’s edge or bridges the gap with a smooth curve that has nothing to do with the object.
Q6. Why does searching first on a coarse pyramid level increase the capture range?
On a level halved twice, a search of m pixels covers 4m full-size pixels, and the blurred image has broad edges that are visible from further away. The coarse level finds the rough pose and shape; the finer levels refine it. It is also faster: few pixels, few iterations.
Q7. You need to outline cells of an unusual mutant whose shapes are not in your training set. Snake or ASM?
A snake (or retrain the shape model with the mutants). The ASM can only produce shapes like its training shapes and will force the mutant’s outline towards a normal cell; the snake follows whatever edge it is near.
Q8. (math) Why is the Mahalanobis distance to the mean profile a sensible matching cost?
If the training profiles at a landmark are modelled as Gaussian \mathcal N(\bar{\mathbf g}, S), then $-2p(g) = (g - {g})S{-1}(g - {g}) + $ const: the smallest distance is the most probable profile. It also weighs each sample by how much it varied in training, unlike a plain sum of squared differences.