|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiGaussKernels.h>
Inheritance diagram for lti::gaussKernel1D< T >:


Public Member Functions | |
| gaussKernel1D (const int &size=3, const double &variance=-1.0) | |
| void | generate (const int &size, const double &theVariance=-1.0) |
| const double & | getActualVariance () const |
This class will create a one-dimensional gaussian filter kernel.
The area under the filter will be normalized to one.
The one dimesional kernel is calculated with following equation:

Example:
// the vector to be filtered: lti::vector<channel::value_type> data; // ... initialize vector here ... // gaussian filter kernel with 3 elements, and a variance of 0.72 lti::gaussKernel1D<channel::value_type> kernel(3,0.72); lti::convolution filter; // convolution operator lti::convolution::parameters param; // parameters param.setKernel(kernel); // use the gauss kernel filter.setParameters(param); // set parameters // filter the vector and leave the result there too filter.apply(data);
|
||||||||||||||||
|
constructor
|
|
||||||||||||||||
|
initialize this kernel with the specified values
|
|
|||||||||
|
Returns the actual variance used for generating the kernel. This is helpful if a negative value was given in the generation. |