boxcount#
- boxcount(im, bins=10)[source]#
Calculates fractal dimension of an image using the tiled box counting method [1]
- Parameters:
im (ndarray) – The image of the porous material.
bins (int or array_like, optional) – The number of box sizes to use. The default is 10 sizes logarithmically spaced between 1 and
min(im.shape)
. If an array is provided, this is used directly.
- Returns:
An object possessing the following attributes:
- sizendarray
The box sizes used
- countndarray
The number of boxes of each size that contain both solid and void
- slopendarray
The gradient of
count
. This has the same number of elements ascount
and
- Return type:
results
References
Examples
Click here to view online example.