Fast Bilateral Filter

Fast bilateral filtering using Fourier approximation.
Updated 6 Jan 2019

View License

MATLAB implementation of the fast bilateral filter described in the following papers:

** K.N. Chaudhury, D. Sage, and M. Unser, "Fast O(1) bilateral filtering using trigonometric range kernels," IEEE Trans. Image Processing, vol. 20, no. 11, pp. 3376-3382, 2011.

** S. Ghosh and K.N. Chaudhury, "On fast bilateral filtering using Fourier kernels," IEEE Signal Processing Letters, vol. 23, no. 5, pp. 570-573, 2016.

Cite As

Kunal Chaudhury (2024). Fast Bilateral Filter (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

small code fix.

minor fix.
Snapshot of the GUI added.
GUI added.

a bug in the maxFilter code was fixed (thanks to Pravin Nair).

new version: optimized to work with narrow range kernels.
minor fix

Sterling's formula used to approximate the factorial computation. As a result, the filter can now be used with small range bandwidth, e.g., at \sigma_r=1.
some minor fix.
Small fixes made to speedup the code.

Replaced rand( ) by randn( ) in the file *demo*.

Replaced 'parfor' loop with 'for' loop.

A minor update.

Code for joint filtering of multiband images added (Courtsey of Derek).

screenshot added.