ArticleslgStudy

mathematics

Gaussian blur

Gaussian blur 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 Gaussian blur rather than just read about it. In short: In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function (named after mathematician and scientist Carl Friedrich Gauss). It is a widely used effect in graphics software, typically to reduce image noise and reduce definition.

Gaussian blur — main illustration
Gaussian blur — illustration

Key takeaways

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

Reference excerpt

In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function (named after mathematician and scientist Carl Friedrich Gauss). It is a widely used effect in graphics software, typically to reduce image noise and reduce definition. The visual effect of this blurring technique is a smooth blur resembling that of viewing the image through a translucent screen, distinctly different from the bokeh effect produced by an out-of-focus lens or the shadow of an object under usual illumination. Gaussian smoothing is also used as a pre-processing stage in computer vision algorithms in order to enhance image structures at different scales—see scale space representation and scale space implementation.

Mathematics Mathematically, applying a Gaussian blur to an image is the same as convolving the image with a Gaussian function. This is also known as a two-dimensional Weierstrass transform. By contrast, convolving by a circle (i.e., a circular box blur) would more accurately reproduce the bokeh effect. Since the Fourier transform of a Gaussian is another Gaussian, applying a Gaussian blur has the effect of reducing the image's high-frequency components; a Gaussian blur is thus a low-pass filter.

The Gaussian blur is a type of image-blurring filter that uses a Gaussian function (which also expresses the normal distribution in statistics) for calculating the transformation to apply to each pixel in the image. The formula of a Gaussian function in one dimension is G(x)=12πσ2e−x22σ2 In two dimensions, it is the product of two such Gaussian functions, one in each dimension: G(x,y)=12πσ2e−x2+y22σ2 where x is the distance from the origin in the horizontal axis, y is the distance from the origin in the vertical axis, and σ is the standard deviation of the Gaussian distribution. The origin on these axes are at the center (0, 0). When applied in two dimensions, this formula produces a surface whose contours are concentric circles with a Gaussian distribution from the center point. Values from this distribution are used to build a convolution matrix which is applied to the original image. This convolution process is illustrated visually in the figure on the right. Each pixel's new value is set to a weighted average of that pixel's neighborhood. The original pixel's value receives the heaviest weight (having the highest Gaussian value) and neighboring pixels receive smaller weights as their distance to the original pixel increases. This results in a blur that preserves boundaries and edges better than other, more uniform blurring filters; see also scale space implementation. In theory, the Gaussian function at every point on the image will be non-zero, meaning that the entire image would need to be included in the calculations for each pixel. In practice, when computing a discrete approximation of the Gaussian function, pixels at a distance of more than 3σ have a small enough influence to be considered effectively zero. Thus contributions from pixels outside that range can be ignored. Typically, an image processing program need only calculate a matrix with dimensions ⌈6σ⌉ × ⌈6σ⌉ (where ⌈⋅⌉ is the ceiling function) to ensure a result sufficiently close to that obtained by the entire Gaussian distribution. In addition to being circularly symmetric, the Gaussian blur can be applied to a two-dimensional image as two independent one-dimensional calculations, and so is termed a separable filter. That is, the effect of applying the two-dimensional matrix can also be achieved by applying a series of single-dimensional Gaussian matrices in the horizontal direction, then repeating the process in the vertical direction. In computational terms, this is a useful property, since the calculation can be performed in O(wkernelwimagehimage)+O(hkernelwimagehimage) time (where h is height and w is width; see Big O notation), as opposed to O(wkernelhkernelwimagehimage) for a non-separable kernel. Applying successive Gaussian blurs to an image has the same effect as applying a single, larger Gaussian blur, whose radius is the square root of the sum of the squares of the blur radii that were actually applied. For example, applying successive Gaussian blurs with radii of 6 and 8 gives the same results as applying a single Gaussian blur of radius 10, since 62+82=10. Because of this relationship, processing time cannot be saved by simulating a Gaussian blur with successive, smaller blurs — the time required will be at least as great as performing the single large blur.

Gaussian blurring is commonly used when reducing the size of an image. When downsampling an image, it is common to apply a low-pass filter to the image prior to resampling. This is to ensure that spurious high-frequency information does not appear in the downsampled image (aliasing). Gaussian blurs have nice properties, such as having no sharp edges, and thus do not introduce ringing into the filtered image.

Low-pass filter

Gaussian blur is a low-pass filter, attenuating high frequency signals. Its amplitude Bode plot (the log scale in the frequency domain) is a parabola.

Variance reduction For a Gaussian filter with standard deviation σf applied to an image of grayscale pixels with standard deviation σX, the reduced standard deviation σr of the filtered image can be approximated as σr≈σXσf2π.

Sample Gaussian matrix This sample matrix is produced by sampling the Gaussian filter kernel (with σ = 0.84089642) at the midpoints of each pixel and then normalizing. The center element (at [0, 0]) has the largest value, decreasing symmetrically as distance from the center increases. Since the filter kernel's origin is at the center, the matrix starts at G(−R,−R) and ends at G(R,R) where R equals the kernel radius. [0.000000670.00002292𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.00038771𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.000022920.000000670.000022920.000786330.006559650.013303730.006559650.000786330.00002292𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.006559650.054721570.110981640.054721570.00655965𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.000387710.013303730.11098164𝟎.𝟐𝟐𝟓𝟎𝟖𝟑𝟓𝟐0.110981640.013303730.00038771𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.006559650.054721570.110981640.054721570.00655965𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.000022920.000786330.006559650.013303730.006559650.000786330.000022920.000000670.00002292𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.00038771𝟎.𝟎𝟎𝟎𝟏𝟗𝟏𝟏𝟕0.000022920.00000067] The element 0.22508352 (the central one) is 1177 times larger than 0.00019117 which is just outside 3σ.

… excerpt ends here. Continue reading the full article.

Illustrations

Gaussian blur: The difference between a small and large Gaussian blur
The difference between a small and large Gaussian blur
Gaussian blur: A halftone print rendered smooth through Gaussian blur
A halftone print rendered smooth through Gaussian blur
Gaussian blur: Two downscaled images of the Flag of the Commonwealth of Nations. Before downscaling, a Gaussian blur was applied to the bottom image but not to the top image. The blur makes the image less sharp, but prevents the formation of moiré pattern aliasing artifacts.
Two downscaled images of the Flag of the Commonwealth of Nations. Before downscaling, a Gaussian blur was applied to the bottom image but not to the top image. The blur makes the image less sharp, but prevents the formation of moiré pattern aliasing artifacts.
Gaussian blur: This shows how smoothing affects edge detection. With more smoothing, fewer edges are detected.
This shows how smoothing affects edge detection. With more smoothing, fewer edges are detected.

Worked examples

Example 1 — a first encounter with Gaussian blur

Start with the simplest possible case. Write down what Gaussian blur 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 Gaussian blur 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 Gaussian blur 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 Gaussian blur

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

How to study Gaussian blur in 20 minutes

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

Frequently asked questions

What is Gaussian blur in simple terms?

In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function (named after mathematician and scientist Carl Friedrich Gauss). It is a widely used effect in graphics software, typically to reduce image noise and reduce definition.

Why does Gaussian blur 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 Gaussian blur?

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 Gaussian blur.

Tags

  • Gaussian function
  • Image noise reduction techniques
  • Image processing

Keep exploring