DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Protected Member Functions | Protected Attributes | List of all members
DiTransTemplate< T > Class Template Reference

Template class building the base for other transformations. More...

+ Inheritance diagram for DiTransTemplate< T >:

Protected Member Functions

 DiTransTemplate (const int planes, const Uint16 src_x, const Uint16 src_y, const Uint16 dest_x, const Uint16 dest_y, const Uint32 frames, const int bits=0)
 constructor More...
 
virtual ~DiTransTemplate ()
 destructor
 
void copyPixel (const T *src[], T *dest[])
 copy pixel data More...
 
void fillPixel (T *dest[], const T value)
 fill pixel data with specified value More...
 
void clearPixel (T *dest[])
 clear pixel data (set values to 0) More...
 

Protected Attributes

int Planes
 number of planes
 
Uint16 Src_X
 width of source image
 
Uint16 Src_Y
 height of source image
 
const Uint16 Dest_X
 width of destination image
 
const Uint16 Dest_Y
 height of destination image
 
const Uint32 Frames
 number of frames
 
const int Bits
 number of bits per plane/pixel
 

Detailed Description

template<class T>
class DiTransTemplate< T >

Template class building the base for other transformations.

(e.g. scaling, flipping)

Constructor & Destructor Documentation

template<class T >
DiTransTemplate< T >::DiTransTemplate ( const int  planes,
const Uint16  src_x,
const Uint16  src_y,
const Uint16  dest_x,
const Uint16  dest_y,
const Uint32  frames,
const int  bits = 0 
)
inlineprotected

constructor

Parameters
planesnumber of planes
src_xwidth of source image
src_yheight of source image
dest_xwidth of destination image (after transformation)
dest_yheight of destination image
framesnumber of frames
bitsnumber of bits per plane/pixel (optional)

Member Function Documentation

template<class T >
void DiTransTemplate< T >::clearPixel ( T *  dest[])
inlineprotected
template<class T >
void DiTransTemplate< T >::copyPixel ( const T *  src[],
T *  dest[] 
)
inlineprotected

copy pixel data

Parameters
srcarray of pointers to source image pixels
destarray of pointers to destination image pixels

References DiTransTemplate< T >::Dest_X, DiTransTemplate< T >::Dest_Y, DiTransTemplate< T >::Frames, and DiTransTemplate< T >::Planes.

Referenced by DiFlipTemplate< T >::flipData(), DiRotateTemplate< T >::rotateData(), and DiScaleTemplate< T >::scaleData().

template<class T >
void DiTransTemplate< T >::fillPixel ( T *  dest[],
const T  value 
)
inlineprotected

fill pixel data with specified value

Parameters
destarray of pointers to destination image pixels
valuevalue to be filled in destination array

References DiTransTemplate< T >::Dest_X, DiTransTemplate< T >::Dest_Y, DiTransTemplate< T >::Frames, and DiTransTemplate< T >::Planes.

Referenced by DiScaleTemplate< T >::scaleData().


The documentation for this class was generated from the following file:


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8