MMACH (lmmach) functions


LIBRARY ROUTINE

lvwatersh - Do the watershed of a gray-scale image.

LIBRARY CALL

int
lvwatersh(xvimage *img1, int cv, int lw, xvimage *img2)

INPUT

none

OUTPUT

none

RETURN VALUE

TRUE (1) on success, FALSE (0) on failure

DESCRIPTION

lvwatersh Will do the watershed of a gray-scale image. img1 is the input image (of the VIFF_TYP_1_BYTE data type), img2 is the output image (of the VFF_TYP_2_BYTE data type). cv is an integer parameter that indicates wich connectivity is desired (4 for 4-connectivity or 8 for 8-connectivity). lw is a flag: true if border initialization with 0 is desired. If you want to use lwatersh in your program, note that if lw is true, the input image's inner boundary will be modified.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

lvwatersh The input and output images must be of the same size. The input and output image data types should be, respectively, VFF_TYP_1_BYTE and VFF_TYP_2_BYTE.

MODIFICATION

none

FILES

$MMACH/objects/library/lmmach/src/lvwatersh.c

SEE ALSO

mmach(3)

COPYRIGHT

Copyright (C) 1993-1997 Junior Barrera, Roberto Lotufo. All rights reserved.