Image Component Library (ICL)
|
Inplace implementation for arithmetical operations. More...
#include <InplaceArithmeticalOp.h>
Public Types | |
enum | optype { addOp = 0, subOp = 1, mulOp = 2, divOp = 3, sqrOp = 10, sqrtOp = 11, lnOp = 12, expOp = 13, absOp = 14 } |
Optypes specify the certain operation. More... | |
Public Member Functions | |
InplaceArithmeticalOp (optype t, icl64f value=0) | |
Create new instance with given operator type and optional value. | |
virtual core::ImgBase * | apply (core::ImgBase *src) |
applys the operation inplace on an input image | |
icl64f | getValue () const |
returns the current value | |
void | setValue (icl64f val) |
sets the current value | |
optype | getOpType () const |
returns the current operator type | |
void | setOpType (optype t) |
sets the current operator type | |
Private Attributes | |
optype | m_eOpType |
operator type | |
icl64f | m_dValue |
value |
Inplace implementation for arithmetical operations.
Current supported operations: "+","-","*","/","^2","sqrt2,
"ln", "exp" and "abs".
Currently no IPP-Optimization is available
Optypes specify the certain operation.
icl::filter::InplaceArithmeticalOp::InplaceArithmeticalOp | ( | optype | t, |
icl64f | value = 0 |
||
) | [inline] |
Create new instance with given operator type and optional value.
t | operator type |
value | 2nd operand for the operations. Some operation like "ln" or "abs" do not need this operand, so it can be omitted. |
virtual core::ImgBase* icl::filter::InplaceArithmeticalOp::apply | ( | core::ImgBase * | src | ) | [virtual] |
applys the operation inplace on an input image
Implements icl::filter::InplaceOp.
optype icl::filter::InplaceArithmeticalOp::getOpType | ( | ) | const [inline] |
returns the current operator type
icl64f icl::filter::InplaceArithmeticalOp::getValue | ( | ) | const [inline] |
returns the current value
void icl::filter::InplaceArithmeticalOp::setOpType | ( | optype | t | ) | [inline] |
sets the current operator type
void icl::filter::InplaceArithmeticalOp::setValue | ( | icl64f | val | ) | [inline] |
sets the current value
value
operator type