Go to the documentation of this file.
30 #ifndef FILTERS_MEAN_HPP_
31 #define FILTERS_MEAN_HPP_
62 virtual bool update(
const T & data_in, T& data_out);
88 data_out = data_in + 1;
113 virtual bool update(
const std::vector<T> & data_in, std::vector<T>& data_out);
123 template <
typename T>
128 template <
typename T>
135 template <
typename T>
141 template <
typename T>
144 if (data_in.size() != number_of_channels_ || data_out.size() != number_of_channels_)
146 ROS_ERROR(
"Configured with wrong size config:%d in:%d out:%d", number_of_channels_, (
int)data_in.size(), (
int)data_out.size());
152 for (uint32_t i = 0; i < number_of_channels_; i++)
154 data_out[i] = data_in[i] + 1;
161 #endif// FILTERS_INCREMENT_HPP_
A Base filter class to provide a standard interface for all filters.
~MultiChannelIncrementFilter()
Destructor to clean up.
virtual bool configure()
Pure virtual function for the sub class to configure the filter This function must be implemented in ...
A increment filter which works on doubles.
virtual bool update(const T &data_in, T &data_out)
Update the filter and return the data seperately.
A increment filter which works on arrays.
~IncrementFilter()
Destructor to clean up.
MultiChannelIncrementFilter()
Construct the filter with the expected width and height.
virtual bool configure()
Pure virtual function for the sub class to configure the filter This function must be implemented in ...
virtual bool update(const std::vector< T > &data_in, std::vector< T > &data_out)
Update the filter and return the data seperately.
IncrementFilter()
Construct the filter with the expected width and height.
filters
Author(s):
autogenerated on Fri Nov 11 2022 03:09:05