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

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

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

List of all members.

Public Member Functions

 DiMonoScaleTemplate (const DiMonoPixel *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, const Uint16 pvalue)
 constructor
virtual ~DiMonoScaleTemplate ()
 destructor

Private Member Functions

void scale (const T *pixel, const unsigned int bits, const int interpolate, const Uint16 pvalue)
 scale pixel data

Detailed Description

template<class T>
class DiMonoScaleTemplate< T >

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

Definition at line 48 of file dimosct.h.


Constructor & Destructor Documentation

template<class T >
DiMonoScaleTemplate< T >::DiMonoScaleTemplate ( const DiMonoPixel 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,
const Uint16  pvalue 
) [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
pvaluevalue possibly used for regions outside the image boundaries

Definition at line 71 of file dimosct.h.

References DiMonoPixelTemplate< T >::determineMinMax(), DiMonoPixel::getBits(), DiPixel::getCount(), DiPixel::getData(), and DiMonoScaleTemplate< T >::scale().


Member Function Documentation

template<class T >
void DiMonoScaleTemplate< T >::scale ( const T *  pixel,
const unsigned int  bits,
const int  interpolate,
const Uint16  pvalue 
) [inline, private]

scale pixel data

Parameters:
pixelpointer to pixel data to be scaled
bitsbit depth of pixel data
interpolateuse of interpolation when scaling
pvaluevalue possibly used for regions outside the image boundaries

Definition at line 115 of file dimosct.h.

References DiMonoPixelTemplate< T >::Data, DiPixel::getCount(), DicomImageClass::maxval(), and DiScaleTemplate< T >::scaleData().

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


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


Generated on Sun Dec 4 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.7.4