Quiz: the snake as a linear system

Short questions to test your understanding. Try each on paper first, then open the answer. A is the snake matrix (internal force = -A\mathbf x), with eigenvalues \lambda_k = 4\alpha\sin^2(\pi k/n) + 16\beta\sin^4(\pi k/n).


Q1. Why does every row of A sum to zero?

The internal energy depends only on differences between bead positions. Moving the whole snake by the same amount changes nothing, so it creates no force: A\mathbf 1 = 0, and the eigenvalue of the constant mode is \lambda_0 = 0.


Q2. What do the corner entries of A (top right, bottom left) represent?

The wrap-around of the closed curve: the last bead is a neighbour of the first. Without them A would be banded and describe an open chain with free ends.


Q3. Why are the eigenvectors of A sampled cosines and sines?

Every row is the same stencil, shifted by one.

A\mathbf x is a circular convolution of \mathbf x with a fixed stencil. Convolution turns into multiplication in the Fourier basis (Images in frequency space): a wave going k times around the curve comes out as the same wave times a number, \lambda_k.


Q4. \alpha = 0.5, \beta = 0.25. What is the largest step \tau for which the explicit update is stable?

\lambda_\text{max} = 4 \cdot 0.5 + 16 \cdot 0.25 = 6; stable for \tau\lambda_\text{max} < 2, i.e. \tau < 1/3.


Q5. Which pattern of the beads is the first to explode when \tau is too large, and what does it look like?

The mode with the largest eigenvalue, k = n/2: alternate beads displaced in opposite directions, a zig-zag. Its factor per step 1 - \tau\lambda_\text{max} drops below -1 first, so it flips sign and grows every step.


Q6. The semi-implicit step costs a linear solve per step. Why is that cheap?

The matrix A + \gamma I is the same in every step as long as \alpha, \beta, \tau and n do not change: it can be factored (or inverted) once. It is banded with five diagonals plus corners, so a solve costs a few operations per bead, and x and y use the same factorisation.


Q7. A balloon snake inflates nicely inside a cell but escapes where the membrane is faint. Name two things you could change.

Lower \kappa (but then it may stop early on the strong side or on texture), raise the edge weight w or lower \sigma where the faint edge needs sharpening, switch to GVF without a balloon, or add shape knowledge (a shape model). No single \kappa fits a strong and a weak edge at once.


Q8. What does gradient vector flow add that a larger \sigma does not?

GVF spreads the edge force into flat regions without blurring the edges themselves: near edges the field stays equal to the sharp edge force. It also points into concavities, where the plain edge force points sideways. A larger \sigma widens the pull but blurs and shifts the edges and merges nearby ones.


Q9. Two touching nuclei, one snake around both. Can GVF or a balloon make the snake separate them?

No. One snake is one closed curve; no force changes that. It needs two snakes (one started in each nucleus), or an implicit representation that can split (level sets).


Q10. (math) Show that the semi-implicit factor \gamma/(\gamma + \lambda_k) lies in (0, 1] for every \gamma > 0.

A is positive semidefinite, so \lambda_k \ge 0. With \gamma > 0: 0 < \gamma \le \gamma + \lambda_k, hence 0 < \gamma/(\gamma + \lambda_k) \le 1, with 1 only for \lambda_k = 0 (translation).