Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function ThreshBottom(const Src: TMtxVecInt; const Value: Integer): TMtxVecInt; | Perform threshold operation on all Src object values. |
| └ indexed: function ThreshBottom(const Vec: TMtxVecInt; const Value: Integer; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt; | ||
| 2 | function ThreshBottom(const Value: Integer): TMtxVecInt; | Threshold bottom operation. |
| └ indexed: function ThreshBottom(const Value: Integer; Index: Integer; Len: Integer): TMtxVecInt; |
Overload 1: function ThreshBottom(const Src: TMtxVecInt; const Value: Integer): TMtxVecInt;
Perform threshold operation on all Src object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Value | Integer |
Result: stored in self (calling object), returns self for chaining
Store the results in calling object. Size and TMtxVecInt.IntPrecision properties of the calling object are adjusted automatically.
Indexed: function ThreshBottom(const Vec: TMtxVecInt; const Value: Integer; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Perform a threshold operation on Vec elements [VecIndex]..[VecIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Value | Integer | |
| 3 | VecIndex | Integer | |
| 4 | Index | Integer | start index |
| 5 | 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 TMtxVecInt.IntPrecision properties of the calling object must be set explicitly. An exception is raised if TMtxVecBase.ConditionCheck is true and array borders are overrun/underrun.
Overload 2: function ThreshBottom(const Value: Integer): TMtxVecInt;
Threshold bottom operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Integer |
Result: stored in self (calling object), returns self for chaining
Perform threshold operation on all calling object values. The Value parameter is a lower bound for threshold operation. All values smaller than Value will be replaced with Value.
var a: TVecInt;
begin
CreateIt(a);
try
a.SetIt([2,0,3,4]);
a.ThreshBottom(1); // a = [2,1,3,4]
finally
FreeIt(a);
end;
end;
Indexed: function ThreshBottom(const Value: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Perform the threshold operation on calling object values [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Integer | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun/underrun.
var a: TMtxInt;
begin
CreateIt(a);
try
a.SetIt(2,2,[2,0,3,4]);
a.ThreshBottom(1); // a = [2,1,3,4]
finally
FreeIt(a);
end;
end;