![]() |
aimsalgo
5.1.2
Neuroimaging image processing
|
1D Cascade of Moving Average Kernel More...
#include <aims/signalfilter/movingaveragefilter.h>
Public Member Functions | |
MovingAverageCascadeKernel (unsigned length=3, unsigned n=2, FilterType::Direction symtype=FilterType::Symmetrical) | |
Constructor/Destructor/Copy. More... | |
MovingAverageCascadeKernel (const MovingAverageCascadeKernel &other) | |
virtual | ~MovingAverageCascadeKernel () |
MovingAverageCascadeKernel & | operator= (const MovingAverageCascadeKernel &other) |
double | operator() (int x) const |
Get value. More... | |
double | at (int x) const |
const Point2di & | support () const |
void | reset (unsigned length=3, unsigned n=2, FilterType::Direction symtype=FilterType::Symmetrical) |
Set parameters. More... | |
void | setLength (unsigned length) |
void | setCascade (unsigned n) |
void | setType (FilterType::Direction symtype) |
unsigned | length () const |
Get parameters. More... | |
unsigned | cascade () const |
FilterType::Direction | type () const |
Protected Member Functions | |
void | setValues (unsigned length, unsigned n, FilterType::Direction symtype) |
Protected Attributes | |
unsigned | _n |
Point2di | _support |
std::vector< double > | _values |
1D Cascade of Moving Average Kernel
This kernel can be used as basis function in ConvolutionFilter and ConvolutionSubSampler classes.
It is equivalent to a convolution of n Moving Average
The symmetrical version needs n * (length - 1) to be even.
Definition at line 136 of file movingaveragefilter.h.
aims::MovingAverageCascadeKernel::MovingAverageCascadeKernel | ( | unsigned | length = 3 , |
unsigned | n = 2 , |
||
FilterType::Direction | symtype = FilterType::Symmetrical |
||
) |
Constructor/Destructor/Copy.
If symtype == Symmetrical, n * (length - 1) should be even.
aims::MovingAverageCascadeKernel::MovingAverageCascadeKernel | ( | const MovingAverageCascadeKernel & | other | ) |
|
virtual |
double aims::MovingAverageCascadeKernel::at | ( | int | x | ) | const |
unsigned aims::MovingAverageCascadeKernel::cascade | ( | ) | const |
unsigned aims::MovingAverageCascadeKernel::length | ( | ) | const |
Get parameters.
double aims::MovingAverageCascadeKernel::operator() | ( | int | x | ) | const |
Get value.
MovingAverageCascadeKernel& aims::MovingAverageCascadeKernel::operator= | ( | const MovingAverageCascadeKernel & | other | ) |
void aims::MovingAverageCascadeKernel::reset | ( | unsigned | length = 3 , |
unsigned | n = 2 , |
||
FilterType::Direction | symtype = FilterType::Symmetrical |
||
) |
Set parameters.
Be aware that a call to reset, etc. will trigger a reallocation of the array and a recomputing of the values. If several of these values need changing, it is thus avdised to use the reset() method.
(Re)set all parameters
void aims::MovingAverageCascadeKernel::setCascade | ( | unsigned | n | ) |
void aims::MovingAverageCascadeKernel::setLength | ( | unsigned | length | ) |
void aims::MovingAverageCascadeKernel::setType | ( | FilterType::Direction | symtype | ) |
|
protected |
const Point2di& aims::MovingAverageCascadeKernel::support | ( | ) | const |
FilterType::Direction aims::MovingAverageCascadeKernel::type | ( | ) | const |
|
protected |
Definition at line 188 of file movingaveragefilter.h.
|
protected |
Definition at line 189 of file movingaveragefilter.h.
|
protected |
Definition at line 190 of file movingaveragefilter.h.