MMACH commands


PROGRAM NAME

vcondskthin - Conditional Skeleton by Thinning

DESCRIPTION

vcondskthin will do the conditional skeleton by thinning of an input image by a conditional image and a set of structuring elements.

The two input images must be of the same size and have the same number of data bands. The input images may be of the same or different data types. If the input images are of different data types, then all input images will be upcast to the highest input image data type. The output image data type will be the same as that of the highest data type of the input images.

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

REQUIRED ARGUMENTS

-i1
type: infile
desc: first input image
-i2
type: infile
desc: second input image
-str1
type: infile
desc: Structuring Element
-str2
type: infile
desc: Structuring Element
-r
type: integer toggle
desc: Rotation step
allowed values:
-d
type: boolean
desc: rotation direction
-o
type: outfile
desc: resulting output image

OPTIONAL ARGUMENTS

none

EXAMPLES

vcondskthin -i1 ball.xv -i2 feath.xv -str1 b272.str -str2 b273.str -r 1 -o outimage.xv

Will do the conditional skeleton by thinning of image 1 "ball.xv" by the structuring set b272.str and b273.str using "feath.xv" as a conditional image, rotating the struct. els. 1 step after each iteration, with the resulting image written to "outimage.xv".

SEE ALSO

vcast1(1)

RESTRICTIONS

vcondskthin 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.