|
SoDaRadio-5.0.3-master:8901fb5
|
3 point Median Filter class – templatized (!) More...
#include <MedianFilter.hxx>
Public Member Functions | |
| MedianFilter3 () | |
| constructor no parameters More... | |
| unsigned int | apply (T *inbuf, T *outbuf, unsigned int len, float outgain=1.0) |
| Apply the 3 sample median filter to an input vector. More... | |
Private Member Functions | |
| T | findMedian (T v) |
| find the median of the supplied value vs. More... | |
Private Attributes | |
| T | a |
| storage for the value-before-last More... | |
| T | b |
| storage for the previous value More... | |
3 point Median Filter class – templatized (!)
Definition at line 49 of file MedianFilter.hxx.
|
inline |
constructor no parameters
Definition at line 55 of file MedianFilter.hxx.
|
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 68 of file MedianFilter.hxx.
|
inlineprivate |
find the median of the supplied value vs.
the previous two supplied values
| v | the "new" value in the sequence |
Definition at line 84 of file MedianFilter.hxx.
Referenced by SoDa::MedianFilter3< float >::apply().
|
private |
storage for the value-before-last
Definition at line 100 of file MedianFilter.hxx.
Referenced by SoDa::MedianFilter3< float >::findMedian(), and SoDa::MedianFilter3< float >::MedianFilter3().
|
private |
storage for the previous value
Definition at line 101 of file MedianFilter.hxx.
Referenced by SoDa::MedianFilter3< float >::findMedian(), and SoDa::MedianFilter3< float >::MedianFilter3().
1.8.13