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

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

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

List of all members.

Public Member Functions

 DiColorScaleTemplate (const DiColorPixel *pixel, const Uint16 columns, const Uint16 rows, const signed long left_pos, const signed long top_pos, const Uint16 src_cols, const Uint16 src_rows, const Uint16 dest_cols, const Uint16 dest_rows, const Uint32 frames, const int bits, const int interpolate)
 constructor
virtual ~DiColorScaleTemplate ()
 destructor
 DiColorScaleTemplate (const DiColorPixel *pixel, const Uint16 columns, const Uint16 rows, const signed long left_pos, const signed long top_pos, const Uint16 src_cols, const Uint16 src_rows, const Uint16 dest_cols, const Uint16 dest_rows, const Uint32 frames, const int bits, const int interpolate)
 constructor
virtual ~DiColorScaleTemplate ()
 destructor

Private Member Functions

void scale (const T *pixel[3], const int interpolate)
 scale pixel data
void scale (const T *pixel[3], const int interpolate)
 scale pixel data

Detailed Description

template<class T>
class DiColorScaleTemplate< T >

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

Definition at line 46 of file dicosct.h.


Constructor & Destructor Documentation

template<class T >
DiColorScaleTemplate< T >::DiColorScaleTemplate ( const DiColorPixel pixel,
const Uint16  columns,
const Uint16  rows,
const signed long  left_pos,
const signed long  top_pos,
const Uint16  src_cols,
const Uint16  src_rows,
const Uint16  dest_cols,
const Uint16  dest_rows,
const Uint32  frames,
const int  bits,
const int  interpolate 
) [inline]

constructor

Parameters:
pixelpointer to intermediate pixel representation
columnswidth of source image
rowsheight of source image
left_posleft coordinate of clipping area
top_postop coordinate of clipping area
src_colswidth of clipping area
src_rowsheight of clipping area
dest_colswidth of destination image (scaled image)
dest_rowsheight of destination image
framesnumber of frames
bitsnumber of bits per plane/pixel
interpolateuse of interpolation when scaling

Definition at line 68 of file dicosct.h.

References DiPixel::getCount(), DiPixel::getData(), and DiColorScaleTemplate< T >::scale().

template<class T >
DiColorScaleTemplate< T >::DiColorScaleTemplate ( const DiColorPixel pixel,
const Uint16  columns,
const Uint16  rows,
const signed long  left_pos,
const signed long  top_pos,
const Uint16  src_cols,
const Uint16  src_rows,
const Uint16  dest_cols,
const Uint16  dest_rows,
const Uint32  frames,
const int  bits,
const int  interpolate 
) [inline]

constructor

Parameters:
pixelpointer to intermediate pixel representation
columnswidth of source image
rowsheight of source image
left_posleft coordinate of clipping area
top_postop coordinate of clipping area
src_colswidth of clipping area
src_rowsheight of clipping area
dest_colswidth of destination image (scaled image)
dest_rowsheight of destination image
framesnumber of frames
bitsnumber of bits per plane/pixel
interpolateuse of interpolation when scaling

Definition at line 68 of file dicosct.h.

References DiPixel::getCount(), DiPixel::getData(), and DiColorScaleTemplate< T >::scale().


Member Function Documentation

template<class T >
void DiColorScaleTemplate< T >::scale ( const T *  pixel[3],
const int  interpolate 
) [inline, private]

scale pixel data

Parameters:
pixelpointer to pixel data (3 components9 to be scaled
interpolateuse of interpolation when scaling

Definition at line 107 of file dicosct.h.

References DiColorPixelTemplate< T >::Data, DiColorPixelTemplate< T >::Init(), and DiScaleTemplate< T >::scaleData().

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

template<class T >
void DiColorScaleTemplate< T >::scale ( const T *  pixel[3],
const int  interpolate 
) [inline, private]

scale pixel data

Parameters:
pixelpointer to pixel data (3 components9 to be scaled
interpolateuse of interpolation when scaling

Definition at line 107 of file dicosct.h.

References DiColorPixelTemplate< T >::Data, DiColorPixelTemplate< T >::Init(), and DiScaleTemplate< T >::scaleData().


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