#include <ImagePairToImageOperator.h>
Public Member Functions | |
ImagePairToImageOperator () | |
virtual void | operator() (const I1 &iImg1, const I2 &iImg2, O &oImg) |
interface that will call apply -- can be overwritten in derived class | |
virtual | ~ImagePairToImageOperator () |
Static Public Member Functions | |
static void | checkImageArgument (const I1 &iImg1, const I2 &iImg2, O &oImg) |
Protected Member Functions | |
virtual void | apply (const I1 &iImg1, const I2 &iImg2, O &oImg)=0 |
must be defined in derived class | |
virtual void | checkArgument (const I1 &iImg1, const I2 &iImg2, O &oImg) |
Definition at line 25 of file ImagePairToImageOperator.h.
puma2::ImagePairToImageOperator< I1, I2, O >::ImagePairToImageOperator | ( | ) |
Default constructor.
Definition at line 69 of file ImagePairToImageOperator.h.
puma2::ImagePairToImageOperator< I1, I2, O >::~ImagePairToImageOperator | ( | ) | [virtual] |
Destructor
Definition at line 74 of file ImagePairToImageOperator.h.
virtual void puma2::ImagePairToImageOperator< I1, I2, O >::apply | ( | const I1 & | iImg1, |
const I2 & | iImg2, | ||
O & | oImg | ||
) | [protected, pure virtual] |
must be defined in derived class
Implemented in puma2::Y8UV8ToRGB8Operator.
void puma2::ImagePairToImageOperator< I1, I2, O >::checkArgument | ( | const I1 & | iImg1, |
const I2 & | iImg2, | ||
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 89 of file ImagePairToImageOperator.h.
void puma2::ImagePairToImageOperator< I1, I2, O >::checkImageArgument | ( | const I1 & | iImg1, |
const I2 & | iImg2, | ||
O & | oImg | ||
) | [static] |
Definition at line 96 of file ImagePairToImageOperator.h.
void puma2::ImagePairToImageOperator< I1, I2, O >::operator() | ( | const I1 & | iImg1, |
const I2 & | iImg2, | ||
O & | oImg | ||
) | [virtual] |
interface that will call apply -- can be overwritten in derived class
Definition at line 80 of file ImagePairToImageOperator.h.