MMACH commands
PROGRAM NAME
vsmoothseg - Smooth Segmentation
DESCRIPTION
vsmoothseg
will do the smooth segmentation of an input image by a marker 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.
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
- -str3
-
type: infile
desc: Structuring Element
- -o
-
type: outfile
desc: resulting output image
OPTIONAL ARGUMENTS
none
EXAMPLES
vsmoothseg -i1 img1.xv -i2 img2.xv -str1 b272.str -str2 b273.str -str3 b274.str -o outimage.xv
Will do the smooth segmentation of image 1 "img1.xv" by the marker "img2.xv", using the structuring sets b272.str, b273.str and b274.str, with the resulting image written to "outimage.xv".
Some useful structuring elements:
1 1 1 1 1 1 0 0 0
1 1 1 0 0 0 0 0 0
1 1 1 0 0 0 1 1 1
Note: the first struct. el. is used for erosions, the others are used for exoskeletons by thickening.
SEE ALSO
RESTRICTIONS
vsmoothseg
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.