Super-fast Kuwahara image filter (for n-dimensional real or complex data)

Version 3.0.0.0 (446 KB) by Job
Edge preserving filter, fast Fourier-based implementation.
288 Downloads
Updated 19 Jul 2016

View License

This is a well-known filter that preserves edges by 'analyzing' the statistical variation in the environment.
The filtering procedure involves two convolutions: if the chosen kernel is relatively large, the convolutions are carried out by a multiplication in the Fourier domain.
If the input data is scalar, the convolutions are carried out in a single convolution, by processing the second convolution in the imaginary channel of the first convolution.
Compared to Luca Balbi's implementation, it is twice as fast for the smallest kernel, and up to five or six times as fast for larger kernels.
https://www.mathworks.com/matlabcentral/fileexchange/15027-faster-kuwahara-filter
The demo files compares this method on speed and accuracy with two other methods published on file exchange (on a 2D image).

Cite As

Job (2024). Super-fast Kuwahara image filter (for n-dimensional real or complex data) (https://www.mathworks.com/matlabcentral/fileexchange/58260-super-fast-kuwahara-image-filter-for-n-dimensional-real-or-complex-data), MATLAB Central File Exchange. Retrieved .

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

Inspired by: Faster Kuwahara filter

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
3.0.0.0

Generalized to handle
- 4D and 5D data,
- complex-valued data

2.0.0.0

Generalized to work on 3D scalar images as well.

1.3.0.0

-

1.2.0.0

-

1.1.0.0

-

1.0.0.0