MMACH commands
PROGRAM NAME
vwatersh - Watershed
DESCRIPTION
vwatersh
will do the watershed of a gray-scale input image.
The input image can be looked at as a surface model. Its basins are recognized via a flooding simulation.
The connectivity can be set to 4 or 8. If the 'Limited Watershed' option is set to true, the input image's border will be initialized with zeroes. This is useful to remove basins that touch the border.
REQUIRED ARGUMENTS
- -i
-
type: infile
desc: input image
- -cv
-
type: integer toggle
desc: connectivity
allowed values:
- 4 (4 connectivity),
- or 8 (8 connectivity)
- -lw
-
type: boolean
desc: Initialize boundary
- -o
-
type: outfile
desc: resulting output image
OPTIONAL ARGUMENTS
none
EXAMPLES
vwatersh -i ball.xv -cv 4 -o outimage.xv
Will do the 4-connectivity watershed of image "ball.xv", with the resulting image written to "outimage.xv".
SEE ALSO
RESTRICTIONS
vwatersh
The input image should be a gray-scale image of the VIFF_TYP_1_BYTE (byte) data type. The output image will be of the VIFF_TYP_2_BYTE (short) data type.
REFERENCES
COPYRIGHT
Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.