Public Member Functions | Static Public Member Functions | Protected Member Functions
puma2::ImageToImageOperator< I, O > Class Template Reference

#include <ImageToImageOperator.h>

Inheritance diagram for puma2::ImageToImageOperator< I, O >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ImageToImageOperator ()
virtual void operator() (const I &iImg, O &oImg)
 interface that will call apply -- can be overwritten in derived class
virtual ~ImageToImageOperator ()

Static Public Member Functions

static void checkImageArgument (const I &iImg, O &oImg)

Protected Member Functions

virtual void apply (const I &iImg, O &oImg)=0
 must be defined in derived class
virtual void checkArgument (const I &iImg, O &oImg)

Detailed Description

template<class I, class O>
class puma2::ImageToImageOperator< I, O >

Definition at line 14 of file ImageToImageOperator.h.


Constructor & Destructor Documentation

template<class I , class O >
puma2::ImageToImageOperator< I, O >::ImageToImageOperator ( )

Default constructor.

Definition at line 58 of file ImageToImageOperator.h.

template<class I , class O >
puma2::ImageToImageOperator< I, O >::~ImageToImageOperator ( ) [virtual]

Destructor

Definition at line 63 of file ImageToImageOperator.h.


Member Function Documentation

template<class I, class O>
virtual void puma2::ImageToImageOperator< I, O >::apply ( const I &  iImg,
O &  oImg 
) [protected, pure virtual]
template<class I, class O>
void puma2::ImageToImageOperator< I, O >::checkArgument ( const I &  iImg,
O &  oImg 
) [protected, virtual]

test and adjust size of output image

Default: sizes must be equal for input and output

if output image has zero size, it will be allocated to have the same size as the input image.

other behaviour can be defined for derived operators which only have to redefine this method

The method will throw an exception if input and output image are the same. This can be overwritten in a derived class, if inplace operation is possible.

Definition at line 78 of file ImageToImageOperator.h.

template<class I, class O>
void puma2::ImageToImageOperator< I, O >::checkImageArgument ( const I &  iImg,
O &  oImg 
) [static]

Definition at line 85 of file ImageToImageOperator.h.

template<class I, class O>
void puma2::ImageToImageOperator< I, O >::operator() ( const I &  iImg,
O &  oImg 
) [virtual]

interface that will call apply -- can be overwritten in derived class

Definition at line 69 of file ImageToImageOperator.h.


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


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:44