An open source (BSD) library to compute (multi)fractal dimensions of images and volumes written in Python. Different implementations of the multifractal formalism are present, e.g., the Sandbox method, and the Singularity or Lipschitz-H"older multifractal spectrum.
-
Python 2.7
-
Numpy 1.1 or higher (http://numpy.scipy.org/)
-
Scipy 0.7 or higher (http://www.scipy.org/)
-
PIL 1.1.7 or higher (http://www.pythonware.com/products/pil/)
-
For the accelerated version of the Sandbox method you need cython (http://cython.org/)
Optionally, the classification test requires:
- scikit-learn 0.10.0 or higher (http://scikit-learn.org/)
-
In Debian/Ubuntu, just install the required Python packages:
apt-get install python-numpy python-scipy python-sklearn;
pip install cython
The most interesting example is a classifier to distiguish bread images from others types of images using imfractal. The code is available here.
- Singularity Multifractal spectrum (Haussdorf dimentions through Hölder exponents) (2D, 3D)
- Sandbox Multifractal spectrum (2D, 3D)