kn::ImageConvolution< T > Class Template Reference

Generic image convolution. More...

#include <ImageConvolution.hpp>

Inherits ImageProcessing< T >.

Collaboration diagram for kn::ImageConvolution< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ImageConvolution (const ConvolutionKernel &kernel, const ConvolutionOperator &op)
 Constructor to build a image convolution operator, with specified kernel and operator the operator IS NOT COPYIED.
 ImageConvolution (const ImageConvolution &e)
 Copy Constructor.
 ~ImageConvolution ()
 dealoccates image convolution data
void filterOnCopy (const Image< T > &img, Image< T > &result)
 convolution applied on copy of image
void filter (Image< T > &img)
 Convolution applied in place on image.
const ConvolutionKernelgetKernel () const
 getting the kernel used by the convolution
const ConvolutionOperatorgetOperator () const
 getting the operator used by the convolution

Protected Member Functions

void computeConvolution (const Image< T > &img, Image< T > &convo)
 Convolution applied on image, and stocked in temporary array.

Protected Attributes

ConvolutionKernel kernel
 the kernel used by the convolution
ConvolutionOperatorop
 the operator used by the convolution


Detailed Description

template<typename T>
class kn::ImageConvolution< T >

Generic image convolution.

Definition at line 57 of file ImageConvolution.hpp.


Constructor & Destructor Documentation

template<typename T >
kn::ImageConvolution< T >::ImageConvolution ( const ConvolutionKernel kernel,
const ConvolutionOperator op 
) [inline]

Constructor to build a image convolution operator, with specified kernel and operator the operator IS NOT COPYIED.

Parameters:
kernel the specified kernel to use
op the specified operator to use

Definition at line 132 of file ImageConvolution.hpp.

template<typename T >
kn::ImageConvolution< T >::ImageConvolution ( const ImageConvolution< T > &  e  )  [inline]

Copy Constructor.

Parameters:
e Error to clone

Definition at line 139 of file ImageConvolution.hpp.

template<typename T >
kn::ImageConvolution< T >::~ImageConvolution (  )  [inline]

dealoccates image convolution data

Definition at line 145 of file ImageConvolution.hpp.


Member Function Documentation

template<typename T >
void kn::ImageConvolution< T >::computeConvolution ( const Image< T > &  img,
Image< T > &  convo 
) [inline, protected]

Convolution applied on image, and stocked in temporary array.

Parameters:
img Image to convol
convo Temporary array for stocking the convolution

Definition at line 150 of file ImageConvolution.hpp.

template<typename T >
void kn::ImageConvolution< T >::filter ( Image< T > &  img  )  [inline, virtual]

Convolution applied in place on image.

Parameters:
img Image to convol

Implements kn::ImageProcessing< T >.

Definition at line 183 of file ImageConvolution.hpp.

template<typename T >
void kn::ImageConvolution< T >::filterOnCopy ( const Image< T > &  img,
Image< T > &  result 
) [inline, virtual]

convolution applied on copy of image

Parameters:
img Image to convol
Returns:
Copy of the image, after convolution

Implements kn::ImageProcessing< T >.

Definition at line 191 of file ImageConvolution.hpp.

template<typename T >
const ConvolutionKernel & kn::ImageConvolution< T >::getKernel (  )  const [inline]

getting the kernel used by the convolution

Returns:
the kernel used by the convolution

Definition at line 198 of file ImageConvolution.hpp.

template<typename T >
const ConvolutionOperator & kn::ImageConvolution< T >::getOperator (  )  const [inline]

getting the operator used by the convolution

Returns:
the operator used by the convolution

Definition at line 203 of file ImageConvolution.hpp.


Member Data Documentation

template<typename T >
ConvolutionKernel kn::ImageConvolution< T >::kernel [protected]

the kernel used by the convolution

Definition at line 85 of file ImageConvolution.hpp.

template<typename T >
ConvolutionOperator* kn::ImageConvolution< T >::op [protected]

the operator used by the convolution

Definition at line 89 of file ImageConvolution.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