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

Class for bitwise logical operations on pixel values. More...

#include <UnaryLogicalOp.h>

Inheritance diagram for icl::filter::UnaryLogicalOp:
icl::filter::UnaryOp icl::utils::Configurable

List of all members.

Public Types

enum  optype { andOp = 0, orOp = 1, xorOp = 2, notOp = 3 }
 this enum specifiy all possible unary logical operations More...

Public Member Functions

 UnaryLogicalOp (optype t, icl32s val=0)
 Constructor.
virtual ~UnaryLogicalOp ()
 Destructor.
virtual void apply (const core::ImgBase *poSrc, core::ImgBase **ppoDst)
 performes the logical operation, given in the constructor or by the setOpType method.
void setValue (icl32s value)
 sets the second operand, with the source is operated with.
icl32s getValue () const
 returns the value of the second operand
void setOpType (optype t)
 changes the operator type
optype getOpType () const
 returns the operator type

Private Attributes

optype m_eOpType
icl32s m_dValue

Detailed Description

Class for bitwise logical operations on pixel values.

(all functions: Img8u, Img32s: IPP + Fallback, Img16s: Fallback only!, No support for other Types) Supported operations include And, Or, Xor, Not. Clearly all logical operations are only supported on integer typed images, i.e. icl8u.


Member Enumeration Documentation

this enum specifiy all possible unary logical operations

Enumerator:
andOp 

add a constant value to each pixel

orOp 

substract a constant value from each pixel

xorOp 

multiply each pixel by a constant value

notOp 

divide each pixle through a constant value


Constructor & Destructor Documentation

Constructor.

virtual icl::filter::UnaryLogicalOp::~UnaryLogicalOp ( ) [inline, virtual]

Destructor.


Member Function Documentation

virtual void icl::filter::UnaryLogicalOp::apply ( const core::ImgBase poSrc,
core::ImgBase **  ppoDst 
) [virtual]

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

Parameters:
poSrcfirst operand (image)
ppoDstpointer to the destination image, to store the result

Implements icl::filter::UnaryOp.

returns the operator type

See also:
optype
Returns:
operator type

returns the value of the second operand

Returns:
the value of the second operand

changes the operator type

See also:
optype
Parameters:
toperator type

sets the second operand, with the source is operated with.

Parameters:
valuethe value for the operand

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