Marsyas
0.6.0-alpha
|
Apply median filter on input vector. More...
#include <MedianFilter.h>
Inherits MarSystem.
Public Member Functions | |
void | addControls () |
MarSystem * | clone () const |
MedianFilter (mrs_string inName) | |
MedianFilter (const MedianFilter &inToCopy) | |
void | myProcess (realvec &inVec, realvec &outVec) |
Processes data. | |
void | myUpdate (MarControlPtr inSender) |
Updates internal state due to a control change. | |
~MedianFilter () |
Apply median filter on input vector.
This class represents a median filter. Each element in an input vector is replaced by the median of the elements that fall in a window surrounding the element, defined as: element index + [0,1.. N-1] - floor(N/2) with N, the size of the window.
Controls:
Definition at line 40 of file MedianFilter.h.
MedianFilter | ( | mrs_string | inName | ) |
Definition at line 15 of file MedianFilter.cpp.
MedianFilter | ( | const MedianFilter & | inToCopy | ) |
Definition at line 21 of file MedianFilter.cpp.
~MedianFilter | ( | ) |
Definition at line 28 of file MedianFilter.cpp.
void addControls | ( | ) |
Reimplemented from MarSystem.
Definition at line 35 of file MedianFilter.cpp.
Implements MarSystem.
Definition at line 30 of file MedianFilter.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 48 of file MedianFilter.cpp.
void myUpdate | ( | MarControlPtr | sender | ) | [virtual] |
Updates internal state due to a control change.
sender | The control that triggered the update; more precisely, any control passed to the update() method - could be an invalid one. |
Implement this method in subclass to define specific response to control changes.
Reimplemented from MarSystem.
Definition at line 42 of file MedianFilter.cpp.