/imfractal

A library to compute (multi)fractal dimensions of images written in Python.

Primary LanguagePythonOtherNOASSERTION

imfractal

An open source (BSD) library to compute (multi)fractal dimensions of images written in Python. Different implementations of the multifractal formalism are present, e.g., the Sandbox method, the MFS and the Singularity multifractal spectrum. The support for the use of the pyopencl library is in process of development.

Required dependencies for imfractal:

Optionaly, the classification test requires:

Installation

  • In Debian/Ubuntu, just install the required Python packages:

    apt-get install python-numpy python-scipy python-sklearn

Example

The most interesting example is a classifier to distiguish bread images from others types of images using imfractal. The code is available here.

Multifractal Spectrums implemented (so far)

  1. Singularity Multifractal spectrum (Haussdorf dimentions through Hölder exponents)
  2. Sandbox Multifractal spectrum
  3. Multifractal spectrum (MFS)