TOpenCLValue.ThreshTop Method

function ThreshTop(const Src: TOpenCLValue; Value: Double): TOpenCLValue;

Threshold top operation.

#NameTypeDescription
1SrcTOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

Perform threshold operation Src. The Value parameter is an upper bound for threshold operation. Src value bigger than Value will be replaced with Value.

Examples
var a,b: clValue;
begin
    b.Copy(3);
    a.ThreshTop(b, 0.2); // a = [0.2]
end;
See Also: TOpenCLValue.ThreshTop