ArticleslgStudy

mathematics

Gaussian filter

Gaussian filter 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 filter rather than just read about it. In short: In electronics and signal processing, mainly in digital signal processing, a Gaussian filter is a filter whose impulse response is a Gaussian function (or an approximation to it, since a true Gaussian response would have infinite impulse response). Gaussian filters have the properties of having no overshoot to a step function input while minimizing the rise and fall time.

Gaussian filter — main illustration
Gaussian filter — illustration

Key takeaways

  • Gaussian filter 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 filter to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gaussian filter from memory before moving on to harder problems.

Reference excerpt

In electronics and signal processing, mainly in digital signal processing, a Gaussian filter is a filter whose impulse response is a Gaussian function (or an approximation to it, since a true Gaussian response would have infinite impulse response). Gaussian filters have the properties of having no overshoot to a step function input while minimizing the rise and fall time. This behavior is closely connected to the fact that the Gaussian filter has the minimum possible group delay. A Gaussian filter will have the best combination of suppression of high frequencies while also minimizing spatial spread, being the critical point of the uncertainty principle. These properties are important in areas such as oscilloscopes and digital telecommunication systems. Mathematically, a Gaussian filter modifies the input signal by convolution with a Gaussian function; this transformation is also known as the Weierstrass transform.

Definition The one-dimensional Gaussian filter has an impulse response given by

g(x)=aπe−ax2 and the frequency response is given by the Fourier transform

ĝ(f)=e−π2f2/a with f the ordinary frequency. These equations can also be expressed with the standard deviation as parameter

g(x)=12πσe−x2/(2σ2) and the frequency response is given by

ĝ(f)=e−f2/(2σf2) By writing a as a function of σ with the two equations for g(x) and as a function of σf with the two equations for ĝ(f) it can be shown that the product of the standard deviation and the standard deviation in the frequency domain is given by

σσf=12π, where the standard deviations are expressed in their physical units, e.g. in the case of time and frequency in seconds and hertz, respectively. In two dimensions, it is the product of two such Gaussians, one per direction:

g(x,y)=12πσ2e−(x2+y2)/(2σ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.

Synthesizing Gaussian filter polynomials The Gaussian transfer function polynomials may be synthesized using a Taylor series expansion of the square of Gaussian function of the form e−aω2 where a is set such that e−aω2=1/2 (i.e., −3.010 dB) at ω=1. The value of a may be calculated with this constraint to be a=−log⁡(1/2)≈0.347 for an approximate −3.010 dB cutoff attenuation. If an attenuation of other than −3.010 dB is desired, a may be recalculated using a different attenuation, a=log⁡(10(|dB|/20)). To meet all above criteria, F(ω) must be of the form obtained below, with no stop band zeros, F(ω)=e−aω2=(e−aω2)2=1e2aω2 To complete the transfer function, e2aω2may be approximated with a Taylor Series expansion about 0. The full Taylor series for e2aω2 is shown below. e2aω2=∑k=0∞(2a)kω2kk! The ability of the filter to simulate a true Gaussian function depends on how many terms are taken from the series. The number of terms taken beyond 0 establishes the order N of the filter. FN(ω)=1∑k=0ℕ(2a)kω2kk! For the frequency axis, ω is replaced with jω. FN(jω)=1∑k=0ℕ(2a)k(jω)2kk!|left half plane Since only half the poles are located in the left half plane (a Hurwitz polynomial), selecting only those poles to build the transfer function also serves to square root the equation, as is seen above.

Simple 3rd order example A 3rd order Gaussian filter with a −3.010 dB cutoff attenuation at ω = 1 requires the use of terms k=0 to k=3 in the Taylor series to produce the squared Gaussian function. F3((jω)2)=11.33333a3(jω)6+2a2(jω)4+2a(jω)2+1=1−1.33333a3ω6+2a2ω4−2aω2+1 Absorbing a into the coefficients, factoring using a root finding algorithm, and building the polynomials using only the left half plane poles yields the transfer function for a third order Gaussian filter with the required −3.010 dB cutoff attenuation. F3(jω)=10.2355931(jω)3+1.0078328(jω)2+1.6458471(jω)+1 A quick sanity check of evaluating |F3(j)| yields a magnitude of −2.986 dB, which represents an error of only ∼0.8% from the desired −3.010 dB. This error will decrease as the number of orders increases. In addition, the error at higher frequencies will be more pronounced for all Gaussian filters, bug will also decrease as the order of the filter increases.

Gaussian Transitional Filters Although Gaussian filters exhibit desirable group delay, as described in the opening description, the steepness of the cutoff attenuation may be less than desired. To work around this, tables have been developed and published that preserve the desirable Gaussian group delay response and the lower and mid frequencies, but switches to a higher steepness Chebyshev attenuation at the higher frequencies.

Digital implementation

The Gaussian function is for x∈(−∞,∞) and would theoretically require an infinite window length. However, since it decays rapidly, it is often reasonable to truncate the filter window and implement the filter directly for narrow windows, in effect by using a simple rectangular window function. In other cases, the truncation may introduce significant errors. Better results can be achieved by instead using a different window function; see scale space implementation for details. Filtering involves convolution. The filter function is said to be the kernel of an integral transform. The Gaussian kernel is continuous. Most commonly, the discrete equivalent is the sampled Gaussian kernel that is produced by sampling points from the continuous Gaussian. An alternate method is to use the discrete Gaussian kernel which has superior characteristics for some purposes. Unlike the sampled Gaussian kernel, the discrete Gaussian kernel is the solution to the discrete diffusion equation. When applied in two dimensions, a Gaussian filter kernel consists of a Gaussian surface that has a maximum at the origin, whose contours are concentric circles with the origin as center. A two-dimensional convolution matrix can be precomputed from the formula and convolved with two-dimensional data. Each element in the resultant matrix new value is set to a weighted average of that element's neighborhood. The focal element receives the heaviest weight (having the highest Gaussian value), and neighboring elements receive smaller weights as their distance to the focal element increases. In Image processing, each element in the matrix represents a pixel attribute such as brightness or color intensity, and the overall effect is called Gaussian blur.

… excerpt ends here. Continue reading the full article.

Illustrations

Gaussian filter: Shape of the impulse response of a typical Gaussian filter
Shape of the impulse response of a typical Gaussian filter

Worked examples

Example 1 — a first encounter with Gaussian filter

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

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

How to study Gaussian filter in 20 minutes

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

Frequently asked questions

What is Gaussian filter in simple terms?

In electronics and signal processing, mainly in digital signal processing, a Gaussian filter is a filter whose impulse response is a Gaussian function (or an approximation to it, since a true Gaussian response would have infinite impulse response). Gaussian filters have the properties of having no…

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

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 filter.

Tags

  • Gaussian function
  • Linear filters

Keep exploring