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. | |
MultiChannelMedianFilter () | |
Construct the filter with the expected width and height. | |
virtual bool | update (const std::vector< T > &data_in, std::vector< T > &data_out) |
Update the filter and return the data seperately. | |
~MultiChannelMedianFilter () | |
Destructor to clean up. | |
Protected Attributes | |
boost::scoped_ptr < RealtimeCircularBuffer < std::vector< T > > > | data_storage_ |
Storage for data between updates. | |
uint32_t | number_of_observations_ |
Number of observations over which to filter. | |
std::vector< T > | temp |
std::vector< T > | temp_storage_ |
Preallocated storage for the list to sort. |
A median filter which works on arrays.
filters::MultiChannelMedianFilter< T >::MultiChannelMedianFilter | ( | ) |
filters::MultiChannelMedianFilter< T >::~MultiChannelMedianFilter | ( | ) |
bool filters::MultiChannelMedianFilter< 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::MultiChannelFilterBase< T >.
bool filters::MultiChannelMedianFilter< T >::update | ( | const std::vector< T > & | data_in, |
std::vector< 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::MultiChannelFilterBase< T >.
boost::scoped_ptr<RealtimeCircularBuffer<std::vector<T> > > filters::MultiChannelMedianFilter< T >::data_storage_ [protected] |
uint32_t filters::MultiChannelMedianFilter< T >::number_of_observations_ [protected] |
std::vector<T> filters::MultiChannelMedianFilter< T >::temp [protected] |
std::vector<T> filters::MultiChannelMedianFilter< T >::temp_storage_ [protected] |