[mmstats] [Up] [mmpatspec] Measurements

mmfractal
Compute the fractal dimension of a binary image using Minkowski sausage model.

Synopsis

function fd = mmfractal ( f , range , option )

Input

f Image Binary image
range Image Gray-scale (uint8 or uint16) or binary image

Vector with linearly increasing radius of the disk used in the dilation. Selects to portion to use the fitting in determine the line slope.

option String

Default: 'PLOT'

optionally show plot to visualize the slope. 'PLOT' or 'NOPLOT'.

Output

fd Double

Fractal dimension.

Description

Measures the natural logarithm decay of the area of the dilation minus erosion divided by the diameter of the Euclidean disk used in the dilation. The range sets the minimum and maximum diameter where the fitting is made. The plot of the fitting is shown.

Examples

f1=mmreadgray('gear.tif');
mmshow(f1);
fd1=mmfractal(f1,[5:15])
fd1 =
       1.2379
f2=mmopen(f1,mmsedisk(2));
mmshow(f2);
fd2=mmfractal(f2,[5:15])
fd2 =
       1.1932
f1 slope_fd1 f2
slope_fd2

[mmstats] [Up] [mmpatspec]