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

Class for arithmetic operations performed on two images. More...

#include <BinaryArithmeticalOp.h>

Inheritance diagram for icl::filter::BinaryArithmeticalOp:
icl::filter::BinaryOp

List of all members.

Public Types

enum  optype {
  addOp, subOp, mulOp, divOp,
  absSubOp
}
 this enum specifiy all possible binary arithmetical operations More...

Public Member Functions

 BinaryArithmeticalOp (optype t)
 Constructor.
virtual ~BinaryArithmeticalOp ()
 Destructor.
virtual void apply (const core::ImgBase *poSrc1, const core::ImgBase *poSrc2, core::ImgBase **poDst)
 performes the arithmetical operation, given in the constructor or by the setOpType method.
void setOpType (optype t)
 sets the operaion that will be performed by apply
optype getOpType () const
 returns the operaion that will be performed by apply

Private Attributes

optype m_eOpType

Detailed Description

Class for arithmetic operations performed on two images.

(add, sub, mul, div) Performance notes: The functions are implemented for all 5 ICL datatypes, but only Img8u, Img16s and Img32f are IPP-accelerated!


Member Enumeration Documentation

this enum specifiy all possible binary arithmetical operations

Enumerator:
addOp 
subOp 
mulOp 
divOp 
absSubOp 

Constructor & Destructor Documentation

Constructor.

Parameters:
tdefines the operaion that will be performed by apply

Destructor.


Member Function Documentation

virtual void icl::filter::BinaryArithmeticalOp::apply ( const core::ImgBase poSrc1,
const core::ImgBase poSrc2,
core::ImgBase **  poDst 
) [virtual]

performes the arithmetical operation, given in the constructor or by the setOpType method.

Parameters:
poSrc1first operand (image)
poSrc2second operand (image)
poDstpointer to the destination image, to store the result

Implements icl::filter::BinaryOp.

returns the operaion that will be performed by apply

Returns:
the operaion that will be performed by apply

sets the operaion that will be performed by apply

Parameters:
tdefines the operaion that will be performed by apply

Member Data Documentation


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