A median filter which works on arrays. More...
#include <median.h>
Public Member Functions | |
virtual bool | configure () |
Pure virtual function for the sub class to configure the filter This function must be implemented in the derived class. | |
MedianFilter () | |
Construct the filter with the expected width and height. | |
virtual bool | update (const T &data_in, T &data_out) |
Update the filter and return the data seperately. | |
~MedianFilter () | |
Destructor to clean up. | |
Protected Attributes | |
boost::scoped_ptr < RealtimeCircularBuffer< T > > | data_storage_ |
Storage for data between updates. | |
uint32_t | number_of_observations_ |
Number of observations over which to filter. | |
T | temp |
std::vector< T > | temp_storage_ |
Preallocated storage for the list to sort. |
A median filter which works on arrays.
filters::MedianFilter< T >::MedianFilter | ( | ) |
filters::MedianFilter< T >::~MedianFilter | ( | ) |
bool filters::MedianFilter< T >::configure | ( | ) | [virtual] |
Pure virtual function for the sub class to configure the filter This function must be implemented in the derived class.
Implements filters::FilterBase< T >.
bool filters::MedianFilter< T >::update | ( | const T & | data_in, |
T & | data_out | ||
) | [virtual] |
Update the filter and return the data seperately.
data_in | double array with length width |
data_out | double array with length width |
Implements filters::FilterBase< T >.
boost::scoped_ptr<RealtimeCircularBuffer<T > > filters::MedianFilter< T >::data_storage_ [protected] |
uint32_t filters::MedianFilter< T >::number_of_observations_ [protected] |
T filters::MedianFilter< T >::temp [protected] |
std::vector<T> filters::MedianFilter< T >::temp_storage_ [protected] |