Horus Doc || Global Function Guide || General documentation   | Function documentation  

HxLessThanVal

Synopsis

HxImageRep HxLessThanVal(HxImageRep img, HxValue val)

Input

HxImageRep img
The input image

HxValue val
The value you want the compare the image values with.

Return value

HxImageRep
When a pixel from the first input image is less than the given value input image, the value of the corresponding pixel in the result is 1, otherwise it is 0.

Description

The function HxLessThanVal compares the pixel values of the input image with the value `val'. When the value of the pixel is less than the value, the corresponding pixel in the output image has value 1, otherwise the value of the pixel is 0. This operation is only defined for scalar images (and values).

Remarks

Valid input images
Only scalar images are valid. The image and value do not have to be of the same type.

Valid value types
Only scalar values are valid.

See also

HxLessEqualVal, HxGreaterThanVal, HxGreaterEqualVal, HxEqualVal, HxLessThan,

Keywords

Binary value, Comparison,


Generated on Mon Jan 27 15:45:00 2003 for GlobalFunctionGuide by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001