OFFIS DCMTK  Version 3.6.0
Public Member Functions | Protected Member Functions | Private Member Functions
DiFlipTemplate< T > Class Template Reference

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

Inheritance diagram for DiFlipTemplate< T >:
[legend]
Collaboration diagram for DiFlipTemplate< T >:
[legend]

List of all members.

Public Member Functions

 DiFlipTemplate (DiPixel *pixel, const Uint16 columns, const Uint16 rows, const Uint32 frames, const int horz, const int vert)
 constructor.
 DiFlipTemplate (const int planes, const Uint16 columns, const Uint16 rows, const Uint32 frames)
 constructor.
virtual ~DiFlipTemplate ()
 destructor
void flipData (const T *src[], T *dest[], const int horz, const int vert)
 choose algorithm depending on flipping mode
 DiFlipTemplate (DiPixel *pixel, const Uint16 columns, const Uint16 rows, const Uint32 frames, const int horz, const int vert)
 constructor.
 DiFlipTemplate (const int planes, const Uint16 columns, const Uint16 rows, const Uint32 frames)
 constructor.
virtual ~DiFlipTemplate ()
 destructor
void flipData (const T *src[], T *dest[], const int horz, const int vert)
 choose algorithm depending on flipping mode

Protected Member Functions

void flipHorz (const T *src[], T *dest[])
 flip source image horizontally and store result in destination image
void flipVert (const T *src[], T *dest[])
 flip source image vertically and store result in destination image
void flipHorzVert (const T *src[], T *dest[])
 flip source image horizontally and vertically and store result in destination image
void flipHorz (const T *src[], T *dest[])
 flip source image horizontally and store result in destination image
void flipVert (const T *src[], T *dest[])
 flip source image vertically and store result in destination image
void flipHorzVert (const T *src[], T *dest[])
 flip source image horizontally and vertically and store result in destination image

Private Member Functions

void flipHorz (T *data[])
 flip image horizontally and store result in the same storage area
void flipVert (T *data[])
 flip image vertically and store result in the same storage area
void flipHorzVert (T *data[])
 flip image horizontally and vertically and store result in the same storage area
void flipHorz (T *data[])
 flip image horizontally and store result in the same storage area
void flipVert (T *data[])
 flip image vertically and store result in the same storage area
void flipHorzVert (T *data[])
 flip image horizontally and vertically and store result in the same storage area

Detailed Description

template<class T>
class DiFlipTemplate< T >

Template class to flip images (on pixel data level).

horizontally and vertically

Definition at line 47 of file diflipt.h.


Constructor & Destructor Documentation

template<class T >
DiFlipTemplate< T >::DiFlipTemplate ( DiPixel pixel,
const Uint16  columns,
const Uint16  rows,
const Uint32  frames,
const int  horz,
const int  vert 
) [inline]

constructor.

This method is used to flip an image and store the result in the same storage area.

Parameters:
pixelpointer to object where the pixel data are stored
columnswidth of the image
rowsheight of the image
framesnumber of frames
horzflags indicating whether to flip horizontally or not
vertflags indicating whether to flip vertically or not

Definition at line 63 of file diflipt.h.

References DiFlipTemplate< T >::flipHorz(), DiFlipTemplate< T >::flipHorzVert(), DiFlipTemplate< T >::flipVert(), DiPixel::getCount(), DiPixel::getDataArrayPtr(), DiPixel::getPlanes(), and DiTransTemplate< T >::Planes.

template<class T >
DiFlipTemplate< T >::DiFlipTemplate ( const int  planes,
const Uint16  columns,
const Uint16  rows,
const Uint32  frames 
) [inline]

constructor.

This method is used to perform only the preparation and to start flipping later with method 'flipData()'

Parameters:
planesnumber of planes (1 or 3)
columnswidth of the image
rowsheight of the image
framesnumber of frames

Definition at line 97 of file diflipt.h.

template<class T >
DiFlipTemplate< T >::DiFlipTemplate ( DiPixel pixel,
const Uint16  columns,
const Uint16  rows,
const Uint32  frames,
const int  horz,
const int  vert 
) [inline]

constructor.

This method is used to flip an image and store the result in the same storage area.

Parameters:
pixelpointer to object where the pixel data are stored
columnswidth of the image
rowsheight of the image
framesnumber of frames
horzflags indicating whether to flip horizontally or not
vertflags indicating whether to flip vertically or not

Definition at line 63 of file diflipt.h.

References DiFlipTemplate< T >::flipHorz(), DiFlipTemplate< T >::flipHorzVert(), DiFlipTemplate< T >::flipVert(), DiPixel::getCount(), DiPixel::getDataArrayPtr(), DiPixel::getPlanes(), and DiTransTemplate< T >::Planes.

