Quiz: Chan–Vese

Short questions to test your understanding. Try each on paper first, then open the answer. Energy E = \sum_{\text{in}}(I - c_1)^2 + \sum_{\text{out}}(I - c_2)^2 + \lambda\cdot\text{Length} + \nu\cdot\text{Area}_{\text{in}}; \phi < 0 inside.


Q1. For a fixed curve, why are the best c_1 and c_2 the mean grey levels inside and outside?

Which number c minimises \sum (I_p - c)^2?

The derivative of \sum_p (I_p - c)^2 with respect to c is -2\sum_p(I_p - c), zero when c is the mean. Each sum involves only its own c, so both are means.


Q2. c_1 = 0.7 (inside) and c_2 = 0.3. A pixel near the curve has grey level 0.45. Does it join the inside or the outside (with \lambda = \nu = 0)?

Compare (I - c_1)^2 and (I - c_2)^2.

(0.45 - 0.7)^2 = 0.0625, (0.45 - 0.3)^2 = 0.0225: it is closer to c_2 and goes outside. With \lambda = 0 the rule is a threshold at (c_1 + c_2)/2 = 0.5.


Q3. What does Chan–Vese with \lambda = 0 compute, and which method from the thresholding day is it?

Alternate the two steps without a length term.

Each pixel joins the closer mean, i.e. a threshold at (c_1 + c_2)/2; then the means are recomputed. At convergence the threshold is the midpoint of the two class means: the isodata (two-means) fixed point.


Q4. Why does a large \lambda remove a thin bar but keep a large disk of the same grey level?

Compare the data gain (area) with the boundary cost (length).

Keeping an object saves data cost in proportion to its area and costs \lambda times its perimeter. A thin bar has a long perimeter for its area; a disk of radius r has area \pi r^2 for perimeter 2\pi r, so its gain per unit boundary grows with r. The bar goes first: the shrinking bias of the graph cuts day.


Q5. Why does Chan–Vese not need to smooth the image, while geodesic active contours do?

What happens to noise in a mean over many pixels?

It uses no derivatives of the image, only sums over regions: noise averages out in c_1 and c_2, and the length term removes isolated misassigned pixels. Gradients, in contrast, amplify noise.


Q6. The background of an image gets brighter from left to right, and at the right side it is as bright as the objects. What goes wrong with Chan–Vese?

How many grey levels does the model allow for the background?

The model has one constant per region. The bright part of the background is closer to the object mean than to the (darker) background mean, so it is labelled object. Edge-based methods, which only look at local differences, cope better with such shading.


Q7. Why is a grid of small blobs a better start than one small circle in the background?

What are c_1 and c_2 at the start, and how strongly do the data then push?

A small circle in the background has c_1 \approx c_2 \approx the background grey level: the data term barely distinguishes the regions and the length term shrinks the circle away (a local minimum). A grid samples every region from the start; pixels flip towards the closer mean everywhere, c_1 and c_2 separate quickly, and the result does not depend on where the objects are.


Q8. What does the width \varepsilon of \delta_\varepsilon change?

Which pixels does the update reach?

The update of each pixel is weighted by \delta_\varepsilon(\phi). Narrow: only pixels near the curve change, the curve moves like a front. Wide: pixels far from the curve change too, so new objects and holes can appear away from the start curve.


Q9. (math) Write the Chan–Vese energy with the Heaviside function H(\phi) and derive \phi_t by gradient descent (constant c_1, c_2).

\tfrac{d}{d\phi}H(\phi) = \delta(\phi); the length is \int\delta(\phi)|\nabla\phi|, whose variation is -\delta(\phi)\kappa.

E = \int(I - c_1)^2(1 - H) + \int(I - c_2)^2H + \lambda\int\delta(\phi)|\nabla\phi| + \nu\int(1 - H) (H = 1 outside). Then \delta E/\delta\phi = \delta(\phi)[-(I - c_1)^2 + (I - c_2)^2 - \lambda\kappa - \nu], and \phi_t = -\delta E/\delta\phi = \delta(\phi)[\lambda\kappa + \nu + (I - c_1)^2 - (I - c_2)^2].