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

HxAddVal

Synopsis

HxImageRep HxAddVal(HxImageRep img, HxValue val)

Input

HxImageRep img
The input image

HxValue val
The input value

Return value

HxImageRep
The sum of the input image and the input value.

Description

The function HxAddVal adds the HxValue val to every pixel value in the input image and stores the result in the corresponding pixel of the output image. The dimensionality of `val' and the pixeldimensionality of the input image must be the same. If `val' is a vector and the pixels of the input image are vectors, the values are summed component wise.

Remarks

Admissable image and value types
The dimensionality of `val' and the pixeldimensionality of the input image must be the same.

Overflow error
The function HxAddVal can result in an overflow error.

See also

HxAdd, HxSubVal, HxDivVal, HxMulVal,

Keywords

Binary value, Arithmetic,


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