StrataQuest Home › StrataQuest Glossary › Gaussian Filter
BOM Operation

Gaussian Filter

Nearby pixels count more; distant pixels count less

View
Definition
In a fluorescence microscope, every point of light reaches the camera as a small blur whose profile is approximately Gaussian: the optical point spread function (PSF). The Gaussian filter applies the same bell-shaped blur on purpose. Each output pixel is a weighted average of its neighbors, with weights that fall off with distance, and a single parameter, sigma, sets how far the blur reaches.
Sigma controls smoothing
Blur radius comes from σ, not kernel size
Separable convolution
One 2D filter, two fast 1D passes
Low-pass frequency filter
Keeps low frequencies, attenuates high ones
Pre-processing foundation
First step before edge detection or thresholding

How It Works

The Gaussian filter convolves the image with a 2D kernel whose weights follow the Gaussian distribution:

G(x,y) = (1/2πσ²) · exp(-(x²+y²)/2σ²)

Centered on a pixel, the kernel weights each neighbor by its distance from the center. Nearby pixels contribute strongly and distant ones little. The output is a weighted average that smooths noise while keeping the overall intensity pattern.

Two more properties follow from that shape. Because the frequency response is also a Gaussian, a large σ suppresses high frequencies (fine detail and noise) and a small σ keeps more detail. And smoothing again at increasing σ builds a scale-space representation, which reveals structures at different spatial scales.

Simplified

The Gaussian filter averages each pixel with its neighbors, giving close neighbors more weight than distant ones. The weights follow a bell curve, and sigma sets its width, which sets how much smoothing occurs.

Image Processing Foundation

Convolution Mechanics

The kernel slides across the image. At each position, the output pixel is the sum of the kernel coefficients times the pixel values beneath them: g(x,y) = Σ w(s,t) · f(x+s, y+t). For the Gaussian, the coefficients come from the Gaussian function, normalized to sum to 1.

Comparison with Other Smoothing Filters

The box (averaging) filter sets all coefficients equal. It is simpler and faster, but it blurs edges aggressively and produces frequency-domain ringing. Objects smaller than half the mask area disappear entirely.

A weighted average gives the center the highest weight, for example a 3×3 kernel with center 4, orthogonal neighbors 2 and diagonals 1, all divided by 16. It approximates the Gaussian for small kernels.

The Gaussian takes its coefficients from exp(-D²/2σ²). Of the three, it is the standard choice for noise reduction.

Border Handling

At the image border, the kernel extends past the edge. In the BOM Options tab, Border Input can build a border from real pixels of the neighboring fields of view, and Border Option sets how the image is padded: Fill with black, Fill with white, Mirror, or Copy last pixels. These are module options; the Gauss filter has no border setting of its own.

Relationship to PSF

Because the fluorescence PSF is approximately Gaussian, convolving with a Gaussian kernel models the blurring the optics already apply. That connection helps you choose sigma relative to the optical resolution of your system.

Simplified

Among smoothing filters, the Gaussian blurs most smoothly. A simple average (box filter) treats all neighbors equally and leaves blocky artifacts, while the Gaussian weights neighbors by distance, so the result looks natural. In general it can also be computed quickly, because a square Gaussian kernel splits into two 1D passes instead of one 2D pass.

Parameters & Settings

ParameterTypeDescription
ImageGrayscale imageThe image to smooth: any grayscale channel, or the output of another BOM operation.
Kernel radius (px)Integer, default 1Radius of the processing window, not its width: the Engines Reference example uses radius 3, which gives a 7×7 window. As a general rule, a radius of about 3σ holds the Gaussian tails.
Kernel shapeSelection, default DiskThe shape of the kernel.
Standard deviationFloat, default 1Standard deviation (σ) of the Gaussian, which sets the smoothing strength. σ=0.5 gives minimal smoothing, σ=1.0 moderate, and σ=2.0 or more heavy smoothing.
Simplified

There are three settings. Kernel radius sets the window size, and a larger radius makes room for a larger sigma. Kernel shape defaults to Disk. Standard deviation (sigma) is the smoothing control: start small, at 0.5–1.0, and increase it if noise persists.

Connected Terms

Share This Term
Term Connections