Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxImgFtorUpo Class Template Reference

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

#include <HxImgFtorUpo.h>

Inheritance diagram for HxImgFtorUpo::

HxImgFtorI2Cast HxImgFtorI2 HxImgFunctor List of all members.

Public Types

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


Public Methods

 HxImgFtorUpo ()
 Constructor. More...

virtual ~HxImgFtorUpo ()
 Destructor. More...


Protected Methods

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


Detailed Description

template<class DstImgSigT, class SrcImgSigT, class UpoT>
class HxImgFtorUpo< DstImgSigT, SrcImgSigT, UpoT >

Instantiation of generic algorithm for unary pixel operations on images.


Member Typedef Documentation

template<class DstImgSigT, class SrcImgSigT, class UpoT>
typedef HxImgFtorUpoKey HxImgFtorUpo::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorI2Cast.


Constructor & Destructor Documentation

template<class DstImgSigT, class SrcImgSigT, class UpoT>
HxImgFtorUpo< DstImgSigT, SrcImgSigT, UpoT >::HxImgFtorUpo   [inline]
 

Constructor.

00023     : HxImgFtorI2Cast<DstImgSigT, SrcImgSigT>(
00024         HxImgFtorUpoKey(HxClassName<DstImgSigT>(), HxClassName<SrcImgSigT>(), 
00025             HxClassName<UpoT>()))
00026 {
00027 #ifdef CD_TRACE
00028     HxEnvironment::instance()->outputStream()
00029         << "HxImgFtorUpo::HxImgFtorUpo()" << STD_ENDL;
00030 #endif
00031     static HxRegKey* upoKey
00032         = HxRegistry::instance().insertKey("/imagefunctortable/upo");
00033 
00034     HxRegKey* k = upoKey->insertKey(HxClassName<UpoT>());
00035     k = k->insertKey("resulttype");
00036     k->insertValue(
00037         HxClassName<SrcImgSigT>(), HxRegData(HxClassName<DstImgSigT>()));
00038 }

template<class DstImgSigT, class SrcImgSigT, class UpoT>
HxImgFtorUpo< DstImgSigT, SrcImgSigT, UpoT >::~HxImgFtorUpo   [virtual]
 

Destructor.

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


Member Function Documentation

template<class DstImgSigT, class SrcImgSigT, class UpoT>
void HxImgFtorUpo< DstImgSigT, SrcImgSigT, UpoT >::doIt DstDataPtrType    dstPtr,
SrcDataPtrType    srcPtr,
HxSizes    dstSize,
HxSizes    srcSize,
HxTagList   tags,
HxImgFtorDescription   description = 0
[protected, virtual]
 

Calls HxFuncUnaryPixOp to do the actual work.

Reimplemented from HxImgFtorI2Cast.

00054 {
00055     UpoT upo(tags);
00056 
00057     int nPix = dstSize.x() * dstSize.y() * dstSize.z();
00058     HxFuncUnaryPixOp(
00059         dstPtr, srcPtr, nPix, upo);
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