Template Class MultiChannelMedianFilter

Inheritance Relationships

Base Type

Class Documentation

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

A median filter which works on arrays.

Public Functions

MultiChannelMedianFilter()

Construct the filter with the expected width and height.

~MultiChannelMedianFilter() 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 seperately.

Parameters:
  • data_in – T array with length width

  • data_out – T array with length width

Protected Attributes

std::vector<T> temp_storage_

Preallocated storage for the list to sort

std::unique_ptr<RealtimeCircularBuffer<std::vector<T>>> data_storage_

Storage for data between updates.

std::vector<T> temp
size_t number_of_observations_

Number of observations over which to filter.