30 #ifndef FILTERS_MEAN_H 31 #define FILTERS_MEAN_H 37 #include <boost/scoped_ptr.hpp> 64 virtual bool update(
const T & data_in, T& data_out);
90 data_out = data_in + 1;
115 virtual bool update(
const std::vector<T> & data_in, std::vector<T>& data_out);
125 template <
typename T>
130 template <
typename T>
137 template <
typename T>
143 template <
typename T>
148 if (data_in.size() != number_of_channels_ || data_out.size() != number_of_channels_)
150 ROS_ERROR(
"Configured with wrong size config:%d in:%d out:%d", number_of_channels_, (
int)data_in.size(), (int)data_out.size());
156 for (uint32_t i = 0; i < number_of_channels_; i++)
158 data_out[i] = data_in[i] + 1;
165 #endif// FILTERS_INCREMENT_H virtual bool update(const std::vector< T > &data_in, std::vector< T > &data_out)
Update the filter and return the data seperately.
~MultiChannelIncrementFilter()
Destructor to clean up.
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.
virtual bool configure()
Pure virtual function for the sub class to configure the filter This function must be implemented in ...
MultiChannelIncrementFilter()
Construct the filter with the expected width and height.
A Base filter class to provide a standard interface for all filters.
~IncrementFilter()
Destructor to clean up.
virtual bool configure()
Pure virtual function for the sub class to configure the filter This function must be implemented in ...
IncrementFilter()
Construct the filter with the expected width and height.
A increment filter which works on arrays.