Template Class MultiChannelMeanFilter

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class MultiChannelMeanFilter : public filters::MultiChannelFilterBase<T>

A mean filter which works on double arrays.

Public Functions

MultiChannelMeanFilter()

Construct the filter with the expected width and height.

~MultiChannelMeanFilter() override

Destructor to clean up.

virtual bool configure() override

Pure virtual function for the sub class to configure the filter This function must be implemented in the derived class.

virtual bool update(const std::vector<T> &data_in, std::vector<T> &data_out) override

Update the filter and return the data separately.

Parameters:
  • data_in – T array with length width

  • data_out – T array with length width

Protected Attributes

std::unique_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.

std::vector<T> temp
uint32_t number_of_observations_

Number of observations over which to filter.