Woolz Image Processing  Version 1.7.5
WlzDistanceTransform
Name
WlzDistanceTransform - computes distance transform objects.
Synopsis
WlzDistanceTransform [-b] [-d#] [-D#] [-f#] [-p#] [-o#] [-h]
                     [<Reference input file>]
Options
-h Help, prints usage message.
-o Output file.
-b Use the boundary of the reference object.
-d Distance function:
0 Euclidean (2D and 3D, unimplemented)
1 octagonal (2D and 3D) - default
2 approximate Euclidean (2D and 3D)
4 4-connected (2D)
8 8-connected (2D)
6 6-connected (3D)
18 18-connected (3D)
26 26-connected (3D)
-D Maximum distance before iteration stops (default 0 implies an infinite maximum distance).
-f The foreground object file.
-p Distance function parameter, which is currently only used for approximate Euclidean distance transforms. The value should be \(geq\) 1, with larger values giving greater accuracy at the cost of increased time. Default value - 10.0.
Description
Computes a distance transform object which has the domain of the foreground object and values which are the distance from the reference object.
Examples
WlzDistanceTransform -b -f fish3.wlz fish4.wlz > out.wlz
Creates a new domain object with values, in which the domain is the same as that of fish3.wlz and the values are the minimum octagonal distance from their location to the boundary of the reference object fish4.wlz.
File
WlzDistanceTransform.c
See Also
WlzIntro(1) WlzDistanceTransform(3)