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

Utility base class for Image Operators. More...

#include <OpROIHandler.h>

List of all members.

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

Detailed Description

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
          

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.


Constructor & Destructor Documentation

virtual icl::filter::OpROIHandler::~OpROIHandler ( ) [inline, virtual]

Destructor.

Filter is a base class for other classes and should be instantiated.


Member Function Documentation

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)


Friends And Related Function Documentation

friend class BinaryOp [friend]
friend class UnaryOp [friend]

Member Data Documentation


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