A mean filter which works on double arrays. More...
#include <mean.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. | |
| MultiChannelMeanFilter () | |
| 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. | |
| ~MultiChannelMeanFilter () | |
| Destructor to clean up. | |
Protected Attributes | |
| boost::scoped_ptr < RealtimeCircularBuffer < std::vector< T > > > | data_storage_ |
| Storage for data between updates. | |
| uint32_t | last_updated_row_ |
| The last row to have been updated by the filter. | |
| uint32_t | number_of_observations_ |
| Number of observations over which to filter. | |
| std::vector< T > | temp |
A mean filter which works on double arrays.
Definition at line 132 of file mean.h.
| filters::MultiChannelMeanFilter< T >::MultiChannelMeanFilter | ( | ) | [inline] |
| filters::MultiChannelMeanFilter< T >::~MultiChannelMeanFilter | ( | ) | [inline] |
| bool filters::MultiChannelMeanFilter< T >::configure | ( | ) | [inline, 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::MultiChannelMeanFilter< T >::update | ( | const std::vector< T > & | data_in, | |
| std::vector< T > & | data_out | |||
| ) | [inline, virtual] |
Update the filter and return the data seperately.
| data_in | T array with length width | |
| data_out | T array with length width |
Implements filters::MultiChannelFilterBase< T >.
boost::scoped_ptr<RealtimeCircularBuffer<std::vector<T> > > filters::MultiChannelMeanFilter< T >::data_storage_ [protected] |
uint32_t filters::MultiChannelMeanFilter< T >::last_updated_row_ [protected] |
uint32_t filters::MultiChannelMeanFilter< T >::number_of_observations_ [protected] |
std::vector<T> filters::MultiChannelMeanFilter< T >::temp [protected] |