ArticleslgStudy

science

Anisotropic diffusion

Anisotropic diffusion is a science 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 Anisotropic diffusion rather than just read about it. In short: In image processing and computer vision, anisotropic diffusion, also called Perona–Malik diffusion, is a technique aiming at reducing image noise without removing significant parts of the image content, typically edges, lines or other details that are important for the interpretation of the image. Anisotropic diffusion resembles the process that creates a scale space, where an image generates a parameterized family…

Key takeaways

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

Reference excerpt

In image processing and computer vision, anisotropic diffusion, also called Perona–Malik diffusion, is a technique aiming at reducing image noise without removing significant parts of the image content, typically edges, lines or other details that are important for the interpretation of the image. Anisotropic diffusion resembles the process that creates a scale space, where an image generates a parameterized family of successively more and more blurred images based on a diffusion process. Each of the resulting images in this family are given as a convolution between the image and a 2D isotropic Gaussian filter, where the width of the filter increases with the parameter. This diffusion process is a linear and space-invariant transformation of the original image. Anisotropic diffusion is a generalization of this diffusion process: it produces a family of parameterized images, but each resulting image is a combination between the original image and a filter that depends on the local content of the original image. As a consequence, anisotropic diffusion is a non-linear and space-variant transformation of the original image. In its original formulation, presented by Perona and Malik in 1987, the space-variant filter is in fact isotropic but depends on the image content such that it approximates an impulse function close to edges and other structures that should be preserved in the image over the different levels of the resulting scale space. This formulation was referred to as anisotropic diffusion by Perona and Malik even though the locally adapted filter is isotropic, but it has also been referred to as inhomogeneous and nonlinear diffusion or Perona–Malik diffusion by other authors. A more general formulation allows the locally adapted filter to be truly anisotropic close to linear structures such as edges or lines: it has an orientation given by the structure such that it is elongated along the structure and narrow across. Such methods are referred to as shape-adapted smoothing or coherence enhancing diffusion. As a consequence, the resulting images preserve linear structures while at the same time smoothing is made along these structures. Both these cases can be described by a generalization of the usual diffusion equation where the diffusion coefficient, instead of being a constant scalar, is a function of image position and assumes a matrix (or tensor) value (see structure tensor). Although the resulting family of images can be described as a combination between the original image and space-variant filters, the locally adapted filter and its combination with the image do not have to be realized in practice. Anisotropic diffusion is normally implemented by means of an approximation of the generalized diffusion equation: each new image in the family is computed by applying this equation to the previous image. Consequently, anisotropic diffusion is an iterative process where a relatively simple set of computations is used to compute each successive image in the family and this process is continued until a sufficient degree of smoothing is obtained.

Formal definition Formally, let Ω⊂ℝ2 denote a subset of the plane and I(⋅,t):Ω→ℝ be a family of gray scale images. I(⋅,0) is the input image. Then anisotropic diffusion is defined as

∂I∂t=div⁡(c(x,y,t)∇I)=∇c⋅∇I+c(x,y,t)ΔI where Δ denotes the Laplacian, ∇ denotes the gradient, div⁡(⋯) is the divergence operator and c(x,y,t) is the diffusion coefficient. For t>0, the output image is available as I(⋅,t), with larger t producing blurrier images. c(x,y,t) controls the rate of diffusion and is usually chosen as a function of the image gradient so as to preserve edges in the image. Pietro Perona and Jitendra Malik pioneered the idea of anisotropic diffusion in 1990 and proposed two functions for the diffusion coefficient:

c(‖∇I‖)=e−(‖∇I‖/K)2 and

c(‖∇I‖)=11+(‖∇I‖K)2 the constant K controls the sensitivity to edges and is usually chosen experimentally or as a function of the noise in the image.

Motivation Let M denote the manifold of smooth images, then the diffusion equations presented above can be interpreted as the gradient descent equations for the minimization of the energy functional E:M→ℝ defined by

E[I]=12∫Ωg(‖∇I(x)‖2)dx where g:ℝ→ℝ is a real-valued function which is intimately related to the diffusion coefficient. Then for any compactly supported infinitely differentiable test function h,

ddt|t=0E[I+th]=ddt|t=012∫Ωg(‖∇(I+th)(x)‖2)dx=∫Ωg′(‖∇I(x)‖2)∇I⋅∇hdx=−∫Ωdiv⁡(g′(‖∇I(x)‖2)∇I)hdx where the last line follows from multidimensional integration by parts. Letting ∇EI denote the gradient of E with respect to the L2(Ω,ℝ) inner product evaluated at I, this gives

∇EI=−div⁡(g′(‖∇I(x)‖2)∇I) Therefore, the gradient descent equations on the functional E are given by

∂I∂t=−∇EI=div⁡(g′(‖∇I(x)‖2)∇I) Thus by letting c=g′ the anisotropic diffusion equations are obtained.

Regularization The diffusion coefficient, c(x,y,t), as proposed by Perona and Malik can lead to instabilities when ‖∇I‖2>K2. It can be proven that this condition is equivalent to the physical diffusion coefficient (which is different from the mathematical diffusion coefficient defined by Perona and Malik) becoming negative and it leads to backward diffusion that enhances contrasts of image intensity rather than smoothing them. To avoid the problem, regularization is necessary and people have shown that spatial regularizations lead to converged and constant steady-state solution. To this end one of the modified Perona–Malik models (which is also known as regularization of P-M equation) will be discussed. In this approach, the unknown is convolved with a Gaussian inside the non-linearity to obtain a modified Perona–Malik equation

∂I∂t=div⁡(c(|∇(Gσ∗I)|2)∇I) where Gσ=Cσ−1/2exp⁡(−|x|2/4σ). The well-posedness of the equation can be achieved by this regularization but it also introduces blurring effect, which is the main drawback of regularization. A prior knowledge of noise level is required as the choice of regularization parameter depends on it.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Anisotropic diffusion

Start with the simplest possible case. Write down what Anisotropic diffusion claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, 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 Anisotropic diffusion 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 Anisotropic diffusion 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 Anisotropic diffusion

In research
Anisotropic diffusion appears in science 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 Anisotropic diffusion 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
Anisotropic diffusion is common in secondary-school and first-year university syllabi. It links to neighbouring topics Image noise reduction techniques, Image processing, so understanding it makes those chapters shorter.
In everyday life
Look for Anisotropic diffusion 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 “Anisotropic diffusion” →

How to study Anisotropic diffusion in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Anisotropic diffusion 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 Anisotropic diffusion out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Anisotropic diffusion in simple terms?

In image processing and computer vision, anisotropic diffusion, also called Perona–Malik diffusion, is a technique aiming at reducing image noise without removing significant parts of the image content, typically edges, lines or other details that are important for the interpretation of the image…

Why does Anisotropic diffusion matter?

Because it connects several science 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 Anisotropic diffusion?

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 Anisotropic diffusion.

Tags

  • Image noise reduction techniques
  • Image processing

Keep exploring