![]() |
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. More... | |
| virtual core::ImgBase * | apply (core::ImgBase *src) |
| applys the operation inplace on an input image More... | |
| icl64f | getValue () const |
| returns the current value More... | |
| void | setValue (icl64f val) |
| sets the current value More... | |
| optype | getOpType () const |
| returns the current operator type More... | |
| void | setOpType (optype t) |
| sets the current operator type More... | |
Public Member Functions inherited from icl::filter::InplaceOp | |
| InplaceOp () | |
| Create a new Inplace op (ROI-only flag is set to true) More... | |
| void | setROIOnly (bool roiOnly) |
| setup the operation to work on the input images ROI only or not More... | |
| bool | getROIOnly () const |
| returns whether operator is in "roi-only" mode or not More... | |
Private Attributes | |
| optype | m_eOpType |
| operator type More... | |
| icl64f | m_dValue |
| value More... | |
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.
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 |
applys the operation inplace on an input image
Implements icl::filter::InplaceOp.
|
inline |
returns the current operator type
|
inline |
returns the current value
|
inline |
sets the current operator type
|
inline |
sets the current value
|
private |
value
|
private |
operator type
1.8.15