Fast Box-Counting Algorithm

Juan Ruiz de Miras and Miguel Ángel Posadas. University of Granada - SPAIN. 2022.

Last update: october - 2022

The box-counting (BC) algorithm is one of the most popular methods for calculating the fractal dimension (FD) of binary data. However, high computation times are needed to calculate the BC of large datasets composed of data in 2D, 3D or 4D. Here, we provide the source code of a very efficient parallel implementation of the BC algorithm for its execution on Graphics Processing Units (GPU).

You can download the C++/CUDA source code of the Fast Box-Counting algorithm by clicking here.

The file fbc.zip contains:

REQUERIMENTS for compilation and execution

Hardware: Computer with a capable CUDA GPU (https://developer.nvidia.com/cuda-gpus)
Software:

COMPILATION

The test.cpp file can be compiled with the following command: > nvcc -O3 -o test bcCUDA4D.cu bcCUDA3D.cu bcCUDA2D.cu bcCPU.cpp test.cpp

CITATION

If Fast Box-Counting has been useful for your research, please, cite as:
"Fast Computation of Fractal Dimension for 2D, 3D and 4D Data"
J. Ruiz de Miras, M.Á. Posadas, A.J. Ibáñez-Molina, M.F. Soriano and S. Iglesias-Parro
Journal of Computational Science 66, 2023
DOI: https://doi.org/10.1016/j.jocs.2022.101908

CONTACT AND SUGGESTIONS

For contact information click here