File Exchange

image thumbnail

Fractal analysis package

version 1.0.1 (168 KB) by Christian Frydendahl
This is a set of functions to analyse the geometry of particle aggregates in black and white binary images.


Updated 12 Jun 2019

View License

This package contains 3 main finder functions:

ap_finder.m - this determines the area and perimeters of particle clusters in a binary image, and returns each in a separate array. Mainly for making area vs. perimeter plots for fractal particle aggregates. Note, the perimeter is determined by expanding the clusters by 1 pixel in every direction, not by the default MATLAB routine.

conn_finder.m - this function determines several geometric aspects of the connected components of the image (i.e. the clusters), such as average cluster area, centre of mass coordinates for each cluster, the gyration radius of each cluster, and the correlation length of the image.

D_finder.m - find the Hausdorff fractal dimension of each cluster in the image, using the scaling/box counting method.

A short mathematical note is included on the methods used.

Cite As

Christian Frydendahl (2019). Fractal analysis package (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



Added option for including or excluding the particles touching the edges of a binary image.

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