G13 Image Segmentation: the Mumford–Shah Functional
The reference for this lecture is David Mumford and Jayant Shah, Optimal approximations by piecewise smooth functions and associated variational problems (Commun. Pure Applied Math. 1989).
Images
- A three-dimensional scene is observed by an eye or a camera: at a point
, light of intensity comes from the direction . - A lens at
focuses the light on a retina (a surface). The intensity of the light signal received by at the point with coordinates is obtained from through some transformation that depends on the functioning of the optical system. - The resulting function
is “an image”.
The slide’s illustration (from Mumford–Shah) shows two objects, a pyramid
There will be discontinuities in the function
- textured objects, fragmented objects (for example a canopy of leaves);
- shadows, penumbra;
- surface markings;
- partially transparent objects;
- noisy measurements of
.
The segmentation problem
The goal is to compute a decomposition
- the function
is smooth within each domain ; - the function
varies discontinuously (and/or very rapidly) across most of the boundary between different .
Equivalently, this is the problem of computing optimal approximations of a function
Mathematical approach
What constitutes an optimal segmentation? We look for a functional measuring the degree of match between a function and a segmentation, to be optimized. Let the
The Mumford–Shah functional
Definition G13.1 (Mumford–Shah functional). Let
- The first term measures how good
is as an approximation of . - The second term asks that
not vary too much within each . - The third term asks that the boundary achieving the decomposition be as short as possible.
Remark (All three terms are needed). All three terms are needed to have a nontrivial minimum:
- without the first term,
and give ; - without the second term,
and give ; - without the third term, taking
equal to the average of on each square of a grid of squares (with the grid) gives values of tending to as .
Heuristic interpretation: a solution
Remark (Mumford–Shah conjecture). Is the minimization problem for
The functional
Restrict
Definition G13.2 (The functional
Relation to the Ising model
The relation is the one between continuous and discrete segmentation:
- Suppose
is locally constant with only the values . - Assume
and are “discretized”, that is, defined on a lattice. - Let
be a path made of segments of horizontal and vertical lines between pairs of adjacent lattice sites where changes sign. - Then the functional
, seen as a function of , becomes the Ising model energy where the first sum is over lattice sites and the second over pairs of neighboring sites. (A neighboring pair separated by contributes and every other pair contributes , so the second sum is times the length of in lattice units; the factor only rescales .)
The functional
Definition G13.3 (The functional
Minimizing
- the length of
is as short as possible; - the variation of
in the direction normal to is as large as possible.
Relation of to
Proposition G13.4 (
So one can think of
The variational equation for : summary
- For fixed
, is a positive definite quadratic functional in , with a unique minimum, the solution of the elliptic boundary value problem on each - With
the solution of this elliptic problem, becomes a function of , , to be minimized over . - Consider an infinitesimal variation of
by a normal vector field , vanishing in a neighbourhood of the singular points of .
Proposition G13.5 (First variation in
(On
Complications due to singular points of
The minimizing function
Proposition G13.6 (Singular points of a minimizer). If
- triple points: three
arcs meet at ; - crack tips: a single
arc ends; - boundary points: a
arc of meets a smooth point of perpendicularly.
A further complication: a minimizer
A more detailed discussion of the variational problem for
Hölder spaces
Definition G13.7 (Hölder spaces). For
Start by assuming that
Variation of for fixed
Fix
Imposing the vanishing of the variation for all test functions
The operator
The unique solution
Remark (The Green function on the whole plane). In the absence of singularities and boundaries,
Variation of
Now vary
- Move
near a simple point (not a point where several arcs meet). The point lies on one arc . - The
regularity of ensures that it can be written locally as the graph of a function, either or (implicit function theorem). One can then deform the path by deforming the function, with the variation outside a small neighborhood of the point, so that the new curve does not meet the other arcs outside the endpoints.
Varying
Since
Definition G13.8 (Energy density). The energy density is
In these terms the equation reads
Special points of
At special points of
- points where
meets ; - corners, where two arcs
meet; - vertices, where three or more arcs
meet; - crack-tips, where an arc
ends without meeting another arc.
Corners
The problem with corners is that one can have a function with
Example G13.9 (A harmonic function singular at a corner). In the sector
Theorem G13.10 (Elliptic boundary value problems on domains with corners (Kondratiev)). The previous example is the typical behavior of solutions of elliptic boundary value problems in domains with corners. The solutions
is bounded everywhere; is at corners with angle ;- at corners with
(the case is a crack-tip),
Minimizers have no kinks, and other local results
One uses this to show that Mumford–Shah minimizers cannot have kinks (corners between two arcs with angle
Cut the corner at a small distance, shrinking
- The new
on the smaller is defined by restriction; the new on the larger is extended using the cutoff function, as . - Measuring the corresponding change in
, one finds that if the functional decreases when the corner is cut as above, so the original kinked path cannot be a minimizer. - A similar argument shows that a minimizer
meets orthogonally. - A similar argument also shows that triple points must have angles
: otherwise one can cut a sector and lower the value of .
- If
has points where four or more arcs meet, it is not a minimizer: one can separate such a point into triple points and lower the value of .
- One can also eliminate cusp corners and lower the value of
.
Summary of further results
- For
minimizing with fixed, one estimates its proximity to the locally constant average of on each . - The relevant quantity is the isoperimetric constant, which measures the smallest necks in each component
.
Definition G13.11 (Isoperimetric constant). For a domain
For the dumbbell in the figure, the curve
Proposition G13.12 (Small
Existence of -minimizers
Theorem G13.13 (Existence of
Method of proof: geometric measure theory. The main idea is first to show the existence of a “weak solution” with a “very singular”
What is geometric measure theory?
- It is the use of measure theory methods to study geometric objects (curves, surfaces) that are highly non-smooth.
- It was historically developed to study the Plateau problem: the geometry of soap bubble films, that is, area-minimizing surfaces with given boundary curves. (The slides show photographs of clusters of soap bubbles.)
- Introductions to geometric measure theory: Frank Morgan, Geometric measure theory: A beginner’s guide; Frederick J. Almgren, Jr., Plateau’s Problem: An Invitation to Varifold Geometry; Herbert Federer, Colloquium lectures on geometric measure theory (see the references).
The large case
When
Proposition G13.14 (
Proposition G13.15 (Large
- The first variation of
converges, for large , to the first variation of . - One computes explicitly the vanishing of the first variation of
, which gives a second order differential equation for .
Let
Further reading
There are many more recent results on Mumford–Shah minimizers and segmentation: this is a rich current area of research, with a large number of papers on the topic. Suggested references are the papers of Younes–Michor–Shah–Mumford, Mumford–Kosslyn–Hillger–Herrnstein, and the survey of Leah Bar et al. listed below.
References
- David Mumford, Jayant Shah, Optimal approximations by piecewise smooth functions and associated variational problems, Commun. Pure Applied Math. Vol. XLII (1989) 577–685.
- Frank Morgan, Geometric measure theory: A beginner’s guide (Fourth ed.), Academic Press, 2009.
- Frederick J. Almgren, Jr., Plateau’s Problem: An Invitation to Varifold Geometry, Revised Edition, American Mathematical Society, 2001.
- Herbert Federer, Colloquium lectures on geometric measure theory, Bull. Amer. Math. Soc. 84 (1978), 291–338.
- Laurent Younes, Peter W. Michor, Jayant Shah, David Mumford, A metric on shape space with explicit geodesics, Rend. Lincei Mat. Appl. 19 (2008) 25–57.
- D. Mumford, S. M. Kosslyn, L. A. Hillger, R. J. Herrnstein, Discriminating figure from ground: the role of edge detection and region growing, Proc. Nat. Acad. Sci. U.S.A. 84 (1987), no. 20, 7354–7358.
- Leah Bar et al., Mumford and Shah model and its applications to image segmentation and image restoration, in “Handbook of Mathematical Methods in Imaging”, Springer 2011, 1095–1157.