![]() |
aimsalgo
5.1.2
Neuroimaging image processing
|
1D Moving Average Kernel More...
#include <aims/signalfilter/movingaveragefilter.h>

Public Member Functions | |
| MovingAverageKernel (unsigned length=3, FilterType::Direction symtype=FilterType::Symmetrical) | |
| Constructor/Destructor/Copy. More... | |
| MovingAverageKernel (const MovingAverageKernel &other) | |
| virtual | ~MovingAverageKernel () |
| MovingAverageKernel & | operator= (const MovingAverageKernel &other) |
| double | operator() (int x) const |
| Get value. More... | |
| double | at (int x) const |
| const Point2di & | support () const |
| void | reset (unsigned length=3, FilterType::Direction symtype=FilterType::Symmetrical) |
| Set parameters. More... | |
| void | setLength (unsigned length) |
| void | setType (FilterType::Direction symtype) |
| unsigned | length () const |
| Get parameters. More... | |
| FilterType::Direction | type () const |
Protected Member Functions | |
| void | setSupport (FilterType::Direction symtype) |
Protected Attributes | |
| FilterType::Direction | _type |
| Point2di | _support |
| std::vector< double > | _values |
1D Moving Average Kernel
This kernel can be used as basis function in ConvolutionFilter and ConvolutionSubSampler classes.
The moving average transfer function is:
The symmetrical version needs an odd length.
Definition at line 60 of file movingaveragefilter.h.
| aims::MovingAverageKernel::MovingAverageKernel | ( | unsigned | length = 3, |
| FilterType::Direction | symtype = FilterType::Symmetrical |
||
| ) |
Constructor/Destructor/Copy.
If symtype == Symmetrical, length should be odd.
| aims::MovingAverageKernel::MovingAverageKernel | ( | const MovingAverageKernel & | other | ) |
|
virtual |
| double aims::MovingAverageKernel::at | ( | int | x | ) | const |
| unsigned aims::MovingAverageKernel::length | ( | ) | const |
Get parameters.
| double aims::MovingAverageKernel::operator() | ( | int | x | ) | const |
Get value.
| MovingAverageKernel& aims::MovingAverageKernel::operator= | ( | const MovingAverageKernel & | other | ) |
| void aims::MovingAverageKernel::reset | ( | unsigned | length = 3, |
| 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.
| void aims::MovingAverageKernel::setLength | ( | unsigned | length | ) |
|
protected |
| void aims::MovingAverageKernel::setType | ( | FilterType::Direction | symtype | ) |
| const Point2di& aims::MovingAverageKernel::support | ( | ) | const |
| FilterType::Direction aims::MovingAverageKernel::type | ( | ) | const |
|
protected |
Definition at line 111 of file movingaveragefilter.h.
|
protected |
Definition at line 110 of file movingaveragefilter.h.
|
protected |
Definition at line 112 of file movingaveragefilter.h.