Image Component Library (ICL)
|
Filter class for logical in-place operations. More...
#include <InplaceLogicalOp.h>
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::ImgBase * | apply (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 |
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 is possible, but not yet implemented.
icl::filter::InplaceLogicalOp::InplaceLogicalOp | ( | optype | t, |
icl64f | value = 0 |
||
) | [inline] |
Creates a new InplaceLogicalOp instance with given optype and value.
virtual core::ImgBase* icl::filter::InplaceLogicalOp::apply | ( | core::ImgBase * | src | ) | [virtual] |
applies this operation in-place on given source image
Implements icl::filter::InplaceOp.
optype icl::filter::InplaceLogicalOp::getOpType | ( | ) | const [inline] |
returns current optype
icl64f icl::filter::InplaceLogicalOp::getValue | ( | ) | const [inline] |
returns current value
void icl::filter::InplaceLogicalOp::setOpType | ( | optype | t | ) | [inline] |
set current optype
void icl::filter::InplaceLogicalOp::setValue | ( | icl64f | val | ) | [inline] |
set current value
value
optype