34 #ifndef AIMS_SIGNALFILTER_MOVINGAVERAGEFILTER_H
35 #define AIMS_SIGNALFILTER_MOVINGAVERAGEFILTER_H
81 double at(
int x )
const;
156 double at(
int x )
const;
Separable Cascade of Moving Average Filter.
MovingAverageCascadeFilter(const Point4du &length, const Point4du &n, FilterType::Direction symtype=FilterType::Symmetrical)
void setType(FilterType::Direction symtype)
virtual ~MovingAverageCascadeFilter()
void setLength(const Point4du &length)
MovingAverageCascadeFilter(const MovingAverageCascadeFilter &other)
MovingAverageCascadeFilter(const Point4du &length, unsigned n=2, FilterType::Direction symtype=FilterType::Symmetrical)
MovingAverageCascadeFilter & operator=(const MovingAverageCascadeFilter &other)
FilterType::Direction type() const
Point4du length() const
Get parameters.
void setCascade(const Point4du &n)
MovingAverageCascadeFilter(unsigned length=3, unsigned n=2, FilterType::Direction symtype=FilterType::Symmetrical)
Constructor / Copy.
void setLength(unsigned length)
Set parameters.
void setCascade(unsigned n)
1D Cascade of Moving Average Kernel
unsigned length() const
Get parameters.
FilterType::Direction type() const
MovingAverageCascadeKernel & operator=(const MovingAverageCascadeKernel &other)
void setValues(unsigned length, unsigned n, FilterType::Direction symtype)
MovingAverageCascadeKernel(const MovingAverageCascadeKernel &other)
double operator()(int x) const
Get value.
void setLength(unsigned length)
std::vector< double > _values
void setType(FilterType::Direction symtype)
const Point2di & support() const
void setCascade(unsigned n)
virtual ~MovingAverageCascadeKernel()
MovingAverageCascadeKernel(unsigned length=3, unsigned n=2, FilterType::Direction symtype=FilterType::Symmetrical)
Constructor/Destructor/Copy.
void reset(unsigned length=3, unsigned n=2, FilterType::Direction symtype=FilterType::Symmetrical)
Set parameters.
Separable Moving Average Filter.
FilterType::Direction type() const
MovingAverageFilter & operator=(const MovingAverageFilter &other)
virtual ~MovingAverageFilter()
MovingAverageFilter(const Point4du &length, FilterType::Direction symtype=FilterType::Symmetrical)
void setType(FilterType::Direction symtype)
void setLength(const Point4du &length)
MovingAverageFilter(unsigned length=3, FilterType::Direction symtype=FilterType::Symmetrical)
Constructor / Copy.
MovingAverageFilter(const MovingAverageFilter &other)
void setLength(unsigned length)
Set parameters.
Point4du length() const
Get parameters.
FilterType::Direction type() const
MovingAverageKernel(const MovingAverageKernel &other)
void reset(unsigned length=3, FilterType::Direction symtype=FilterType::Symmetrical)
Set parameters.
unsigned length() const
Get parameters.
void setLength(unsigned length)
virtual ~MovingAverageKernel()
FilterType::Direction _type
void setType(FilterType::Direction symtype)
std::vector< double > _values
MovingAverageKernel & operator=(const MovingAverageKernel &other)
MovingAverageKernel(unsigned length=3, FilterType::Direction symtype=FilterType::Symmetrical)
Constructor/Destructor/Copy.
void setSupport(FilterType::Direction symtype)
double operator()(int x) const
Get value.
const Point2di & support() const