MatrixInt.Median Method

Overload List

#SignatureDescription
1function Median(const Src: TMtxVecInt; const MaskSize: Integer; const SrcIndex: Integer; const Index: Integer; const 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].
2function Median(const MaskSize: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;Applies median filter with size Mask to the calling vector elements [Index.. Index+Len-1].

Overload 1: function Median(const Src: TMtxVecInt; const MaskSize: Integer; const SrcIndex: Integer; const Index: Integer; const 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].

#NameTypeDescription
1SrcTMtxVecInt
2MaskSizeInteger
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

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(const MaskSize: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Applies median filter with size Mask to the calling vector elements [Index.. Index+Len-1].

#NameTypeDescription
1MaskSizeInteger
2IndexIntegerstart index
3LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

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.