Estimates the fractal dimension of an image using the Minkowski–Bouligand dimension. An image of the Sierpiński triangle is included for validation.
The Minkowski–Bouligand dimension, also called the box-counting dimension uses the ratio of number of boxes needed to cover the set as the box size decreases to compute the fractal dimension. Illustration from From Python to Numpy 2017 by Nicolas P. Rougier
This code originates from the following gist submission but with modifications to bring it up to date. This repository was created with permission of the original author with the intent of consolidating further developments in one place.