SignalUtils.MedianInit Method

procedure MedianInit(MaskSize: Integer; var State: TMedianState; const FloatPrecision: TMtxFloatPrecision);

Initialize a median filter.

#NameTypeDescription
1MaskSizeInteger
2StateTMedianState
3FloatPrecisionTMtxFloatPrecision

Result: stored in self (calling object)

Remarks:

Initialize the median filter by initializing the State variable. The MaskSize defines the size of the mask of the median filter. An even MaskSize is incremented to the next odd value. The delay line holding the MaskSize most recent samples is initialized to zero. An exception is raised if MaskSize is smaller than zero.

See Also: SignalUtils.MedianFilter, SignalUtils.MedianFree