Image Component Library (ICL)
|
Utility base class for Image Operators. More...
#include <OpROIHandler.h>
Public Member Functions | |
virtual | ~OpROIHandler () |
Destructor. More... | |
Private Member Functions | |
void | setClipToROI (bool bClipToROI) |
change adaption of destination image (see class description) More... | |
void | setCheckOnly (bool bCheckOnly) |
bool | getClipToROI () const |
bool | getCheckOnly () const |
OpROIHandler () | |
Filter is a base class for other classes and should be instantiated. More... | |
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 More... | |
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 More... | |
const utils::Rect | chooseROI (const core::ImgBase *poSrc) |
return to-be-used ROI depending on bClipToROI More... | |
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:
Adapt the destination image in its size and ROI to the source image. Hence the destination will have the same size and ROI as the source image. Nevertheless the operator is applied on the ROI only, leaving the previous content of the destination image unchanged in this border region. So this mode requires subsequent handling of the border.(bClipToROI = false)
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.
|
inlinevirtual |
Destructor.
|
inlineprivate |
Filter is a base class for other classes and should be instantiated.
|
inlineprivate |
return to-be-used ROI depending on bClipToROI
|
inlineprivate |
return to-be-used image size depending on bClipToROI
|
inlineprivate |
|
inlineprivate |
|
private |
check+adapt destination images parameters against given values bCheckOnly mode ignores the given imgSize
|
inlineprivatevirtual |
check+adapt destination image to properties of given source image
|
inlineprivatevirtual |
check+adapt destination image to properties of given source image but use explicitly given depth
|
inlineprivate |
|
inlineprivate |
change adaption of destination image (see class description)
|
friend |
|
friend |
|
private |
|
private |