#include <ImageToImageOperator.h>
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) |
Definition at line 14 of file ImageToImageOperator.h.
puma2::ImageToImageOperator< I, O >::ImageToImageOperator | ( | ) |
Default constructor.
Definition at line 58 of file ImageToImageOperator.h.
puma2::ImageToImageOperator< I, O >::~ImageToImageOperator | ( | ) | [virtual] |
Destructor
Definition at line 63 of file ImageToImageOperator.h.
virtual void puma2::ImageToImageOperator< I, O >::apply | ( | const I & | iImg, |
O & | oImg | ||
) | [protected, pure virtual] |
must be defined in derived class
Implemented in puma2::GaussOperator< T >, puma2::MedianFilter< T >, puma2::ColorToGrayOperator< C, G >, puma2::Mirror< T >, and puma2::ThermalToColorOperator.
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.
void puma2::ImageToImageOperator< I, O >::checkImageArgument | ( | const I & | iImg, |
O & | oImg | ||
) | [static] |
Definition at line 85 of file ImageToImageOperator.h.
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.