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

Filter class for logical in-place operations. More...

#include <InplaceLogicalOp.h>

Inheritance diagram for icl::filter::InplaceLogicalOp:
icl::filter::InplaceOp

List of all members.

Public Types

enum  optype {
  andOp = 0, orOp = 1, xorOp = 2, notOp = 3,
  binAndOp = 4, binOrOp = 5, binXorOp = 6, binNotOp = 7
}

Public Member Functions

 InplaceLogicalOp (optype t, icl64f value=0)
 Creates a new InplaceLogicalOp instance with given optype and value.
virtual core::ImgBaseapply (core::ImgBase *src)
 applies this operation in-place on given source image
icl64f getValue () const
 returns current value
void setValue (icl64f val)
 set current value
optype getOpType () const
 returns current optype
void setOpType (optype t)
 set current optype

Private Attributes

optype m_eOpType
 optype
icl64f m_dValue
 value

Detailed Description

Filter class for logical in-place operations.

The InplaceLogicalOp class provides functionalities for arbitrary logical in-place operations on images. The operator can be set to implement a certain operation using a given optype value. Logical (non-bit-wise) operations result in images of value 0 or 255.
Operation list can be split into two sections:

Pure Logical operations are available for all types; bit-wise operations make no sense on floating point data, hence these operations are available for integer types only.

Supported operator types (implementation on pixel value P and operator value V in braces)

IPP-Optimization

IPP-Optimization is possible, but not yet implemented.


Member Enumeration Documentation

Enumerator:
andOp 

logical "and"

orOp 

logical "or"

xorOp 

logical "xor"

notOp 

logical "not"

binAndOp 

binary "and" (for integer types only)

binOrOp 

binary "or" (for integer types only)

binXorOp 

binary "xor" (for integer types only)

binNotOp 

binary "not" (for integer types only)


Constructor & Destructor Documentation

Creates a new InplaceLogicalOp instance with given optype and value.


Member Function Documentation

applies this operation in-place on given source image

Implements icl::filter::InplaceOp.

returns current optype

returns current value

set current optype

set current value


Member Data Documentation

value

optype


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