Image Component Library (ICL)
|
Class for bitwise logical operations on pixel values. More...
#include <UnaryLogicalOp.h>
Public Types | |
enum | optype { andOp = 0, orOp = 1, xorOp = 2, notOp = 3 } |
this enum specifiy all possible unary logical operations More... | |
Public Member Functions | |
UnaryLogicalOp (optype t, icl32s val=0) | |
Constructor. | |
virtual | ~UnaryLogicalOp () |
Destructor. | |
virtual void | apply (const core::ImgBase *poSrc, core::ImgBase **ppoDst) |
performes the logical operation, given in the constructor or by the setOpType method. | |
void | setValue (icl32s value) |
sets the second operand, with the source is operated with. | |
icl32s | getValue () const |
returns the value of the second operand | |
void | setOpType (optype t) |
changes the operator type | |
optype | getOpType () const |
returns the operator type | |
Private Attributes | |
optype | m_eOpType |
icl32s | m_dValue |
Class for bitwise logical operations on pixel values.
(all functions: Img8u, Img32s: IPP + Fallback, Img16s: Fallback only!, No support for other Types) Supported operations include And, Or, Xor, Not. Clearly all logical operations are only supported on integer typed images, i.e. icl8u.
icl::filter::UnaryLogicalOp::UnaryLogicalOp | ( | optype | t, |
icl32s | val = 0 |
||
) | [inline] |
Constructor.
virtual icl::filter::UnaryLogicalOp::~UnaryLogicalOp | ( | ) | [inline, virtual] |
Destructor.
virtual void icl::filter::UnaryLogicalOp::apply | ( | const core::ImgBase * | poSrc, |
core::ImgBase ** | ppoDst | ||
) | [virtual] |
performes the logical operation, given in the constructor or by the setOpType method.
poSrc | first operand (image) |
ppoDst | pointer to the destination image, to store the result |
Implements icl::filter::UnaryOp.
optype icl::filter::UnaryLogicalOp::getOpType | ( | ) | const [inline] |
icl32s icl::filter::UnaryLogicalOp::getValue | ( | ) | const [inline] |
returns the value of the second operand
void icl::filter::UnaryLogicalOp::setOpType | ( | optype | t | ) | [inline] |
void icl::filter::UnaryLogicalOp::setValue | ( | icl32s | value | ) | [inline] |
sets the second operand, with the source is operated with.
value | the value for the operand |
icl32s icl::filter::UnaryLogicalOp::m_dValue [private] |
optype icl::filter::UnaryLogicalOp::m_eOpType [private] |