MMACH (lmmach) functions


LIBRARY ROUTINE

lvcloseseg - Closing by a straight line segment.

LIBRARY CALL

int
lvcloseseg(xvimage *img_in, int alfa, int length, unsigned long border, xvimage *img_out)

INPUT

none

OUTPUT

none

RETURN VALUE

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

DESCRIPTION

vcloseseg will do an closing of the input image by a straight line segment.

the input image is "img_in" the straight line segment is defined by : - its length : "length" - its angle from the horizontal direction "alfa" the output image will be "img_out".

"im_trans" and "img_trav" are template images.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

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

Due to the simultaneous processing of 32 pixels in BIT images, input images of the BIT data type must be converted to a special data structure before the library is called. This can be accomplished by using the format routine. After the library call, the unformat routine can convert the image back to the BIT data type.

MODIFICATION

none

FILES

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

SEE ALSO

lmmach(3)

COPYRIGHT

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