GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Gaussian filter

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... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

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)= \sqrt{\frac{a}{\pi}}e^{-ax^2} and the frequency response is given by the Fourier transform \hat g(f)= e^{-\pi^2f^2/a} with f the ordinary frequency. These equations can also be expressed with the standard deviation as parameter g(x) = \frac{1}{\sqrt{2\pi}\sigma}e^{-x^2/(2\sigma^2)} and the frequency response is given by \hat g(f) = e^{-f^2/(2\sigma_f^2)} By writing a as a function of \sigma with the two equations for g(x) and as a function of \sigma_f with the two equations for \hat g(f) it can be shown that the product of the standard deviation and the standard deviation in the frequency domain is given by \sigma\sigma_f=\frac{1}{2\pi} , 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) = \frac{1}{2\pi \sigma^2}e^{-(x^2 + y^2)/(2 \sigma^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 Gaussian transfer function polynomials may be synthesized using a Taylor series expansion of the square of Gaussian function of the form e^{-a\omega^2} where a is set such that e^{-a\omega^2} = \sqrt{1/2} (i.e., -3.010\ \text{dB} ) at \omega=1 . The value of a may be calculated with this constraint to be a = -\log \left( \sqrt{1/2} \right) \approx 0.347 for an approximate -3.010\ \text{dB} cutoff attenuation. If an attenuation of other than -3.010\ \text{dB} is desired, a may be recalculated using a different attenuation, a=\log(10^{(|\text{dB}|/20)}) . To meet all above criteria, F(\omega) must be of the form obtained below, with no stop band zeros, F(\omega) = e^{-a\omega^2} = \sqrt{(e^{-a\omega^2})^2} = \sqrt{\frac{1}{e^{2a\omega^2}}} To complete the transfer function, e^{2a\omega^2} may be approximated with a Taylor Series expansion about 0. The full Taylor series for e^{2a\omega^2} is shown below. e^{2a\omega^2} = \sum_{k=0}^\infty \frac{(2a)^k\omega^{2k}}{k!} 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. F_N(\omega) = \sqrt{\frac{1}{\sum_{k=0}^\N \frac{(2a)^k\omega^{2k}}{k!}}} For the frequency axis, \omega is replaced with j\omega . F_N(j\omega) = \sqrt{\frac{1}{\sum_{k=0}^\N \frac{(2a)^k(j\omega)^{2k}}{k!}}}\bigg |_{\text{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. A 3rd order Gaussian filter with a -3.010\ \text{dB} cutoff attenuation at \omega = 1 requires the use of terms k = 0 to k = 3 in the Taylor series to produce the squared Gaussian function. F_3((j\omega)^2) = \frac{1}{1.33333a^3(j\omega)^6+2a^2(j\omega)^4+2a(j\omega)^2+1} \sigma_t\cdot\sigma_f=\frac{N}{2\pi} where the standard deviations are expressed in a number of samples and N is the total number of samples. The standard deviation of a filter can be interpreted as a measure of its size. The cutoff frequency of a Gaussian filter might be defined by the standard deviation in the frequency domain: f_c = \sigma_f = \frac{1}{2\pi\sigma_t} where all quantities are expressed in their physical units. If \sigma_t is measured in samples, the cutoff frequency (in physical units) can be calculated with f_c = \frac{F_s}{2\pi\sigma_t} where F_s is the sample rate. The response value of the Gaussian filter at this cutoff frequency equals e^{-0.5} \approx 0.607 . However, it is more common to define the cutoff frequency as the half-power point: where the filter response is reduced to 0.5 (i.e., -3.010\ \text{dB} ) in the power spectrum, or 1 / \sqrt 2 \approx 0.707 in the amplitude spectrum (see e.g. Butterworth filter). For an arbitrary cutoff value 1/c for the response of the filter, the cutoff frequency is given by f_c = \sqrt{2\ln(c)}\cdot\sigma_f 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). 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 probability distribution and thus its filter width of size n has standard deviation \sqrt{(n^2-1)/12} . Thus, the application of successive m moving averages with sizes {n}_1,\dots,{n}_m yield a standard deviation of \sigma = \sqrt{\frac{n_1^2+\cdots+n_m^2-m}{12}} (Note that standard deviations do not sum up, but variances do.) A Gaussian kernel requires 6\sigma_t-1 values, e.g. for a {\sigma_t} of 3 , it needs a kernel of length 17 . A running mean filter of 5 points will have a sigma of {\sqrt{2}} . Running it three times will give a {\sigma_t} of 2.42 . In practice, a sufficiently good approximation to a Gaussian convolution is achieved with three to five passes. ==Applications== Image Smoothing: The primary application of Gaussian filters is to reduce noise in images. By averaging pixel values with a weighted Gaussian distribution, the filter effectively blurs the image, diminishing high-frequency noise. Edge Detection: Gaussian filters are often used as a preprocessing step in edge detection algorithms. By smoothing the image, they help to minimize the impact of noise before applying methods like the Sobel or Canny edge detectors. Image Resizing: In image resizing tasks, Gaussian filters can prevent aliasing artifacts. Smoothing the image before downsampling ensures that the resulting image maintains better quality and visual fidelity. Computer Vision: The use of Gaussian filters in computer vision is extensive, including applications in object detection, image segmentation, and feature extraction, where reducing noise is crucial for accurate analysis. Medical Imaging: In medical imaging techniques such as MRI and CT scans, Gaussian filters enhance image quality by reducing noise, thereby aiding in clearer diagnosis and analysis. Graphics and Rendering: In computer graphics, Gaussian filters are used to create effects such as depth of field and motion blur, enhancing the realism of rendered scenes. Machine Learning: In the field of machine learning, particularly in convolutional neural networks (CNNs), Gaussian filters are employed for preprocessing images to improve the performance of models in tasks like image classification and object recognition. In defect detection, the filter can help emphasize certain defects for the model, thereby enhancing its detection performance. GSM since it applies GMSK modulation The Gaussian filter is also used in GFSK. Canny Edge Detector used in image processing.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Gaussian filter". 1790688927. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377472854

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·