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.

