Image Component Library (ICL)
|
Class for Arithmetic Functions. More...
#include <UnaryArithmeticalOp.h>
Public Types | |
enum | optype { addOp = 0, subOp = 1, mulOp = 2, divOp = 3, sqrOp = 10, sqrtOp = 11, lnOp = 12, expOp = 13, absOp = 14 } |
this enum specifiy all possible binary arithmetical operations More... | |
Public Member Functions | |
UnaryArithmeticalOp (optype t, icl64f val=0) | |
Constructor. | |
virtual | ~UnaryArithmeticalOp () |
Destructor. | |
virtual void | apply (const core::ImgBase *poSrc, core::ImgBase **ppoDst) |
performes the arithmetical operation, given in the constructor or by the setOpType method. | |
void | setValue (icl64f value) |
sets the second operand, with the source is operated with. | |
icl64f | 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 |
icl64f | m_dValue |
Class for Arithmetic Functions.
(nearly all functions: Img8u, Img16s, Img32f: IPP + Fallback, all other Types: Fallback only!) The functions AddC, SubC, MulC, DivC, AbsDiff, Sqr, Sqrt, Ln, Exp, Abs are implemented for: Img8u IPP+Fallback Img16s IPP+Fallback Img32f IPP+Fallback Img32s Fallback only Img64f Fallback only The user have to take care about overflows. For example 255+1=0 on icl8u
this enum specifiy all possible binary arithmetical operations
icl::filter::UnaryArithmeticalOp::UnaryArithmeticalOp | ( | optype | t, |
icl64f | val = 0 |
||
) | [inline] |
Constructor.
virtual icl::filter::UnaryArithmeticalOp::~UnaryArithmeticalOp | ( | ) | [inline, virtual] |
Destructor.
virtual void icl::filter::UnaryArithmeticalOp::apply | ( | const core::ImgBase * | poSrc, |
core::ImgBase ** | ppoDst | ||
) | [virtual] |
performes the arithmetical operation, given in the constructor or by the setOpType method.
poSrc | first operand (image) |
ppoDst | destination image, to store the result |
Implements icl::filter::UnaryOp.
optype icl::filter::UnaryArithmeticalOp::getOpType | ( | ) | const [inline] |
icl64f icl::filter::UnaryArithmeticalOp::getValue | ( | ) | const [inline] |
returns the value of the second operand
void icl::filter::UnaryArithmeticalOp::setOpType | ( | optype | t | ) | [inline] |
void icl::filter::UnaryArithmeticalOp::setValue | ( | icl64f | value | ) | [inline] |
sets the second operand, with the source is operated with.
value | the value for the operand |