e01.org

Bilateral filter

A bilateral filter is a non-linear, edge-preserving, and noise-reducing smoothing filter for images. It replaces the intensity of each pixel with a weighted average of intensity values from nearby pixels. This weight can be based on a Gaussian distribution. Crucially, the weights depend not only on Euclidean distance of pixels, but also on the radiometric differences (e.g., variations in color intensity or depth). This dual dependency preserves sharp edges while suppressing noise. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

A bilateral filter is a non-linear, edge-preserving, and noise-reducing smoothing filter for images. It replaces the intensity of each pixel with a weighted average of intensity values from nearby pixels. This weight can be based on a Gaussian distribution. Crucially, the weights depend not only on Euclidean distance of pixels, but also on the radiometric differences (e.g., variations in color intensity or depth). This dual dependency preserves sharp edges while suppressing noise. ==Definition== The bilateral filter is defined as I^\text{filtered}(x) = \frac{1}{W_p} \sum_{x_i \in \Omega} I(x_i)f_r(\|I(x_i) - I(x)\|)g_s(\|x_i - x\|), and normalization term, {W_p} , is defined as W_p = \sum_{x_i \in \Omega}{f_r(\|I(x_i) - I(x)\|)g_s(\|x_i - x\|)} where I^\text{filtered} is the filtered image; I is the original input image to be filtered; x are the coordinates of the current pixel to be filtered; \Omega is the window centered in x , so x_i \in \Omega is another pixel; f_r is the range kernel for smoothing differences in intensities (this function can be a Gaussian function); g_s is the spatial (or domain) kernel for smoothing differences in coordinates (this function can be a Gaussian function). The weight W_p is assigned using the spatial closeness (using the spatial kernel g_s ) and the intensity difference (using the range kernel f_r ). Consider a pixel located at (i, j) that needs to be denoised in image using its neighbouring pixels and one of its neighbouring pixels is located at (k, l) . Then, assuming the range and spatial kernels to be Gaussian kernels, the weight assigned for pixel (k, l) to denoise the pixel (i, j) is given by w(i, j, k, l) = \exp\left(-\frac{(i - k)^2 + (j - l)^2}{2 \sigma_d^2} - \frac{\|I(i, j) - I(k, l)\|^2}{2 \sigma_r^2}\right), where \sigma_d and \sigma_r are smoothing parameters, and I(i, j) and I(k, l) are the intensity of pixels (i, j) and (k, l) respectively. After calculating the weights, normalize them: I_D(i, j) = \frac{\sum_{k, l} I(k, l) w(i, j, k, l)}{\sum_{k, l} w(i, j, k, l)}, where I_D is the denoised intensity of pixel (i, j) . ==Related models== The bilateral filter has been shown to be an application of the short time kernel of the Beltrami flow that was introduced as an edge preserving selective smoothing mechanism before the bilateral filter. Other edge-preserving smoothing filters include: anisotropic diffusion, weighted least squares, edge-avoiding wavelets, geodesic editing, guided filtering, and domain transforms.

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

Cite this

"Bilateral filter". 1781184722. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1358879495

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

Save to pass ·