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

Class for logical operations performed on two images. (and, or, xor) More...

#include <BinaryLogicalOp.h>

Inheritance diagram for icl::filter::BinaryLogicalOp:
icl::filter::BinaryOp

List of all members.

Public Types

enum  optype { andOp, orOp, xorOp }
 this enum specifiy all possible binary logical operations More...

Public Member Functions

 BinaryLogicalOp (optype t)
 Constructor.
virtual ~BinaryLogicalOp ()
 Destructor.
virtual void apply (const core::ImgBase *src1, const core::ImgBase *src2, core::ImgBase **dst)
 performes the logical 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 logical operations performed on two images. (and, or, xor)

Logical operations are only possible on integer types like Img8u, Img16s and Img32s


Member Enumeration Documentation

this enum specifiy all possible binary logical operations

Enumerator:
andOp 
orOp 
xorOp 

Constructor & Destructor Documentation

Constructor.

Parameters:
tdefines the operaion that will be performed by apply
virtual icl::filter::BinaryLogicalOp::~BinaryLogicalOp ( ) [inline, virtual]

Destructor.


Member Function Documentation

virtual void icl::filter::BinaryLogicalOp::apply ( const core::ImgBase src1,
const core::ImgBase src2,
core::ImgBase **  dst 
) [virtual]

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

Parameters:
src1first operand (image)
src2second operand (image)
dstdestination 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