[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

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


Synopsis
fd = mmfractal( f, range, option )
Input
f: Binary image (logical uint8).
range: Gray-scale (uint8 or uint16) or binary image (logical uint8). 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. optionally show plot to visualize the slope. 'PLOT' or 'NOPLOT'. Default: 'PLOT'.
Output
fd: 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
image
(f1)
image
(slope_fd1)
image
(f2)
image
(slope_fd2)
Source code
mmfractal.m

[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] Valid XHTML 1.0!
Copyright (c) 1998-2002 by SDC Information Systems