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

HxLessEqualVal

Synopsis

HxImageRep HxLessEqualVal(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 or equal to the given value input image, the value of the corresponding pixel in the result is 1, otherwise it is 0.

Description

The function HxLessEqualVal compares the pixel values of the input image with the value `val'. When the value of the pixel is less or equal 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 <val> types
Only scalar values are valid.

See also

HxLessThanVal, HxGreaterThanVal, HxGreaterEqualVal, HxEqualVal, HxLessEqual,

Keywords

Comparison,


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