Image Component Library (ICL)
|
Abstract base class for binary image operations. More...
#include <BinaryOp.h>
Public Member Functions | |
BinaryOp () | |
default constructor | |
BinaryOp (const BinaryOp &other) | |
copy constructor | |
BinaryOp & | operator= (const BinaryOp &other) |
assignment operator | |
virtual | ~BinaryOp () |
virtual destructor | |
virtual void | apply (const core::ImgBase *operand1, const core::ImgBase *operand2, core::ImgBase **result)=0 |
pure virtual apply function | |
virtual const core::ImgBase * | apply (const core::ImgBase *operand1, const core::ImgBase *operand2) |
applyfunction without explicit destination image | |
void | operator() (const core::ImgBase *src1, const core::ImgBase *src2, core::ImgBase **dst) |
function operator (alternative for apply(src1,src2,dst) | |
const core::ImgBase * | operator() (const core::ImgBase *src1, const core::ImgBase *src2) |
function operator for the implicit destination apply(a,b) call | |
const core::ImgBase & | operator() (const core::ImgBase &sr1, const core::ImgBase &src2) |
reference based function operator | |
void | setClipToROI (bool bClipToROI) |
sets if the image should be clip to ROI or not | |
void | setCheckOnly (bool bCheckOnly) |
sets if the destination image should be adapted to the source, or if it is only checked if it can be adapted. | |
bool | getClipToROI () const |
returns the ClipToROI status | |
bool | getCheckOnly () const |
returns the CheckOnly status | |
Protected Member Functions | |
bool | prepare (core::ImgBase **ppoDst, core::depth eDepth, const utils::Size &imgSize, core::format eFormat, int nChannels, const utils::Rect &roi, utils::Time timestamp=utils::Time::null) |
virtual bool | prepare (core::ImgBase **ppoDst, const core::ImgBase *poSrc) |
check+adapt destination image to properties of given source image | |
virtual bool | prepare (core::ImgBase **ppoDst, const core::ImgBase *poSrc, core::depth eDepth) |
Static Protected Member Functions | |
static bool | check (const core::ImgBase *operand1, const core::ImgBase *operand2, bool checkDepths=true) |
Private Attributes | |
OpROIHandler | m_oROIHandler |
core::ImgBase * | m_buf |
internal image buffer which is used for the apply function without destination image argument |
Abstract base class for binary image operations.
A list of all binary operators can be found here:
Collection of Binary Operations
default constructor
icl::filter::BinaryOp::BinaryOp | ( | const BinaryOp & | other | ) |
copy constructor
virtual icl::filter::BinaryOp::~BinaryOp | ( | ) | [virtual] |
virtual destructor
virtual void icl::filter::BinaryOp::apply | ( | const core::ImgBase * | operand1, |
const core::ImgBase * | operand2, | ||
core::ImgBase ** | result | ||
) | [pure virtual] |
pure virtual apply function
Implemented in icl::filter::ProximityOp, icl::filter::BinaryCompareOp, icl::filter::BinaryArithmeticalOp, and icl::filter::BinaryLogicalOp.
virtual const core::ImgBase* icl::filter::BinaryOp::apply | ( | const core::ImgBase * | operand1, |
const core::ImgBase * | operand2 | ||
) | [virtual] |
applyfunction without explicit destination image
Usually this function must not be reimplemented, because it's default operation does simply use an internal buffer to call apply(const ImgBase*,const ImgBase*,ImgBase**).
static bool icl::filter::BinaryOp::check | ( | const core::ImgBase * | operand1, |
const core::ImgBase * | operand2, | ||
bool | checkDepths = true |
||
) | [inline, static, protected] |
bool icl::filter::BinaryOp::getCheckOnly | ( | ) | const [inline] |
returns the CheckOnly status
bool icl::filter::BinaryOp::getClipToROI | ( | ) | const [inline] |
returns the ClipToROI status
void icl::filter::BinaryOp::operator() | ( | const core::ImgBase * | src1, |
const core::ImgBase * | src2, | ||
core::ImgBase ** | dst | ||
) | [inline] |
function operator (alternative for apply(src1,src2,dst)
const core::ImgBase* icl::filter::BinaryOp::operator() | ( | const core::ImgBase * | src1, |
const core::ImgBase * | src2 | ||
) | [inline] |
function operator for the implicit destination apply(a,b) call
const core::ImgBase& icl::filter::BinaryOp::operator() | ( | const core::ImgBase & | sr1, |
const core::ImgBase & | src2 | ||
) | [inline] |
reference based function operator
bool icl::filter::BinaryOp::prepare | ( | core::ImgBase ** | ppoDst, |
core::depth | eDepth, | ||
const utils::Size & | imgSize, | ||
core::format | eFormat, | ||
int | nChannels, | ||
const utils::Rect & | roi, | ||
utils::Time | timestamp = utils::Time::null |
||
) | [inline, protected] |
virtual bool icl::filter::BinaryOp::prepare | ( | core::ImgBase ** | ppoDst, |
const core::ImgBase * | poSrc | ||
) | [inline, protected, virtual] |
check+adapt destination image to properties of given source image
virtual bool icl::filter::BinaryOp::prepare | ( | core::ImgBase ** | ppoDst, |
const core::ImgBase * | poSrc, | ||
core::depth | eDepth | ||
) | [inline, protected, virtual] |
check+adapt destination image to properties of given source image but use explicitly given depth
void icl::filter::BinaryOp::setCheckOnly | ( | bool | bCheckOnly | ) | [inline] |
sets if the destination image should be adapted to the source, or if it is only checked if it can be adapted.
bCheckOnly | true = destination image is only checked, false = destination image will be checked and adapted. |
void icl::filter::BinaryOp::setClipToROI | ( | bool | bClipToROI | ) | [inline] |
sets if the image should be clip to ROI or not
bClipToROI | true=yes, false=no |
core::ImgBase* icl::filter::BinaryOp::m_buf [private] |
internal image buffer which is used for the apply function without destination image argument