Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxImgFtorMNpo Class Template Reference

Instantiation of generic algorithm for M output, N input pixel operations on images. More...

#include <HxImgFtorMNpo.h>

Inheritance diagram for HxImgFtorMNpo::

HxImgFtorIMNCast HxImgFtorIMN HxImgFunctor List of all members.

Public Types

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


Public Methods

 HxImgFtorMNpo ()
 Constructor. More...

virtual bool probeOp (HxTagList &tags) const
 Probe Operation. More...

virtual ~HxImgFtorMNpo ()
 Destructor. More...


Protected Methods

virtual void doIt (DstDataPtrArray &dstPtrs, SrcDataPtrArray &srcPtrs, HxSizes dstSize, HxSizes srcSize, HxTagList &tags, HxImgFtorDescription *description=0)
 Calls HxFuncMNpoDispatch to do the actual work. More...


Detailed Description

template<class DstImgsSigT, class SrcImgsSigT, class MNpoT>
class HxImgFtorMNpo< DstImgsSigT, SrcImgsSigT, MNpoT >

Instantiation of generic algorithm for M output, N input pixel operations on images.

Template parameters:


Member Typedef Documentation

template<class DstImgsSigT, class SrcImgsSigT, class MNpoT>
typedef HxImgFtorMNpoKey HxImgFtorMNpo::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorIMNCast.


Constructor & Destructor Documentation

template<class DstImgsSigT, class SrcImgsSigT, class MNpoT>
HxImgFtorMNpo< DstImgsSigT, SrcImgsSigT, MNpoT >::HxImgFtorMNpo  
 

Constructor.

00021     : HxImgFtorIMNCast<DstImgsSigT, SrcImgsSigT>(
00022         HxImgFtorMNpoKey(HxClassName<DstImgsSigT>(), HxClassName<SrcImgsSigT>(), 
00023             HxClassName<MNpoT>()))
00024 {
00025 #ifdef CD_TRACE
00026     HxEnvironment::instance()->outputStream()
00027         << "HxImgFtorMNpo::HxImgFtorMNpo()" << STD_ENDL;
00028 #endif
00029     HxImgFtorRuleBase::instance().setResultType(
00030         HxClassName<DstImgsSigT>(), "mnpo",
00031         HxClassName<SrcImgsSigT>(), HxClassName<MNpoT>());
00032 }

template<class DstImgsSigT, class SrcImgsSigT, class MNpoT>
HxImgFtorMNpo< DstImgsSigT, SrcImgsSigT, MNpoT >::~HxImgFtorMNpo   [virtual]
 

Destructor.

00036 {
00037 #ifdef CD_TRACE
00038     HxEnvironment::instance()->outputStream()
00039         << "HxImgFtorMNpo::~HxImgFtorMNpo()" << STD_ENDL;
00040 #endif
00041 }


Member Function Documentation

template<class DstImgsSigT, class SrcImgsSigT, class MNpoT>
bool HxImgFtorMNpo< DstImgsSigT, SrcImgsSigT, MNpoT >::probeOp HxTagList   tags const [virtual]
 

Probe Operation.

Reimplemented from HxImgFunctor.

00046 {
00047     MNpoT mpo(tags);
00048 
00049     return HxGetTag(tags, "preOpIsOk", true);
00050 }

template<class DstImgsSigT, class SrcImgsSigT, class MNpoT>
void HxImgFtorMNpo< DstImgsSigT, SrcImgsSigT, MNpoT >::doIt DstDataPtrArray   dstPtrs,
SrcDataPtrArray   srcPtrs,
HxSizes    dstSize,
HxSizes    srcSize,
HxTagList   tags,
HxImgFtorDescription   description = 0
[protected, virtual]
 

Calls HxFuncMNpoDispatch to do the actual work.

Reimplemented from HxImgFtorIMNCast.

00058 {
00059     HxAddTag(tags, "sourceCnt", srcPtrs.size());
00060     MNpoT mpo(tags);
00061 
00062     if (description) {
00063         HxString v(typename MNpoT::TransVarianceCategory().toString());
00064         description->setVariation(v);
00065     }
00066 
00067     HxFuncMNpoDispatch(dstPtrs, srcPtrs, dstSize, mpo);
00068 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 3 14:19:00 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001