template<class T >
DiFlipTemplate< T >::DiFlipTemplate ( const int  planes,
const Uint16  columns,
const Uint16  rows,
const Uint32  frames 
) [inline]

constructor.

This method is used to perform only the preparation and to start flipping later with method 'flipData()'

Parameters:
planesnumber of planes (1 or 3)
columnswidth of the image
rowsheight of the image
framesnumber of frames

Definition at line 97 of file diflipt.h.


Member Function Documentation

template<class T >
void DiFlipTemplate< T >::flipData ( const T *  src[],
T *  dest[],
const int  horz,
const int  vert 
) [inline]

choose algorithm depending on flipping mode

Parameters:
srcarray of pointers to source image pixels
destarray of pointers to destination image pixels
horzflags indicating whether to flip horizontally or not
vertflags indicating whether to flip vertically or not

Definition at line 118 of file diflipt.h.

References DiTransTemplate< T >::copyPixel(), DiFlipTemplate< T >::flipHorz(), DiFlipTemplate< T >::flipHorzVert(), and DiFlipTemplate< T >::flipVert().

template<class T >
void DiFlipTemplate< T >::flipData ( const T *  src[],
T *  dest[],
const int  horz,
const int  vert 
) [inline]

choose algorithm depending on flipping mode

Parameters:
srcarray of pointers to source image pixels
destarray of pointers to destination image pixels
horzflags indicating whether to flip horizontally or not
vertflags indicating whether to flip vertically or not

Definition at line 118 of file diflipt.h.

References DiTransTemplate< T >::copyPixel(), DiFlipTemplate< T >::flipHorz(), DiFlipTemplate< T >::flipHorzVert(), and DiFlipTemplate< T >::flipVert().

template<class T >
void DiFlipTemplate< T >::flipHorz ( const T *  src[],
T *  dest[] 
) [inline, protected]

flip source image horizontally and store result in destination image

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

Definition at line 144 of file diflipt.h.

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

Referenced by DiFlipTemplate< T >::DiFlipTemplate(), DiColorFlipTemplate< T >::flip(), DiMonoFlipTemplate< T >::flip(), and DiFlipTemplate< T >::flipData().

template<class T >
void DiFlipTemplate< T >::flipHorz ( const T *  src[],
T *  dest[] 
) [inline, protected]

flip source image horizontally and store result in destination image

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

Definition at line 144 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipHorz ( T *  data[]) [inline, private]

flip image horizontally and store result in the same storage area

Parameters:
dataarray of pointers to source/destination image pixels

Definition at line 243 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipHorz ( T *  data[]) [inline, private]

flip image horizontally and store result in the same storage area

Parameters:
dataarray of pointers to source/destination image pixels

Definition at line 243 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipHorzVert ( const T *  src[],
T *  dest[] 
) [inline, protected]

flip source image horizontally and vertically and store result in destination image

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

Definition at line 213 of file diflipt.h.

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

Referenced by DiFlipTemplate< T >::DiFlipTemplate(), DiColorFlipTemplate< T >::flip(), DiMonoFlipTemplate< T >::flip(), and DiFlipTemplate< T >::flipData().

template<class T >
void DiFlipTemplate< T >::flipHorzVert ( const T *  src[],
T *  dest[] 
) [inline, protected]

flip source image horizontally and vertically and store result in destination image

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

Definition at line 213 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipHorzVert ( T *  data[]) [inline, private]

flip image horizontally and vertically and store result in the same storage area

Parameters:
dataarray of pointers to source/destination image pixels

Definition at line 313 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipHorzVert ( T *  data[]) [inline, private]

flip image horizontally and vertically and store result in the same storage area

Parameters:
dataarray of pointers to source/destination image pixels

Definition at line 313 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipVert ( const T *  src[],
T *  dest[] 
) [inline, protected]

flip source image vertically and store result in destination image

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

Definition at line 177 of file diflipt.h.

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

Referenced by DiFlipTemplate< T >::DiFlipTemplate(), DiColorFlipTemplate< T >::flip(), DiMonoFlipTemplate< T >::flip(), and DiFlipTemplate< T >::flipData().

template<class T >
void DiFlipTemplate< T >::flipVert ( const T *  src[],
T *  dest[] 
) [inline, protected]

flip source image vertically and store result in destination image

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

Definition at line 177 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipVert ( T *  data[]) [inline, private]

flip image vertically and store result in the same storage area

Parameters:
dataarray of pointers to source/destination image pixels

Definition at line 276 of file diflipt.h.

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

template<class T >
void DiFlipTemplate< T >::flipVert ( T *  data[]) [inline, private]

flip image vertically and store result in the same storage area

Parameters:
dataarray of pointers to source/destination image pixels

Definition at line 276 of file diflipt.h.

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


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


Generated on Thu May 24 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.7.6.1