![]() |
SoDaRadio-12.2.0-cut_dependencies:6c82803
|
3 point Median Filter class – templatized (!) More...
#include <MedianFilter.hxx>
Public Member Functions | |
| MedianFilter3 () | |
| constructor no parameters | |
| unsigned int | apply (T *inbuf, T *outbuf, unsigned int len, float outgain=1.0) |
| Apply the 3 sample median filter to an input vector. | |
Private Member Functions | |
| T | findMedian (T v) |
| find the median of the supplied value vs. | |
Private Attributes | |
| T | a |
| storage for the value-before-last | |
| T | b |
| storage for the previous value | |
3 point Median Filter class – templatized (!)
Definition at line 47 of file MedianFilter.hxx.
|
inline |
|
inline |
Apply the 3 sample median filter to an input vector.
| inbuf | the input buffer |
| outbuf | the output buffer – the two buffers may overlap, though inbuf must be <= outbuf |
| len | the length of the input and output buffers |
| outgain | boost the output, if necessary |
Definition at line 66 of file MedianFilter.hxx.
References findMedian().
|
inlineprivate |
find the median of the supplied value vs.
the previous two supplied values
| v | the "new" value in the sequence |
Definition at line 82 of file MedianFilter.hxx.
Referenced by apply().
|
private |
storage for the value-before-last
Definition at line 98 of file MedianFilter.hxx.
Referenced by MedianFilter3(), and findMedian().
|
private |
storage for the previous value
Definition at line 99 of file MedianFilter.hxx.
Referenced by MedianFilter3(), and findMedian().