WLJS LogoWLJS Notebook

BilateralFilter

BilateralFilter[data, σ, μ] applies a bilateral filter of spatial spread σ and pixel value spread μ to data.

Examples

Apply bilateral filter to an image:

img = ExampleData[{"TestImage", "Lena"}];
BilateralFilter[img, 2, 0.1]

Noise reduction while preserving edges:

noisy = ImageAdd[img, RandomImage[{-0.2, 0.2}]];
BilateralFilter[noisy, 3, 0.15]

Please visit the official Wolfram Language Reference for more details.

On this page