Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxImgFtorTranspose2d Class Template Reference

Instantiation of generic algorithm for transpose operations on 2D images. More...

#include <HxImgFtorTranspose2d.h>

Inheritance diagram for HxImgFtorTranspose2d::

HxImgFtorI2Cast HxImgFtorI2 HxImgFunctor List of all members.

Public Types

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


Public Methods

 HxImgFtorTranspose2d ()
 Constructor. More...

virtual ~HxImgFtorTranspose2d ()
 Destructor. More...


Protected Methods

virtual void doIt (DstDataPtrType dstPtr, SrcDataPtrType srcPtr, HxSizes dstSize, HxSizes srcSize, HxTagList &tags, HxImgFtorDescription *=0)
 The actual operation. More...


Detailed Description

template<class DstImgSigT, class SrcImgSigT>
class HxImgFtorTranspose2d< DstImgSigT, SrcImgSigT >

Instantiation of generic algorithm for transpose operations on 2D images.


Member Typedef Documentation

template<class DstImgSigT, class SrcImgSigT>
typedef HxImgFtorTranspose2dKey HxImgFtorTranspose2d::KeyType
 

The key type of this class.

Reimplemented from HxImgFtorI2Cast.


Constructor & Destructor Documentation

template<class DstImgSigT, class SrcImgSigT>
HxImgFtorTranspose2d< DstImgSigT, SrcImgSigT >::HxImgFtorTranspose2d   [inline]
 

Constructor.

00018     : HxImgFtorI2Cast<DstImgSigT, SrcImgSigT>(
00019         HxImgFtorTranspose2dKey(
00020             HxClassName<DstImgSigT>(), HxClassName<SrcImgSigT>()))
00021 {
00022 #ifdef CD_TRACE
00023     HxEnvironment::instance()->outputStream()
00024         << "HxImgFtorTranspose2d::HxImgFtorTranspose2d()" << STD_ENDL;
00025 #endif
00026 }

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

Destructor.

00030 {
00031 #ifdef CD_TRACE
00032     HxEnvironment::instance()->outputStream()
00033         << "HxImgFtorTranspose2d::~HxImgFtorTranspose2d()" << STD_ENDL;
00034 #endif
00035 }


Member Function Documentation

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

The actual operation.

Reimplemented from HxImgFtorI2Cast.

00053 {
00054     // write size check!
00055     int y = dstSize.x();
00056     while (--y >= 0)
00057     {
00058         HxTransposeXLine(dstPtr, srcPtr, dstSize.y());
00059         srcPtr.incY();
00060         dstPtr.incX();
00061     }
00062 }


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