Class BoxCount


  • public final class BoxCount
    extends Object
    An N-dimensional box counting that can be used to estimate the fractal dimension of an interval

    The algorithm repeatedly lays a fixed grid on the interval, and counts the number of sections that contain foreground. After each step the grid is made finer by a factor of scaling. If the objects in the interval are fractal, the proportion of foreground sections should increase as the grid gets finer.

    Produces a set of points (log(foreground count), -log(section size)) for curve fitting. The slope of the function gives the fractal dimension of the interval.

    Author:
    Richard Domander (Royal Veterinary College, London), Per Christian Henden, Jens Bache-Wiig