Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function ThresholdGT_LT(const Vec: TOpenCLMtxVec; const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double): TOpenCLMtxVec; | Perform "greater than and less than" threshold operation on all Vec object values. |
| └ indexed: function ThresholdGT_LT(const Vec: TOpenCLMtxVec; const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec; | ||
| 2 | function ThresholdGT_LT(const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double): TOpenCLMtxVec; | Threshold greater than and less than operation. |
| └ indexed: function ThresholdGT_LT(const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double; Index: Integer; Len: Integer): TOpenCLMtxVec; |
Overload 1: function ThresholdGT_LT(const Vec: TOpenCLMtxVec; const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double): TOpenCLMtxVec;
Perform "greater than and less than" threshold operation on all Vec object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | GTLevel | Double | scalar |
| 3 | GTValue | Double | scalar |
| 4 | LTLevel | Double | scalar |
| 5 | LTValue | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Store the results in calling object. Size and TOpenCLBase.Complex properties of the calling object are adjusted automatically. An exception will be raised if Vec object contains complex numbers.
Indexed: function ThresholdGT_LT(const Vec: TOpenCLMtxVec; const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double; VecIndex: Integer; Index: Integer; Len: Integer): TOpenCLMtxVec;
Perform "greater than and less than" threshold operation on Vec elements from range [VecIndex]..[VecIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | GTLevel | Double | scalar |
| 3 | GTValue | Double | scalar |
| 4 | LTLevel | Double | scalar |
| 5 | LTValue | Double | scalar |
| 6 | VecIndex | Integer | |
| 7 | Index | Integer | start index |
| 8 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the results in the calling object elements [Index]..[Index+Len-1]. Size and TOpenCLBase.Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun. An exception will be raised if Vec object or the calling object contain complex numbers.
Overload 2: function ThresholdGT_LT(const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double): TOpenCLMtxVec;
Threshold greater than and less than operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | GTLevel | Double | scalar |
| 2 | GTValue | Double | scalar |
| 3 | LTLevel | Double | scalar |
| 4 | LTValue | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Perform operation on all calling object values. The LTValue parameter is an lower bound for threshold operation. The GTValue parameter is an upper bound for threshold operation. All values less than LTLevel will be replaced with LTValue. All values bigger than GTLevel will be replaced with GTValue. Operation is available only for none Complex values.
var a: clMatrix;
begin
a.CopyFromArray(2,2,TSingleArray.Create(2,0.1,3,4));
a.ThresholdGT_LT(2.3,3.4,1,0.5); // a = [2,0.5,3.4,3.4]
end;
Indexed: function ThresholdGT_LT(const GTLevel: Double; const GTValue: Double; const LTLevel: Double; const LTValue: Double; Index: Integer; Len: Integer): TOpenCLMtxVec;
Perfrom "greater than and less than" threshold operation on the calling object values in range [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | GTLevel | Double | scalar |
| 2 | GTValue | Double | scalar |
| 3 | LTLevel | Double | scalar |
| 4 | LTValue | Double | scalar |
| 5 | Index | Integer | start index |
| 6 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun/underrun. An exception will be raised if the calling object contains complex numbers.