TOpenCLValue ThreshTop(TOpenCLValue Src, Double Value)
Threshold top operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue | source TOpenCLValue |
| 2 | Value | Double | scalar |
Returns: TOpenCLValue
Remarks:
Perform threshold operation on Src object value. The Value parameter is an upper bound for threshold operation. All values bigger than Value will be replaced with Value.
Examples
clValue a;
clValue b;
b.Copy(3);
a.ThreshTop(b, 0.2); // a = new double[] {0.2}
See Also: clValue.ThreshTop