function ThreshTop(const Src: TOpenCLValue; Value: Double): TOpenCLValue;
Threshold top operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue | |
| 2 | Value | Double | scalar |
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