Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Median(const Src: TMtxVecInt; MaskSize: Integer): TVecInt; | Applies median filter with size Mask to data in Src and stores the result in the calling vector. |
| └ indexed: function Median(const Src: TMtxVecInt; MaskSize: Integer; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt; | ||
| 2 | function Median(MaskSize: Integer): TVecInt; | Applies median filter with size Mask to the calling vector. |
| └ indexed: function Median(MaskSize: Integer; Index: Integer; Len: Integer): TMtxVecInt; | ||
| 3 | function Median: Integer; | Median. |
| └ indexed: function Median(Index: Integer; Len: Integer): Integer; |
Overload 1: function Median(const Src: TMtxVecInt; MaskSize: Integer): TVecInt;
Applies median filter with size Mask to data in Src and stores the result in the calling vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | MaskSize | Integer |
Result: stored in self (calling object), returns self for chaining
Median filter is a nonlinear filter which replaces each element of the calling vector with the median value, calculated over the fixed range (mask) centered around that element and stores the result in the calling vector.
Indexed: function Median(const Src: TMtxVecInt; MaskSize: Integer; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Applies median filter with size Mask to Src object elements [SrcIndex..SrcIndex+Len-1] and stores the result in the calling vector elements [Index..Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | MaskSize | Integer | |
| 3 | SrcIndex | Integer | source start index |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Median filter is a nonlinear filter which replaces each element of the Src vector with the median value, calculated over the fixed range (mask) centered around that element and stores the result in the calling vector.
Overload 2: function Median(MaskSize: Integer): TVecInt;
Applies median filter with size Mask to the calling vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | MaskSize | Integer |
Result: stored in self (calling object), returns self for chaining
Median filter is a nonlinear filter which replaces each element of the calling vector with the median value, calculated over the fixed range (mask) centered around that element.
Indexed: function Median(MaskSize: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Applies median filter with size Mask to the calling vector elements [Index.. Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | MaskSize | Integer | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Median filter is a nonlinear filter which replaces each element of the calling vector with the median value, calculated over the fixed range (mask) centered around that element.
Overload 3: function Median: Integer;
Median.
Returns: Int32
Calculate median value for all calling object elements.
var a: Matrix;
c: double;
begin
a.SetIt(1,4,False,[1,2,3,4]);
c := a.Median;
end;
Indexed: function Median(Index: Integer; Len: Integer): Integer;
Calculate median value for calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | Len | Integer | element count |
Returns: Int32
An exception is raised if TMtxVecBase.ConditionCheck is true and array borders are overrun.