Gaussian Blur

Gaussian blur is the convolution of an image II with a 2D Gaussian kernel. It is the standard low-pass filter of computer vision: it suppresses high-frequency noise before any derivative-based operation, and it is the mathematical foundation of scale space. The kernel with standard deviation σ\sigma is

Gσ(x,y)=12πσ2exp ⁣(x2+y22σ2)G_\sigma(x, y) = \frac{1}{2\pi\sigma^2} \exp\!\left(-\frac{x^2 + y^2}{2\sigma^2}\right)

and the smoothed image is L(x,y,σ)=(GσI)(x,y)L(x, y, \sigma) = (G_\sigma * I)(x, y), where * denotes convolution. In practice the kernel is truncated to a finite window (a common choice is a half-width of about 3σ3\sigma, since almost all of the Gaussian’s mass lies within ±3σ\pm 3\sigma) and normalized so its entries sum to 1, which preserves the average image brightness.

Key properties

Role in derivative computation

Differentiation amplifies noise, so gradients are always computed on a smoothed image. Because convolution and differentiation commute,

x(GσI)=(Gσx)I\frac{\partial}{\partial x}\big(G_\sigma * I\big) = \left(\frac{\partial G_\sigma}{\partial x}\right) * I

one can convolve directly with the derivative of a Gaussian. Harris corner detection, Canny edges, KLT tracking, and optical flow all rely on gradients stabilized this way. The Difference of Gaussians (DoG) used by SIFT,

D(x,y,σ)=L(x,y,kσ)L(x,y,σ)D(x, y, \sigma) = L(x, y, k\sigma) - L(x, y, \sigma)

is a cheap approximation to the scale-normalized Laplacian of Gaussian, turning two blurs and a subtraction into a blob detector.

Anti-aliasing in image pyramids

Downsampling an image without first removing frequencies above the new Nyquist limit produces aliasing artifacts. Image pyramids therefore apply a Gaussian blur before each halving step — the classic Gaussian pyramid. Multi-scale feature detection (ORB’s scale levels, KLT’s coarse-to-fine tracking) depends on this pre-smoothing being done correctly.

Practical notes

Why it matters for SLAM

Almost every front-end operation in visual SLAM touches a Gaussian blur: gradient-based detectors and trackers smooth before differentiating; SIFT builds its entire detection pipeline on the Gaussian scale space and DoG; ORB and KLT run on Gaussian pyramids for scale robustness; and direct methods benefit from mild smoothing that widens the basin of convergence of photometric alignment. Understanding how σ\sigma trades noise suppression against feature localization accuracy explains many practical tuning decisions in SLAM front-ends.