#include <ImageToImagePairOperator.h>
Public Member Functions | |
ImageToImagePairOperator () | |
virtual void | operator() (const InputClass &inputImage, OutputClass1 &outputImage1, OutputClass2 &outputImage2) |
interface that will call apply -- can be overwritten in derived class | |
virtual | ~ImageToImagePairOperator () |
Static Public Member Functions | |
static void | checkImageArgument (const InputClass &inputImage, OutputClass1 &outputImage1, OutputClass2 &outputImage2) |
Protected Member Functions | |
virtual void | apply (const InputClass &inputImage, OutputClass1 &outputImage1, OutputClass2 &outputImage2)=0 |
must be defined in derived class | |
virtual void | checkArgument (const InputClass &inputImage, OutputClass1 &outputImage1, OutputClass2 &outputImage2) |
Definition at line 26 of file ImageToImagePairOperator.h.
puma2::ImageToImagePairOperator< InputClass, OutputClass1, OutputClass2 >::ImageToImagePairOperator | ( | ) |
Default constructor.
Definition at line 73 of file ImageToImagePairOperator.h.
puma2::ImageToImagePairOperator< InputClass, OutputClass1, OutputClass2 >::~ImageToImagePairOperator | ( | ) | [virtual] |
Destructor
Definition at line 78 of file ImageToImagePairOperator.h.
virtual void puma2::ImageToImagePairOperator< InputClass, OutputClass1, OutputClass2 >::apply | ( | const InputClass & | inputImage, |
OutputClass1 & | outputImage1, | ||
OutputClass2 & | outputImage2 | ||
) | [protected, pure virtual] |
must be defined in derived class
Implemented in puma2::RGB8ToY8UV8Operator.
void puma2::ImageToImagePairOperator< InputClass, OutputClass1, OutputClass2 >::checkArgument | ( | const InputClass & | inputImage, |
OutputClass1 & | outputImage1, | ||
OutputClass2 & | outputImage2 | ||
) | [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 93 of file ImageToImagePairOperator.h.
void puma2::ImageToImagePairOperator< InputClass, OutputClass1, OutputClass2 >::checkImageArgument | ( | const InputClass & | inputImage, |
OutputClass1 & | outputImage1, | ||
OutputClass2 & | outputImage2 | ||
) | [static] |
Definition at line 100 of file ImageToImagePairOperator.h.
void puma2::ImageToImagePairOperator< InputClass, OutputClass1, OutputClass2 >::operator() | ( | const InputClass & | inputImage, |
OutputClass1 & | outputImage1, | ||
OutputClass2 & | outputImage2 | ||
) | [virtual] |
interface that will call apply -- can be overwritten in derived class
Definition at line 84 of file ImageToImagePairOperator.h.