kn::ConvolutionAverageOperator Class Reference

convolution operator for average More...

#include <ConvolutionAverageOperator.hpp>

Inherits kn::ConvolutionOperator.

Collaboration diagram for kn::ConvolutionAverageOperator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConvolutionAverageOperator ()
 Default constructor.
 ConvolutionAverageOperator (const ConvolutionAverageOperator &e)
 Constructor by copy.
 ~ConvolutionAverageOperator ()
 Destructor.
void initialize ()
 Reinitialize the operator.
double getResult ()
 Getting the result of the operation.
void operator() (double kernelValue, double imageValue)
 Insert the computation of a new point of the kernel.
ConvolutionAverageOperatorclone () const
 Virtual constructor by copy.

Protected Attributes

double sum
 sum of the computed values
double kernelSum
 sum of the kernel values


Detailed Description

convolution operator for average

Definition at line 51 of file ConvolutionAverageOperator.hpp.


Constructor & Destructor Documentation

kn::ConvolutionAverageOperator::ConvolutionAverageOperator (  )  [inline]

Default constructor.

Definition at line 59 of file ConvolutionAverageOperator.hpp.

kn::ConvolutionAverageOperator::ConvolutionAverageOperator ( const ConvolutionAverageOperator e  )  [inline]

Constructor by copy.

Definition at line 67 of file ConvolutionAverageOperator.hpp.

kn::ConvolutionAverageOperator::~ConvolutionAverageOperator (  )  [inline]

Destructor.

Definition at line 74 of file ConvolutionAverageOperator.hpp.


Member Function Documentation

ConvolutionAverageOperator* kn::ConvolutionAverageOperator::clone (  )  const [inline, virtual]

Virtual constructor by copy.

Returns:
a pointer on a new instance of the ConvolutionAverageOperator constructed by copy

Implements kn::ConvolutionOperator.

Definition at line 113 of file ConvolutionAverageOperator.hpp.

double kn::ConvolutionAverageOperator::getResult (  )  [inline, virtual]

Getting the result of the operation.

Returns:
the result of the operation
Exceptions:
ImageException kernel sum null

Implements kn::ConvolutionOperator.

Definition at line 95 of file ConvolutionAverageOperator.hpp.

void kn::ConvolutionAverageOperator::initialize (  )  [inline, virtual]

Reinitialize the operator.

Implements kn::ConvolutionOperator.

Definition at line 86 of file ConvolutionAverageOperator.hpp.

void kn::ConvolutionAverageOperator::operator() ( double  kernelValue,
double  imageValue 
) [inline, virtual]

Insert the computation of a new point of the kernel.

Parameters:
kernelValue the value of the kernel point
imageValue the value of the corresponding image point

Implements kn::ConvolutionOperator.

Definition at line 105 of file ConvolutionAverageOperator.hpp.


Member Data Documentation

sum of the kernel values

Definition at line 78 of file ConvolutionAverageOperator.hpp.

sum of the computed values

Definition at line 77 of file ConvolutionAverageOperator.hpp.


The documentation for this class was generated from the following file:

Generated on Thu Nov 12 16:06:36 2009 for OpenKraken-image by  doxygen 1.5.8