Image Component Library (ICL)
|
Class for arithmetic operations performed on two images. More...
#include <BinaryArithmeticalOp.h>
Public Types | |
enum | optype { addOp, subOp, mulOp, divOp, absSubOp } |
this enum specifiy all possible binary arithmetical operations More... | |
Public Member Functions | |
BinaryArithmeticalOp (optype t) | |
Constructor. | |
virtual | ~BinaryArithmeticalOp () |
Destructor. | |
virtual void | apply (const core::ImgBase *poSrc1, const core::ImgBase *poSrc2, core::ImgBase **poDst) |
performes the arithmetical operation, given in the constructor or by the setOpType method. | |
void | setOpType (optype t) |
sets the operaion that will be performed by apply | |
optype | getOpType () const |
returns the operaion that will be performed by apply | |
Private Attributes | |
optype | m_eOpType |
Class for arithmetic operations performed on two images.
(add, sub, mul, div) Performance notes: The functions are implemented for all 5 ICL datatypes, but only Img8u, Img16s and Img32f are IPP-accelerated!
Constructor.
t | defines the operaion that will be performed by apply |
virtual icl::filter::BinaryArithmeticalOp::~BinaryArithmeticalOp | ( | ) | [inline, virtual] |
Destructor.
virtual void icl::filter::BinaryArithmeticalOp::apply | ( | const core::ImgBase * | poSrc1, |
const core::ImgBase * | poSrc2, | ||
core::ImgBase ** | poDst | ||
) | [virtual] |
performes the arithmetical operation, given in the constructor or by the setOpType method.
poSrc1 | first operand (image) |
poSrc2 | second operand (image) |
poDst | pointer to the destination image, to store the result |
Implements icl::filter::BinaryOp.
optype icl::filter::BinaryArithmeticalOp::getOpType | ( | ) | const [inline] |
returns the operaion that will be performed by apply
void icl::filter::BinaryArithmeticalOp::setOpType | ( | optype | t | ) | [inline] |
sets the operaion that will be performed by apply
t | defines the operaion that will be performed by apply |