latest version v1.9 - last update 10 Apr 2010 |
pre-convolution algorithm for a vector * kernel1D The type T is the type of the elements of the vector and kernel1D The class A determines how the values should be accumulated. More...
#include <ltiConvolutionHelper.h>
Public Member Functions | |
convHelper1D () | |
~convHelper1D () | |
bool | setKernel (const mathObject *kern) |
void | apply (const vector< T > &src, vector< T > &dest, const modifier::parameters ¶m) |
void | applyCol (const matrix< T > &src, matrix< T > &dest, const modifier::parameters ¶m) |
void | applyRow (const matrix< T > &src, matrix< T > &dest, const modifier::parameters ¶m) |
A & | getAccumulator () |
const A & | getAccumulator () const |
pre-convolution algorithm for a vector * kernel1D The type T is the type of the elements of the vector and kernel1D The class A determines how the values should be accumulated.
The class A must have following methods:
Examples of the accumulator class can be found in: lti::dilation::accumulatorGray, lti::dilation::accumulatorBin, lti::erosion::accumulatorGray, lti::erosion::accumulatorBin, lti::convolution::accumulator
The implementation of these methods allows the efficient use of this class for the implementation of convolution, dilation and erosion.
Please note that this class is intended to be used just as a helper class. The correctness of the parameters and input data must be ensured by the "helped" classes before these methods are called.
lti::convHelper1D< T, A >::convHelper1D | ( | ) |
default constructor
lti::convHelper1D< T, A >::~convHelper1D | ( | ) |
destructor
void lti::convHelper1D< T, A >::apply | ( | const vector< T > & | src, | |
vector< T > & | dest, | |||
const modifier::parameters & | param | |||
) |
void lti::convHelper1D< T, A >::applyCol | ( | const matrix< T > & | src, | |
matrix< T > & | dest, | |||
const modifier::parameters & | param | |||
) |
void lti::convHelper1D< T, A >::applyRow | ( | const matrix< T > & | src, | |
matrix< T > & | dest, | |||
const modifier::parameters & | param | |||
) |
const A& lti::convHelper1D< T, A >::getAccumulator | ( | ) | const |
returns a reference to the accumulator object being used
A& lti::convHelper1D< T, A >::getAccumulator | ( | ) |
returns a reference to the accumulator object being used
bool lti::convHelper1D< T, A >::setKernel | ( | const mathObject * | kern | ) |
try to get a Kernel from the parameters.
If it is not possible to get it, return false; This will not copy the kernel, it just will keep a reference to it!
kern | the mathObject with the kernel. |