MMACH commands
PROGRAM NAME
vthin - Thinning
DESCRIPTION
vthin
will do the thinning of an input image by two set structuring elements.
The output image data type will be the same as that of the highest data type
of the input image.
Some useful pairs of structuring elements:
0 0 0 1 1 1
Homotopic Skeleton 0 1 0 0 0 0
1 1 1 0 0 0
0 0 0 1 0 0
Homotopic Marking 0 1 1 1 0 0
0 0 0 1 0 0
0 0 0 0 0 0
Skeleton Pruning 0 1 0 1 0 1
0 0 0 1 1 1
1 1 1 0 0 0
Boundary 1 1 1 0 0 0
1 1 1 0 0 0
REQUIRED ARGUMENTS
- -i
-
type: infile
desc: input image
- -str1
-
type: infile
desc: Structuring Element
- -str2
-
type: infile
desc: Structuring Element
- -o
-
type: outfile
desc: resulting output image
OPTIONAL ARGUMENTS
none
EXAMPLES
vthin -i ball.xv -str1 b272.str -str2 b273.str -o outimage.xv
Will do the thinning of image "ball.xv" by the structuring set b272.str and b273.str, with the resulting image written to "outimage.xv".
SEE ALSO
vcast1(1)
RESTRICTIONS
vthin
can be defined for all data types supported by Khoros, but at the moment it has been implemented just for the bit and unsigned char types.
The structuring elements are subsets of the 3x3 matrix and the origin is always at the center of this matrix.
REFERENCES
COPYRIGHT
Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.