DiColorRotateTemplate< T > Class Template Reference

Template class to rotate color images (on pixel data level). More...

Inheritance diagram for DiColorRotateTemplate< T >:

DiColorPixelTemplate< T > DiRotateTemplate< T > DiColorPixel DiPixelRepresentationTemplate< T > DiTransTemplate< T > DiPixel List of all members.

Public Member Functions

 DiColorRotateTemplate (const DiColorPixel *pixel, const Uint16 src_cols, const Uint16 src_rows, const Uint16 dest_cols, const Uint16 dest_rows, const Uint32 frames, const int degree)
 constructor
 ~DiColorRotateTemplate ()
 destructor

Private Member Functions

void rotate (const T *pixel[3], const int degree)
 rotate pixel data

Detailed Description

template<class T>
class DiColorRotateTemplate< T >

Template class to rotate color images (on pixel data level).

by steps of 90 degrees

Definition at line 47 of file dicorot.h.


Constructor & Destructor Documentation

template<class T>
DiColorRotateTemplate< T >::DiColorRotateTemplate ( const DiColorPixel pixel,
const Uint16  src_cols,
const Uint16  src_rows,
const Uint16  dest_cols,
const Uint16  dest_rows,
const Uint32  frames,
const int  degree 
) [inline]

constructor

Parameters:
pixel pointer to intermediate pixel representation
src_cols width of clipping area
src_rows height of clipping area
dest_cols width of destination image (scaled image)
dest_rows height of destination image
frames number of frames
degree angle by which the pixel data should be rotated

Definition at line 64 of file dicorot.h.

References DiPixel::getCount(), DiPixel::getData(), and DiColorRotateTemplate< T >::rotate().


Member Function Documentation

template<class T>
void DiColorRotateTemplate< T >::rotate ( const T *  pixel[3],
const int  degree 
) [inline, private]

rotate pixel data

Parameters:
pixel pointer to pixel data (3 components) to be rotated
degree angle by which the pixel data should be rotated

Definition at line 98 of file dicorot.h.

References DiColorPixelTemplate< T >::Init(), DiRotateTemplate< T >::rotateLeft(), DiRotateTemplate< T >::rotateRight(), and DiRotateTemplate< T >::rotateTopDown().

Referenced by DiColorRotateTemplate< T >::DiColorRotateTemplate().


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


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1