Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Attributes
icl::filter::InplaceArithmeticalOp Class Reference

Inplace implementation for arithmetical operations. More...

#include <InplaceArithmeticalOp.h>

Inheritance diagram for icl::filter::InplaceArithmeticalOp:
icl::filter::InplaceOp

List of all members.

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::ImgBaseapply (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

Detailed Description

Inplace implementation for arithmetical operations.

Current supported operations: "+","-","*","/","^2","sqrt2, "ln", "exp" and "abs".
Currently no IPP-Optimization is available


Member Enumeration Documentation

Optypes specify the certain operation.

Enumerator:
addOp 

add a constant value to each pixel

subOp 

substract a constant value from each pixel

mulOp 

multiply each pixel by a constant value

divOp 

divide each pixle by a constant value

sqrOp 

squares each pixel

sqrtOp 

calculates the square root of each pixel

lnOp 

calculates the natural logarithm of each pixel

expOp 

calculates the exponential function for each pixel

absOp 

calculates the absolute value for each pixel


Constructor & Destructor Documentation

Create new instance with given operator type and optional value.

Parameters:
toperator type
value2nd operand for the operations. Some operation like "ln" or "abs" do not need this operand, so it can be omitted.

Member Function Documentation

applys the operation inplace on an input image

Implements icl::filter::InplaceOp.

returns the current operator type

returns the current value

sets the current operator type

sets the current value


Member Data Documentation

value

operator type


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines