|
|
Line 1: |
Line 1: |
| {{Linear analog electronic filter|filter2=hide|filter3=hide}}
| | Ed is what people contact me and my wife doesn't like it at all. Some time in the past he chose to reside in North Carolina and he doesn't plan on changing it. To play lacross is one of the issues she loves most. Office supervising is what she does for a residing.<br><br>Here is my web-site - [http://203.250.78.160/zbxe/?document_srl=1792908 best psychic readings] |
| | |
| [[File:Gaussian Filter.svg|thumb|Shape of a typical Gaussian filter]]
| |
| In [[electronics]] and [[signal processing]], a '''Gaussian filter''' is a [[filter (signal processing)|filter]] whose [[impulse response]] is a [[Gaussian function]] (or an approximation to it). 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]]. It is considered the ideal [[time domain]] filter, just as the [[sinc filter|sinc]] is the ideal frequency domain filter.<ref>Filtering in the Time and Frequency Domains by Herman J. Blinchikoff, Anatol I. Zverev</ref> These properties are important in areas such as [[Oscilloscope#The_vertical_amplifier|oscilloscopes]]<ref>http://www.radiomuseum.org/forumdata/users/4767/file/Tektronix_VerticalAmplifierCircuits_Part1.pdf</ref> and digital telecommunication systems.<ref>http://www.picosecond.com/objects/AN-7a.pdf</ref>
| |
| | |
| 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
| |
| :<math>g(x)= \sqrt{\frac{a}{\pi}}\cdot e^{-a \cdot x^2}</math>
| |
| and the frequency response is given by (eq.206 [[Fourier_transform#Square-integrable_functions|Fourier transform]])
| |
| :<math>\hat g(f)= e^{-\frac{\pi^2f^2}{a}}</math>
| |
| with <math>f</math> the ordinary frequency. These equations can also be expressed with the [[standard deviation]] as parameter
| |
| :<math>g(x) = \frac{1}{\sqrt{2\pi}\cdot\sigma}\cdot e^{-\frac{x^2}{2\sigma^2}}</math>
| |
| and the frequency response is given by
| |
| :<math>\hat g(f) = e^{-\frac{f^2}{2\sigma_f^2}}</math>
| |
| By writing <math>a</math> as a function of <math>\sigma</math> with the two equations for <math>g(x)</math> and as a function of <math>\sigma_f</math> with the two equations for <math>\hat g(f)</math> it can be shown that the product of the standard deviation and the standard deviation in the frequency domain is given by
| |
| :<math>\sigma\cdot\sigma_f=\frac{1}{2\pi}</math>,
| |
| where the standard deviations are expressed in their physical units, e.g. in the case of time and frequency in seconds and Hertz.
| |
| | |
| In two dimensions, it is the product of two such Gaussians, one per direction:
| |
| | |
| :<math>g(x,y) = \frac{1}{2\pi \sigma^2} \cdot e^{-\frac{x^2 + y^2}{2 \sigma^2}}</math> <ref name="HaddadAkansu">R.A. Haddad and A.N. Akansu, "A Class of Fast Gaussian Binomial Filters for Speech and Image Processing," IEEE Transactions on Acoustics, Speech and Signal Processing, vol. 39, pp 723-727, March 1991.</ref><ref name="ShapiroStockman">Shapiro, L. G. & Stockman, G. C: "Computer Vision", page 137, 150. Prentence Hall, 2001</ref><ref name="NixonAguado">Mark S. Nixon and Alberto S. Aguado. ''Feature Extraction and Image Processing''. Academic Press, 2008, p. 88.</ref>
| |
| | |
| 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.
| |
| | |
| == Digital implementation ==
| |
| {{Refimprove section|date=September 2013}}
| |
| {{Cleanup|section|date=November 2008}}
| |
| The Gaussian function is non-zero for <math> x \in [-\infty,\infty] </math> 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]].
| |
| | |
| Since the [[Fourier transform]] of the Gaussian function yields a Gaussian function, the signal (preferably after being divided into overlapping windowed blocks) can be transformed with a [[Fast Fourier transform]], multiplied with a Gaussian function and transformed back. This is the standard procedure of applying an arbitrary [[finite impulse response]] filter, with the only difference that the Fourier transform of the filter window is explicitly known.
| |
| | |
| Due to the [[central limit theorem]], the Gaussian can be approximated by several runs of a very simple filter such as the [[moving average]]. The simple moving average corresponds to [[convolution]] with the constant [[B-spline]] ( a rectangular pulse ), and, for example, four iterations of a moving average yields a cubic B-spline as filter window which approximates the Gaussian quite well.
| |
| | |
| In the discrete case the standard deviations are related by
| |
| :<math>\sigma\cdot\sigma_f=\frac{N}{2\pi}</math>,
| |
| where the standard deviations are expressed in number of samples and ''N'' is the total number of samples.
| |
| Borrowing the terms from statistics, the [[standard deviation]] of a filter can be interpreted as a measure of its size. The cut-off frequency of a Gaussian filter might be defined by the standard deviation in the frequency domain yielding
| |
| : <math>f_c = \sigma_f = \frac{1}{2\pi\sigma}</math>,
| |
| where all quantities are expressed in their physical units. If <math>\sigma</math> is measured in samples the cut-off frequency (in physical units) can be calculated with
| |
| : <math>f_c = \frac{F_s}{2\pi\sigma}</math>,
| |
| where <math>F_s</math> is the sample rate.
| |
| The response value of the Gaussian filter at this cut-off frequency equals exp(-0.5)≈0.607.
| |
| | |
| However, it is more common to define the cut-off frequency as the half power point: where the filter response is reduced to 0.5 ( -3 dB ) in the power spectrum, or 1/{{sqrt|2}} ≈ 0.707 in the amplitude spectrum (see e.g. [[Butterworth_filter#Original_paper|Butterworth filter]]).
| |
| For an arbitrary cut-off value 1/''c'' for the response of the filter the cut-off frequency is given by
| |
| :<math>f_c = \sqrt{2\ln(c)}\cdot\sigma_f </math>
| |
| For ''c''=2 the constant before the standard deviation in the frequency domain in the last equation equals approximately 1.1774, which is half the Full Width at Half Maximum (FWHM) (see [[Gaussian_function#Properties|Gaussian function]]). For ''c''={{sqrt|2}} this constant equals approximately 0.8326. These values are quite close to 1.
| |
| | |
| A simple moving average corresponds to a [[uniform distribution (discrete)|uniform probability distribution]] and thus its filter width of size <math>n</math> has standard deviation <math>\sqrt{({n}^2-1)/12}</math>. Thus the application of successive <math>m</math> moving averages with sizes <math>{n}_1,\dots,{n}_m</math> yield a standard deviation of
| |
| : <math>\sigma = \sqrt{\frac{{n}_1^2+\cdots+{n}_m^2-m}{12}}</math>. | |
| (Note that standard deviations do not sum up, but [[variance]]s do.)
| |
| | |
| A gaussian kernel requires <math>6{\sigma}-1</math> values, e.g. for a <math>{\sigma}</math> of 3 it needs a kernel of length 17. A running mean filter of 5 points will have a sigma of <math>{\sqrt{2}}</math>. Running it three times will give a <math>{\sigma}</math> of 2.42. It remains to be seen where the advantage is over using a gaussian rather than a poor approximation.
| |
| | |
| When applied in two dimensions, this formula produces a Gaussian surface that has a maximum at the origin, whose [[:wikt:contour|contour]]s are [[concentric circles]] with the origin as center. A two dimensional [[convolution]] [[Matrix (mathematics)|matrix]] is 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 elements 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 a color intensity, and the overall effect is called [[Gaussian blur]].
| |
| | |
| The Gaussian filter is non-causal which means the filter window is symmetric about the origin in the time-domain. This makes the Gaussian filter physically unrealizable. This is usually of no consequence for applications where the filter bandwidth is much larger than the signal. In real-time systems, a delay is incurred because incoming samples need to fill the filter window before the filter can be applied to the signal. However, no amount of delay can make a Gaussian filter causal, because the Gaussian function is never zero.
| |
| | |
| ==Applications==
| |
| {{Expand section|date=May 2012}}
| |
| * [[GSM]] since it applies [[GMSK]] modulation
| |
| * the Gaussian filter is also used in [[GFSK]].
| |
| * [[Canny edge detector|Canny Edge Detector]] used in image processing.
| |
| | |
| == See also ==
| |
| {{colbegin}}
| |
| * [[Butterworth filter]]
| |
| * [[Comb filter]]
| |
| * [[Chebyshev filter]]
| |
| * [[Discrete Gaussian kernel]]
| |
| * [[Elliptic filter]]
| |
| * [[Gaussian blur]]
| |
| * [[Gaussian Pyramid]]
| |
| * [[Scale space]]
| |
| * [[Scale space implementation]]
| |
| {{colend}}
| |
| | |
| == References == | |
| <references />
| |
| | |
| {{DEFAULTSORT:Gaussian Filter}}
| |
| [[Category:Linear filters]]
| |
| [[Category:Gaussian function]]
| |
Ed is what people contact me and my wife doesn't like it at all. Some time in the past he chose to reside in North Carolina and he doesn't plan on changing it. To play lacross is one of the issues she loves most. Office supervising is what she does for a residing.
Here is my web-site - best psychic readings