Definitionadvanced
Mumford-Shah functional
Also called Mumford-Shah model.
An energy over a piecewise smooth image and a set of edges that weighs fit to the data, smoothness off the edges and the total edge length.
The Mumford-Shah functional is an energy for image segmentation and smoothing at the same time. Its arguments are an image and a set of curves, the edges. It adds three terms: how far is from the given image, how much varies away from the edges, and the total length of the edges. A minimizer is an image that is smooth inside regions and can jump across the edges, together with those edges. Mumford and Shah (1989) proposed it and studied its mathematics. It is the model behind many region-based segmentation methods, from active contours without edges to discrete energies on a Markov random field.
Definition
Let be a bounded open set, the image domain, and let be the given image. For a closed set and a function that is smooth on ,
where is the length of (its one-dimensional Hausdorff measure) and are weights. The Mumford-Shah problem is to minimize over all pairs . The regions of the segmentation are the connected components of . Papers place the weights on different terms; the form here is that of Eq. (4) of Arbelaez et al. (2011).
These facts follow from the definition or are theorems of the cited papers:
- Each term needs the others. Without the length term, more edges cost nothing, and can cut into small regions where the gradient term is near 0. Without the gradient term, with costs nothing. Without the data term, a constant costs nothing.
- The smooth part (theorem). For a fixed , is a strictly convex quadratic function of . Its minimizer satisfies the Euler-Lagrange equation in , with on both sides of and on the border of . So is a smoothed , and no smoothing crosses an edge.
- The piecewise constant limit (theorem). If , must be constant on each region , and the best constant is the mean of on . The energy becomes , the minimal partition problem. The proof: for a region , is a quadratic in with derivative , which is zero at the mean.
- Existence (theorem). De Giorgi, Carriero and Leaci (1989) proved that a minimizer exists. Their proof works with a weak form in which is the set of jumps of , and shows that this set is closed up to a set of zero length.
- Shape of the edges (conjecture). Mumford and Shah conjectured that the edges of a minimizer are a finite union of smooth arcs, which meet only in triple junctions at equal angles of 120 degrees or end at the border or in crack tips. This is the Mumford-Shah conjecture, not a theorem in general.
- No convexity. is not convex in the pair , and minimization methods find local minima. In a discrete form on a pixel grid, the piecewise constant case with a fixed set of values is a Potts model, which is NP-hard to minimize for three or more values.
The functional is the definition of a good segmentation, not an algorithm. Methods to minimize it include the elliptic approximation of Ambrosio and Tortorelli (1990), where a function near 0 at edges and near 1 elsewhere replaces ; the level set method of Chan and Vese (2001) for two regions; greedy region merging that lowers the piecewise constant energy; and graph cuts on the discrete Potts form.
Examples and non-examples
- A step in one dimension. Take the discrete form on six pixels with , , sums in place of integrals, differences in place of the gradient, and per cut between neighbors. With no cut, the best solves a linear system and is , with energy . With one cut at the step, and the energy is . Any set of cuts without the cut at the step costs at least if it is not empty: with all other pairs cut, only the pair at the step is smoothed, and the best there is with cost . So the minimizer has the edge at the step if and no edge if . A larger removes weak edges.
- The edge cost does not depend on the contrast. In the example, a step of height gives the no-cut energy , and the cut still costs . So an edge appears when . In total variation denoising, a jump of height costs times its length, so strong edges cost more there. This is the main difference between the two energies.
- Two regions of constant gray. If is inside a disc of radius and outside, then with the circle has energy . With no edge, the constant equal to the mean of has the energy , where is the variance of over , and the best smooth costs less. So if , the circle is not the best edge set. For a small disc or a large the disc is lost.
- Not a Gaussian blur. Smoothing with a Gaussian filter blurs across all edges. The smooth part of a Mumford-Shah minimizer is smoothed only inside each region.
- Not a boundary detector. An edge detector such as Canny marks pixels with a high gradient and does not ask the edges to close regions or to be short. The edge set of the Mumford-Shah functional comes from a global energy.
Related definitions
The Euler-Lagrange equation of the functional for a fixed edge set is a screened Poisson equation, solved region by region. Total variation denoising is the convex energy that replaces the edge set and the gradient term by . The Potts model on a Markov random field is the discrete piecewise constant case, where the edge length is the number of neighbor pairs with different labels. The Chan-Vese model is the two-region piecewise constant case, minimized with a level set method. Arbelaez et al. (2011) review it among the region-based approaches to segmentation, in the same paper that defines the ultrametric contour map. The normalized cut is another global criterion for a partition, based on a graph of pixel affinities instead of a fit to the image.
References
- David Mumford and Jayant Shah, Optimal approximations by piecewise smooth functions and associated variational problems, Communications on Pure and Applied Mathematics 42(5), 1989, 577-685, the definition of the functional, its piecewise constant limit, the first variation and the conjecture on the shape of the edge set
- Ennio De Giorgi, Michele Carriero and Antonio Leaci, Existence theorem for a minimum problem with free discontinuity set, Archive for Rational Mechanics and Analysis 108, 1989, 195-218, the existence of minimizers in the weak formulation and the closedness of the edge set
- Luigi Ambrosio and Vincenzo Maria Tortorelli, Approximation of functionals depending on jumps by elliptic functionals via Gamma-convergence, Communications on Pure and Applied Mathematics 43(8), 1990, 999-1036, the elliptic approximation with an edge indicator function and its Gamma-convergence to the Mumford-Shah functional
- Tony F. Chan and Luminita A. Vese, Active contours without edges, IEEE Transactions on Image Processing 10(2), 2001, 266-277, the two-phase piecewise constant case written with a level set function
- Yuri Boykov, Olga Veksler and Ramin Zabih, Fast approximate energy minimization via graph cuts, IEEE Transactions on Pattern Analysis and Machine Intelligence 23(11), 2001, 1222-1239, Section 7 and the Appendix (NP-hardness of the Potts energy)
- Pablo Arbelaez, Michael Maire, Charless Fowlkes and Jitendra Malik, Contour detection and hierarchical image segmentation, IEEE TPAMI 33(5), 898-916, 2011, Eq. (4), the Mumford-Shah functional in the review of region-based segmentation
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag FMWRYZ Edit this page History Report an error Markdown