SetThreshold method

Sets the value for threshold filtering operations.

Syntax

HRESULT retVal = object.SetThreshold(newVal);

Parameters

  • newVal [in]
    Type: float

    Threshold value. This number can range from 0.0 and 1.0.

Remarks

For the threshold filtering adjustment, each sample color channel whose value is below newVal*255 is set to 0. Each color channel with a value equal to or above that threshold is set to 255.