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

HxTriStateThreshold

Synopsis

HxImageRep HxTriStateThreshold (HxImageRep img, HxValue level, HxValue v1, HxValue v2, HxValue v3)

Input

HxImageRep img
The image you want to threshold.

HxValue level
The threshold level.

HxValue v1
The value assigned to pixels with a value smaller than the threshold level.

HxValue v2
The value assigned to pixels with a value equal to the threshold level.

HxValue v3
The value assigned to pixel with a value larger than the threshold level.

Return value

HxImageRep
The thresholded image.

Description

The function HxTriStateThreshold compares each pixel value with the given value of `level'. If the pixel value is smaller than `level' the corresponding pixel in the output image has a value equal to HxValue v1, if the value is equal to `level', the corresponding pixel in the output image has a value equal to HxValue v2, otherwise the corresponding pixel in the output image has a value equal to HxValue v3. The function HxThreshold only works for scalar images.

Remarks

Valid input images
The input image should be a scalar image.

Valid level values
The level should be a scalar.

See also

HxThreshold,

Keywords

Threshold, Segmentation,


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