Quiz: total variation flow

Short questions to test your understanding. Try each on paper first, then open the answer. TV flow: u_t = \nabla\cdot(\nabla u/|\nabla u|); a flat plateau loses (or gains) height at the rate perimeter/area.


Q1. Which of the three penalties, heat (s^2/2), TV (s) or Perona–Malik (\tfrac{K^2}2\ln(1 + s^2/K^2)), charges the least for one step of height 10 compared with ten steps of height 1? Take K = 2.

Compute both totals for each penalty.

Heat: one step 50, ten steps 10 \cdot 0.5 = 5: the single step costs 10 times more. TV: 10 and 10: the same. Perona–Malik: 2\ln 26 = 6.5 against 10 \cdot 2\ln 1.25 = 4.5: the single big step costs only a little more. Heat prefers blur, TV is indifferent to sharpness, Perona–Malik nearly prefers steps.


Q2. A bright disc of radius 5 and contrast 10 under TV flow. When does it disappear? And a disc of radius 20 with the same contrast?

The contrast falls at 2/r per unit time.

t = c\,r/2: 10 \cdot 5/2 = 25 and 10 \cdot 20/2 = 100. Both keep their sharp edge and their size until then; only the contrast falls.


Q3. Which survives longer under TV flow: a large faint disc (radius 16, contrast 10) or a small bright one (radius 4, contrast 60)?

Compare c\,r/2.

Large faint: 10 \cdot 16/2 = 80. Small bright: 60 \cdot 4/2 = 120. The small bright disc survives longer: TV flow removes by contrast × size, not by size alone.


Q4. Under TV flow, what happens to a straight edge, to a corner and to the position of an object’s boundary?

Each level line moves by its curvature.

A straight edge has zero curvature: it stays sharp and in place. A corner has a very high curvature: it rounds off. The boundary of a convex object barely moves; the object loses height (contrast) instead.


Q5. TV denoising with \lambda = 2 and TV flow for time 2: same or different?

ROF’s optimality condition is one implicit step.

In 1D exactly the same; in 2D very close. ROF is one implicit step of TV flow with step size λ, and for TV in 1D one big implicit step equals the flow. (In the 1D example (0, 0, 0, 6, 6, 0, 0, 0) both give (2/3, 2/3, 2/3, 4, 4, 2/3, 2/3, 2/3).)


Q6. Why is an explicit scheme for TV flow so slow, compared with the heat equation?

How large can the conductivity 1/|\nabla u|_\varepsilon get?

In flat regions the conductivity is up to 1/\varepsilon, so the stable step is \varepsilon/4 instead of 1/4 (2D). With ε = 0.01 that is 100 times more steps than heat for the same time. The equation is stiff; TV is therefore computed by other algorithms (dual projection, primal–dual).


Q7. TV flow and Perona–Malik both keep edges. Name one difference that matters when you measure intensities afterwards.

What happens to the height of a small bright object?

TV flow lowers the contrast of every object at the rate perimeter/area: small objects lose the most (and predictably), and their integrated intensity spreads into the background. Perona–Malik keeps strong edges almost exactly but can sharpen soft ones and leaves no predictable rule. Either way, measure intensities on the raw image, with the smoothed one only for finding objects.


Q8. (math) Show that gradient descent on \int\Psi(|\nabla u|) is u_t = \nabla\cdot(\Psi'(|\nabla u|)\,\nabla u/|\nabla u|), and give \Psi for heat and for TV.

Perturb u \to u + \epsilon v and integrate by parts.

\frac{d}{d\epsilon}\int\Psi(|\nabla u + \epsilon\nabla v|)\big|_0 = \int\Psi'(|\nabla u|)\frac{\nabla u}{|\nabla u|}\cdot\nabla v = -\int\nabla\cdot\Big(\Psi'\frac{\nabla u}{|\nabla u|}\Big)v. The gradient is minus the divergence, so descent u_t = -\text{gradient} is the stated flow. Heat: \Psi = s^2/2 (\Psi'(s)/s = 1); TV: \Psi = s (\Psi'/s = 1/s).