This repository hosts the MATLAB and C++ implementations of the Bilateral Texture Filter as presented in the paper by Cho, H., Lee, H., Kang, H., and Lee, S. (2014) titled "Bilateral texture filtering", published in ACM Transactions on Graphics, Vol. 33, No. 4, Article 128.
The repository includes:
- MATLAB implementation of the bilateral texture filter.
- C++ implementation of the same algorithm.
- Over 30 sample images in the
images/
directory, demonstrating various textures. These images are named in the formatname-k-iter.ext
, wherek
is the optimal patch size anditer
is the number of iterations for that image.
- Open the
main.m
file. - Set the input image
I
, patch sizeK
, and number of iterationsITER
. - Run the script by typing
main
in the MATLAB console.
cd Cpp
mkdir build
cd build
cmake ..
make -j
Note: While the code is optimized to utilize all CPU threads, it is not real-time. The image compression4-5-15.png
is the most time-consuming, averaging 12.4206 seconds over 10 runs on an i7-13700K CPU with 24 cores.