Marsyas  0.5.0-beta1
Public Member Functions
MedianFilter Class Reference

Apply median filter on input vector. More...

#include <MedianFilter.h>

Inherits MarSystem.

Public Member Functions

void addControls ()
MarSystemclone () 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 ()

Detailed Description

Apply median filter on input vector.

Author:
Matthias Varewyck
Date:
20090518

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.


Constructor & Destructor Documentation

MedianFilter ( mrs_string  inName)

Definition at line 15 of file MedianFilter.cpp.

MedianFilter ( const MedianFilter inToCopy)

Definition at line 21 of file MedianFilter.cpp.

Definition at line 28 of file MedianFilter.cpp.


Member Function Documentation

void addControls ( )

Reimplemented from MarSystem.

Definition at line 35 of file MedianFilter.cpp.

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 30 of file MedianFilter.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

Parameters:
inInput data to read.
outOutput 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.

Parameters:
senderThe 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.


The documentation for this class was generated from the following files: