Image Component Library (ICL)
|
Utility base class for Image Operators. More...
#include <OpROIHandler.h>
Public Member Functions | |
virtual | ~OpROIHandler () |
Destructor. | |
Private Member Functions | |
void | setClipToROI (bool bClipToROI) |
change adaption of destination image (see class description) | |
void | setCheckOnly (bool bCheckOnly) |
bool | getClipToROI () const |
bool | getCheckOnly () const |
OpROIHandler () | |
Filter is a base class for other classes and should be instantiated. | |
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) |
const utils::Size | chooseSize (const core::ImgBase *poSrc) |
return to-be-used image size depending on bClipToROI | |
const utils::Rect | chooseROI (const core::ImgBase *poSrc) |
return to-be-used ROI depending on bClipToROI | |
Private Attributes | |
bool | m_bClipToROI |
bool | m_bCheckOnly |
Friends | |
class | UnaryOp |
class | BinaryOp |
Utility base class for Image Operators.
The OpROIHandler class builds a utility base class for ICL unary and binary operator classes. Each Operator is performed on the ROI of the source image(s) only. The destination image is always adapted in its parameters to the necessary values. We distinguish the following modes:
source image destination-image xxxxxxxxx xxxxxxxxx xxxx....x xxxx....x xxxx....x --> xxxx....x xxxx....x xxxx....x
source image destination-image xxxxxxxxx xxxx....x .... xxxx....x --> .... xxxx....x ....
To this end the Filter class provides variables m_bCheck and m_bClipToROI accessible by setter and getter functions as well as several version of the prepare() methods which checks and adapts the destination image if neccessary.
virtual icl::filter::OpROIHandler::~OpROIHandler | ( | ) | [inline, virtual] |
Destructor.
icl::filter::OpROIHandler::OpROIHandler | ( | ) | [inline, private] |
Filter is a base class for other classes and should be instantiated.
const utils::Rect icl::filter::OpROIHandler::chooseROI | ( | const core::ImgBase * | poSrc | ) | [inline, private] |
return to-be-used ROI depending on bClipToROI
const utils::Size icl::filter::OpROIHandler::chooseSize | ( | const core::ImgBase * | poSrc | ) | [inline, private] |
return to-be-used image size depending on bClipToROI
bool icl::filter::OpROIHandler::getCheckOnly | ( | ) | const [inline, private] |
bool icl::filter::OpROIHandler::getClipToROI | ( | ) | const [inline, private] |
bool icl::filter::OpROIHandler::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 |
||
) | [private] |
check+adapt destination images parameters against given values bCheckOnly mode ignores the given imgSize
virtual bool icl::filter::OpROIHandler::prepare | ( | core::ImgBase ** | ppoDst, |
const core::ImgBase * | poSrc | ||
) | [inline, private, virtual] |
check+adapt destination image to properties of given source image
virtual bool icl::filter::OpROIHandler::prepare | ( | core::ImgBase ** | ppoDst, |
const core::ImgBase * | poSrc, | ||
core::depth | eDepth | ||
) | [inline, private, virtual] |
check+adapt destination image to properties of given source image but use explicitly given depth
void icl::filter::OpROIHandler::setCheckOnly | ( | bool | bCheckOnly | ) | [inline, private] |
void icl::filter::OpROIHandler::setClipToROI | ( | bool | bClipToROI | ) | [inline, private] |
change adaption of destination image (see class description)
friend class BinaryOp [friend] |
friend class UnaryOp [friend] |
bool icl::filter::OpROIHandler::m_bCheckOnly [private] |
bool icl::filter::OpROIHandler::m_bClipToROI [private] |