Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxImgFtorMpo Class Template Reference

Instantiation of generic algorithm for multi pixel operations on images. More...

#include <HxImgFtorMpo.h>

Inheritance diagram for HxImgFtorMpo::

HxImgFtorIMCast HxImgFtorIM HxImgFunctor List of all members.

Public Types

typedef HxImgFtorMpoKey KeyType
 The key type of this class. More...


Public Methods

 HxImgFtorMpo ()
 Constructor. More...

virtual ~HxImgFtorMpo ()
 Destructor. More...


Protected Methods

virtual void doIt (DstDataPtrType dstPtr, SrcDataPtrArray &srcPtrs, HxSizes dstSize, HxSizes srcSize, HxTagList &tags, HxImgFtorDescription *=0)
 Calls HxFuncMultiPixOp to do the actual work. More...


Detailed Description

template<class DstImgSigT, class SrcImgsSigT, class MpoT>
class HxImgFtorMpo< DstImgSigT, SrcImgsSigT, MpoT >

Instantiation of generic algorithm for multi pixel operations on images.


Member Typedef Documentation

template<class DstImgSigT, class SrcImgsSigT, class MpoT>
typedef HxImgFtorMpoKey HxImgFtorMpo::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorIMCast.


Constructor & Destructor Documentation

template<class DstImgSigT, class SrcImgsSigT, class MpoT>
HxImgFtorMpo< DstImgSigT, SrcImgsSigT, MpoT >::HxImgFtorMpo   [inline]
 

Constructor.

00022     : HxImgFtorIMCast<DstImgSigT, SrcImgsSigT>(
00023         HxImgFtorMpoKey(HxClassName<DstImgSigT>(), HxClassName<SrcImgsSigT>(), 
00024             HxClassName<MpoT>()))
00025 {
00026 #ifdef CD_TRACE
00027     HxEnvironment::instance()->outputStream()
00028         << "HxImgFtorMpo::HxImgFtorMpo()" << STD_ENDL;
00029 #endif
00030     static HxRegKey* mpoKey
00031         = HxRegistry::instance().insertKey("/imagefunctortable/mpo");
00032 
00033     HxRegKey* k = mpoKey->insertKey(HxClassName<MpoT>());
00034     k = k->insertKey("resulttype");
00035     k->insertValue(
00036         HxClassName<SrcImgsSigT>(), HxRegData(HxClassName<DstImgSigT>()));
00037 }

template<class DstImgSigT, class SrcImgsSigT, class MpoT>
HxImgFtorMpo< DstImgSigT, SrcImgsSigT, MpoT >::~HxImgFtorMpo   [virtual]
 

Destructor.

00041 {
00042 #ifdef CD_TRACE
00043     HxEnvironment::instance()->outputStream()
00044         << "HxImgFtorMpo::~HxImgFtorMpo()" << STD_ENDL;
00045 #endif
00046 }


Member Function Documentation

template<class DstImgSigT, class SrcImgsSigT, class MpoT>
void HxImgFtorMpo< DstImgSigT, SrcImgsSigT, MpoT >::doIt DstDataPtrType    dstPtr,
SrcDataPtrArray   srcPtrs,
HxSizes    dstSize,
HxSizes    srcSize,
HxTagList   tags,
HxImgFtorDescription   description = 0
[protected, virtual]
 

Calls HxFuncMultiPixOp to do the actual work.

Reimplemented from HxImgFtorIMCast.

00053 {
00054     HxAddTag(tags, "sourceCnt", srcPtrs.size());
00055     MpoT mpo(tags);
00056 
00057     int nPix = dstSize.x() * dstSize.y() * dstSize.z();
00058     HxFuncMultiPixOp(
00059         dstPtr, srcPtrs, nPix, mpo);
00060 }


The documentation for this class was generated from the following files:
Generated on Tue Jan 8 13:59:30 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001