Image Component Library (ICL)
|
Class for logical operations performed on two images. (and, or, xor) More...
#include <BinaryLogicalOp.h>
Public Types | |
enum | optype { andOp, orOp, xorOp } |
this enum specifiy all possible binary logical operations More... | |
Public Member Functions | |
BinaryLogicalOp (optype t) | |
Constructor. | |
virtual | ~BinaryLogicalOp () |
Destructor. | |
virtual void | apply (const core::ImgBase *src1, const core::ImgBase *src2, core::ImgBase **dst) |
performes the logical 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 logical operations performed on two images. (and, or, xor)
Logical operations are only possible on integer types like Img8u, Img16s and Img32s
icl::filter::BinaryLogicalOp::BinaryLogicalOp | ( | optype | t | ) | [inline] |
Constructor.
t | defines the operaion that will be performed by apply |
virtual icl::filter::BinaryLogicalOp::~BinaryLogicalOp | ( | ) | [inline, virtual] |
Destructor.
virtual void icl::filter::BinaryLogicalOp::apply | ( | const core::ImgBase * | src1, |
const core::ImgBase * | src2, | ||
core::ImgBase ** | dst | ||
) | [virtual] |
performes the logical operation, given in the constructor or by the setOpType method.
src1 | first operand (image) |
src2 | second operand (image) |
dst | destination image, to store the result |
Implements icl::filter::BinaryOp.
optype icl::filter::BinaryLogicalOp::getOpType | ( | ) | const [inline] |
returns the operaion that will be performed by apply
void icl::filter::BinaryLogicalOp::setOpType | ( | optype | t | ) | [inline] |
sets the operaion that will be performed by apply
t | defines the operaion that will be performed by apply |