ArticleslgStudy

mathematics

Total variation denoising

Total variation denoising is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Total variation denoising rather than just read about it. In short: In signal processing, particularly image processing, total variation denoising, also known as total variation regularization or total variation filtering, is a noise removal process (filter). It is based on the principle that signals with excessive and possibly spurious detail have high total variation, that is, the integral of the image gradient magnitude is high.

Total variation denoising — main illustration
Total variation denoising — illustration

Key takeaways

  • Total variation denoising belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Total variation denoising to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Total variation denoising from memory before moving on to harder problems.

Reference excerpt

In signal processing, particularly image processing, total variation denoising, also known as total variation regularization or total variation filtering, is a noise removal process (filter). It is based on the principle that signals with excessive and possibly spurious detail have high total variation, that is, the integral of the image gradient magnitude is high. According to this principle, reducing the total variation of the signal—subject to it being a close match to the original signal—removes unwanted detail whilst preserving important details such as edges. The concept was pioneered by L. I. Rudin, S. Osher, and E. Fatemi in 1992 and so is today known as the ROF model. This noise removal technique has advantages over simple techniques such as linear smoothing or median filtering which reduce noise but at the same time smooth away edges to a greater or lesser degree. By contrast, total variation denoising is a remarkably effective edge-preserving filter, i.e., simultaneously preserving edges whilst smoothing away noise in flat regions, even at low signal-to-noise ratios.

1D signal series

For a digital signal xn, we can, for example, define the total variation as

V(x)=∑n|xn+1−xn|. Given an input signal xn, the goal of total variation denoising is to find an approximation, call it yn, that has smaller total variation than xn but is "close" to xn. One measure of closeness is the sum of square errors:

E⁡(x,y)=1n∑n(xn−yn)2. So the total-variation denoising problem amounts to minimizing the following discrete functional over the signal yn:

E⁡(x,y)+λV(y). By differentiating this functional with respect to yn, we can derive a corresponding Euler–Lagrange equation, that can be numerically integrated with the original signal xn as initial condition. This was the original approach. Alternatively, since this is a convex functional, techniques from convex optimization can be used to minimize it and find the solution yn.

Regularization properties The regularization parameter λ plays a critical role in the denoising process. When λ=0, there is no smoothing and the result is the same as minimizing the sum of squared errors. As λ→∞, however, the total variation term plays an increasingly strong role, which forces the result to have smaller total variation, at the expense of being less like the input (noisy) signal. Thus, the choice of regularization parameter is critical to achieving just the right amount of noise removal.

2D signal images We now consider 2D signals y, such as images. The total-variation norm proposed by the 1992 article is

V(y)=∑i,j|yi+1,j−yi,j|2+|yi,j+1−yi,j|2 and is isotropic and not differentiable. A variation that is sometimes used, since it may sometimes be easier to minimize, is an anisotropic version

Vaniso(y)=∑i,j|yi+1,j−yi,j|2+|yi,j+1−yi,j|2=∑i,j|yi+1,j−yi,j|+|yi,j+1−yi,j|. The standard total-variation denoising problem is still of the form

miny[E⁡(x,y)+λV(y)], where E is the 2D L2 norm. In contrast to the 1D case, solving this denoising is non-trivial. A recent algorithm that solves this is known as the primal dual method. Due in part to much research in compressed sensing in the mid-2000s, there are many algorithms, such as the split-Bregman method, that solve variants of this problem.

Rudin–Osher–Fatemi PDE Suppose that we are given a noisy image f and wish to compute a denoised image u over a 2D space. ROF showed that the minimization problem we are looking to solve is:

minu∈BV⁡(Ω)‖u‖TV⁡(Ω)+λ2∫Ω(f−u)2dx where BV⁡(Ω) is the set of functions with bounded variation over the domain Ω, TV⁡(Ω) is the total variation over the domain, and λ is a penalty term. When u is smooth, the total variation is equivalent to the integral of the gradient magnitude:

‖u‖TV⁡(Ω)=∫Ω‖∇u‖dx where ‖⋅‖ is the Euclidean norm. Then the objective function of the minimization problem becomes:minu∈BV⁡(Ω)∫Ω[‖∇u‖+λ2(f−u)2]dxFrom this functional, the Euler–Lagrange equation for minimization – assuming no time-dependence – gives us the nonlinear elliptic partial differential equation:

For some numerical algorithms, it is preferable to instead solve the time-dependent version of the ROF equation:∂u∂t=∇⋅(∇u‖∇u‖)+λ(f−u)

Applications The Rudin–Osher–Fatemi model was a pivotal component in producing the first image of a black hole.

See also Anisotropic diffusion Bounded variation Basis pursuit denoising Chambolle-Pock algorithm Digital image processing Lasso (statistics) Noise reduction Non-local means Signal processing Total variation

References

External links TVDIP: Full-featured Matlab 1D total variation denoising implementation. Efficient Primal-Dual Total Variation TV-L1 image denoising algorithm in Matlab

Illustrations

Total variation denoising: Example of application of the Rudin et al.[1] total variation denoising technique to an image corrupted by Gaussian noise. This example created using demo_tv.m by Guy Gilboa, see external links.
Example of application of the Rudin et al.[1] total variation denoising technique to an image corrupted by Gaussian noise. This example created using demo_tv.m by Guy Gilboa, see external links.
Total variation denoising: Application of 1D total-variation denoising to a signal obtained from a single-molecule experiment.[3] Gray is the original signal, black is the denoised signal.
Application of 1D total-variation denoising to a signal obtained from a single-molecule experiment.[3] Gray is the original signal, black is the denoised signal.

Worked examples

Example 1 — a first encounter with Total variation denoising

Start with the simplest possible case. Write down what Total variation denoising claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Total variation denoising before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Total variation denoising ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Total variation denoising

In research
Total variation denoising appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Total variation denoising in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Total variation denoising is common in secondary-school and first-year university syllabi. It links to neighbouring topics Image processing, Nonlinear filters, Partial differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for Total variation denoising outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Total variation denoising” →

How to study Total variation denoising in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Total variation denoising means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Total variation denoising out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Total variation denoising in simple terms?

In signal processing, particularly image processing, total variation denoising, also known as total variation regularization or total variation filtering, is a noise removal process (filter). It is based on the principle that signals with excessive and possibly spurious detail have high total varia…

Why does Total variation denoising matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Total variation denoising?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Total variation denoising.

Tags

  • Image processing
  • Nonlinear filters
  • Partial differential equations
  • Signal processing

Keep exploring