Fast Bilateral Filter for 3D Images
This is an implementation of fast bilateral filtering for 3D images. This filter smoothes the image while preserving edges, but in its most straightforward implementation is very computationally demanding, especially with large 3D images. Fast bilateral filtering (S. Paris and F. Durand, MIT[1]) is an approximation technique which drastically improves the speed of computation. My implementation closely follows the Matlab version of the fast 2D filter[2] with some modifications.
The core function allows to control all of the parameters of the filter (4 for the Gaussian kernel, 4 for the subsampling), and a wrapper function makes some simplifications for ease of use.
To perform the separable 4D convolution, I used my own function submitted separately to File Exchange (27957).
[1] http://people.csail.mit.edu/sparis/bf/
[2] http://people.csail.mit.edu/jiawen/software/bilateralFilter.m
Cite As
Igor Solovey (2024). Fast Bilateral Filter for 3D Images (https://www.mathworks.com/matlabcentral/fileexchange/30833-fast-bilateral-filter-for-3d-images), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Separable N-Dimensional Convolution
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.