Gaussian Filtering - Computer Vision Website Header (2024)

Gaussian Filtering

The Gaussian Smoothing Operator performs a weighted average of surrounding pixels based on the Gaussian distribution. It is used to remove Gaussian noise and is a realistic model of defocused lens. Sigma defines the amount of blurring. The radius slider is used to control how large the template is. Large values for sigma will only give large blurring for larger template sizes. Noise can be added using the sliders.

How it works

The operator generates a template of values that are then applied to groups of pixels in the image. These template values are defined by 2D Gaussian Equation:

Gaussian Filtering - Computer Vision Website Header (1)

Gaussian Filtering - Computer Vision Website Header (2)

Sigma defines the amount of blurring:

Gaussian Filtering - Computer Vision Website Header (3)

High sigma values require significantly more calculations per pixel

Code

Image processing classes:

Noise generation classes:

Demo framework:

The pages were designed and developed for educational purposes only, to demonstrate how computer vision techniques work. They are designed for no other purpose and neither the authors nor their institutions accept any liability concerning use of these pages.

Links

Mark Nixon & Alberto Aguado, 2002, Feature Extraction & Image Processing, Newnes

Gaussian Filtering - Computer Vision Website Header (2024)

FAQs

What is the Gaussian filter in computer vision? ›

The Gaussian Smoothing Operator performs a weighted average of surrounding pixels based on the Gaussian distribution. It is used to remove Gaussian noise and is a realistic model of defocused lens.

What is the formula for Gaussian filtering? ›

1-dimensional Gaussian Filter

The univariate Gauss-function is defined as follows: gσ,μ(x)=1√2πσexp(−(x−μ)22σ2), where σ is the standard deviation and μ is the mean. In the context of filtering, the mean is always μ=0, the standard deviation σ is a parameter, which determines the width of the filter.

Why is the Gaussian filter better than the median filter? ›

A Gaussian filter typically yields the smoothest image, whereas a similarly sized mean or median filter typically leaves blocky traces.

How to apply Gaussian filter to an image? ›

TLDR: A Gaussian blur is applied by convolving the image with a Gaussian function. In English, this means that we'll take the Gaussian function and we'll generate an n x m matrix. Using this matrix and the height of the Gaussian distribution at that pixel location, we'll compute new RGB values for the blurred image.

What is Gaussian filter good for? ›

Smoothing and Noise Reduction: The Gaussian filter effectively smooths an image by reducing high-frequency noise. It convolves the image with a Gaussian function, which has a bell-shaped curve that provides a weighted average of neighboring pixels.

Is Gaussian filter high or low? ›

The Lowpass Gaussian Filter eliminates high frequency (sharp) features oriented along either the X or Y axis of the scan. The practical effect upon the image is a loss of detail or "blurring" effect.

What is the principle of Gaussian filter? ›

In general, Gaussian filtering is a process of weighted averaging of the entire image. The value of each pixel is obtained by weighted averaging of other pixel values in itself and in the neighborhood.

What is the cut off of the Gaussian filter? ›

One cut-off at each end of the profile is removed, to minimise the distortion at the ends of the profile. The minimum number of cut-offs in the measured profile (evaluation length) is three, to minimise the distortion of the profile due to the finite length of the profile.

What is the standard Gaussian formula? ›

A continuous random variable Z is said to be a standard normal (standard Gaussian) random variable, shown as Z∼N(0,1), if its PDF is given by fZ(z)=1√2πexp{−z22},for all z∈R. The 1√2π is there to make sure that the area under the PDF is equal to one.

Is Gaussian filter a high pass filter? ›

It replaces every element of the input signal with a weighted average of its neighborhood. This causes blurring in time/space, which is the same as attenuating high-frequency components in the frequency domain. The Gaussian filter is a low-pass filter, that is broadly used in image and signal processing.

Which is better Gaussian filter or Wiener filter? ›

The Wiener filter shows poor performance using the smallest kernel size (3x3) while the Gaussian filter shows the best results in such case. With the Gaussian filter being used, similar results of those obtained with low noise could be obtained in the case of high noise variance but with a higher kernel size.

Is Gaussian blur the same as Gaussian filter? ›

Introduction to Gaussian filter, or Gaussian blur

Another name for this filter is Gaussian blur. To get acquainted with filter window idea in signal and image processing read our “Filter window, or filter mask” article.

What is the effect of Gaussian filter on an image? ›

The effect of Gaussian smoothing is to blur an image, in a similar fashion to the mean filter. The degree of smoothing is determined by the standard deviation of the Gaussian. (Larger standard deviation Gaussians, of course, require larger convolution kernels in order to be accurately represented.)

What is the math behind Gaussian blur? ›

Because a photograph is two-dimensional, Gaussian blur uses two mathematical functions (one for the x-axis and one for the y) to create a third function, also known as a convolution. This third function creates a normal distribution of those pixel values, smoothing out some of the randomness.

What does Gaussian blur look like? ›

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.

What is the Gaussian filter in image enhancement? ›

Gaussian filter is one of the linear filters that serves to smooth and eliminate noise in an image. Mean Filter is very simple and easy to implement and is very useful for reducing the variation in value of a pixel with the next pixel.

What is the difference between Gaussian filter and binomial filter? ›

As you can see, Gaussian is perfectly radial and isotropic, while a binomial filter has more “rectangular” response, filtering less of the diagonals.

What is a Gaussian filter in medical image processing? ›

Gaussian filter is used for blurring the images and removing the noise and detail. Gaussian filters have the properties of having no overshoot to the step function input while limiting the rise and fall time. This conduct is firmly associated with the way that the Gaussian filters has the base possible gathering delay.

What is the difference of Gaussian image filter? ›

Difference of gaussians is a grayscale image enhancement algorithm that involves the subtraction of one blurred version of an original grayscale image from another, less blurred version of the original.

Top Articles
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 6700

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.