Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxImgFtorGenConv3dK1d Class Template Reference

Instantiation of generic algorithm for generalized convolution operations on 3d images with a 1d kernel. More...

#include <HxImgFtorGenConv3dK1d.h>

Inheritance diagram for HxImgFtorGenConv3dK1d::

HxImgFtorI3Cast< DstImgSigT, SrcImgSigT, KerImgSigT > HxImgFtorI3 HxImgFunctor List of all members.

Public Types

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

typedef SrcImgSigT::DataPtrType SrcDataPtrType
 The data pointer type of the source image. More...

typedef KerImgSigT::DataPtrType KerDataPtrType
 The data pointer type of the kernel image. More...


Public Methods

 HxImgFtorGenConv3dK1d ()
 Constructor. More...

virtual ~HxImgFtorGenConv3dK1d ()
 Destructor. More...


Protected Methods

virtual void doIt (DstDataPtrType dstPtr, SrcDataPtrType srcPtr, KerDataPtrType kerPtr, HxSizes dstSize, HxSizes srcSize, HxSizes kerSize, HxTagList &tags, HxImgFtorDescription *=0)
 Calls convolutionX, convolutionY, or convolutionZ to do the actual work based on the "dimension" tag. More...

void convolutionX (DstDataPtrType dstPtr, SrcDataPtrType srcPtr, KerDataPtrType kerPtr, HxSizes dstSize, HxSizes srcSize, HxSizes kerSize, HxTagList &tags)
void convolutionY (DstDataPtrType dstPtr, SrcDataPtrType srcPtr, KerDataPtrType kerPtr, HxSizes dstSize, HxSizes srcSize, HxSizes kerSize, HxTagList &tags)
void convolutionZ (DstDataPtrType dstPtr, SrcDataPtrType srcPtr, KerDataPtrType kerPtr, HxSizes dstSize, HxSizes srcSize, HxSizes kerSize, HxTagList &tags)

Detailed Description

template<class DstImgSigT, class SrcImgSigT, class KerImgSigT, class PixOpT, class RedOpT, class KernelT>
class HxImgFtorGenConv3dK1d< DstImgSigT, SrcImgSigT, KerImgSigT, PixOpT, RedOpT, KernelT >

Instantiation of generic algorithm for generalized convolution operations on 3d images with a 1d kernel.


Member Typedef Documentation

template<class DstImgSigT, class SrcImgSigT, class KerImgSigT, class PixOpT, class RedOpT, class KernelT>
typedef HxImgFtorGenConvK1dKey HxImgFtorGenConv3dK1d::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorI3Cast.

template<class DstImgSigT, class SrcImgSigT, class KerImgSigT, class PixOpT, class RedOpT, class KernelT>
typedef SrcImgSigT::DataPtrType HxImgFtorGenConv3dK1d::SrcDataPtrType
 

The data pointer type of the source image.

template<class DstImgSigT, class SrcImgSigT, class KerImgSigT, class PixOpT, class RedOpT, class KernelT>
typedef KerImgSigT::DataPtrType HxImgFtorGenConv3dK1d::KerDataPtrType
 

The data pointer type of the kernel image.


Constructor & Destructor Documentation

template<class DstImgSigT, class SrcImgSigT, class KerImgSigT, class PixOpT, class RedOpT, class KernelT>
HxImgFtorGenConv3dK1d< DstImgSigT, SrcImgSigT, KerImgSigT, PixOpT, RedOpT, KernelT >::HxImgFtorGenConv3dK1d   [inline]
 

Constructor.

00032         : HxImgFtorI3Cast<DstImgSigT, SrcImgSigT, KerImgSigT>(
00033             HxImgFtorGenConvK1dKey(
00034                 HxClassName<DstImgSigT>(), HxClassName<SrcImgSigT>(), 
00035                 HxClassName<KerImgSigT>(), 
00036                 HxClassName<PixOpT>(), HxClassName<RedOpT>(),
00037                 HxClassName<KernelT>()))
00038 {
00039 #ifdef CD_TRACE
00040     HxEnvironment::instance()->outputStream()
00041         << "HxImgFtorGenConv3dK1d::HxImgFtorGenConv3dK1d()" << STD_ENDL;
00042 #endif
00043 }

template<class DstImgSigT, class SrcImgSigT, class KerImgSigT, class PixOpT, class RedOpT, class KernelT>
HxImgFtorGenConv3dK1d< DstImgSigT, SrcImgSigT, KerImgSigT, PixOpT, RedOpT, KernelT >::~HxImgFtorGenConv3dK1d   [virtual]
 

Destructor.

00049 {
00050 #ifdef CD_TRACE
00051     HxEnvironment::instance()->outputStream()
00052         << "HxImgFtorGenConv3dK1d::~HxImgFtorGenConv3dK1d()" << STD_ENDL;
00053 #endif
00054 }


Member Function Documentation

template<class DstImgSigT, class SrcImgSigT, class KerImgSigT, class PixOpT, class RedOpT, class KernelT>
void HxImgFtorGenConv3dK1d< DstImgSigT, SrcImgSigT, KerImgSigT, PixOpT, RedOpT, KernelT >::doIt DstDataPtrType    dstPtr,
SrcDataPtrType    srcPtr,
KerDataPtrType    kerPtr,
HxSizes    dstSize,
HxSizes    srcSize,
HxSizes    kerSize,
HxTagList   tags,
HxImgFtorDescription   = 0
[protected, virtual]
 

Calls convolutionX, convolutionY, or convolutionZ to do the actual work based on the "dimension" tag.

00065 {
00066     int dimension = HxGetTag<int>(tags, "dimension");
00067 
00068     switch (dimension) {
00069     case 1  :
00070         convolutionX(dstPtr, srcPtr, kerPtr, dstSize, srcSize, kerSize, tags);
00071         break;
00072     case 2  :
00073         convolutionY(dstPtr, srcPtr, kerPtr, dstSize, srcSize, kerSize, tags);
00074         break;
00075     case 3  :
00076         convolutionZ(dstPtr, srcPtr, kerPtr, dstSize, srcSize, kerSize, tags);
00077         break;
00078     default :
00079         convolutionX(dstPtr, srcPtr, kerPtr, dstSize, srcSize, kerSize, tags);
00080     }
00081 }


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