DiInputPixelTemplate< T1, T2 > Class Template Reference

Template class to convert DICOM pixel stream to intermediate representation. More...

Inheritance diagram for DiInputPixelTemplate< T1, T2 >:

DiInputPixel DiPixelRepresentationTemplate< T2 > List of all members.

Public Member Functions

 DiInputPixelTemplate (DcmPixelData *pixel, const Uint16 alloc, const Uint16 stored, const Uint16 high, const unsigned long start, const unsigned long count)
 constructor
virtual ~DiInputPixelTemplate ()
 destructor
int determineMinMax ()
 determine minimum and maximum pixel value
EP_Representation getRepresentation () const
 get pixel representation
const void * getData () const
 get pointer to input pixel data
virtual void * getDataPtr ()
 get reference to pointer to input pixel data
void removeDataReference ()
 remove reference to (internally handled) pixel data
double getMinValue (const int idx) const
 get minimum pixel value
double getMaxValue (const int idx) const
 get maximum pixel value

Private Member Functions

void convert (DcmPixelData *pixelData, const Uint16 bitsAllocated, const Uint16 bitsStored, const Uint16 highBit)
 convert pixel data from DICOM dataset to input representation
 DiInputPixelTemplate (const DiInputPixelTemplate< T1, T2 > &)
DiInputPixelTemplate< T1,
T2 > & 
operator= (const DiInputPixelTemplate< T1, T2 > &)

Private Attributes

T2 * Data
 pointer to pixel data
T2 MinValue [2]
 minimum pixel value ([0] = global, [1] = selected pixel range)
T2 MaxValue [2]
 maximum pixel value ([0] = global, [1] = selected pixel range)

Detailed Description

template<class T1, class T2>
class DiInputPixelTemplate< T1, T2 >

Template class to convert DICOM pixel stream to intermediate representation.

Definition at line 124 of file diinpxt.h.


Constructor & Destructor Documentation

template<class T1, class T2>
DiInputPixelTemplate< T1, T2 >::DiInputPixelTemplate DcmPixelData pixel,
const Uint16  alloc,
const Uint16  stored,
const Uint16  high,
const unsigned long  start,
const unsigned long  count
[inline]
 

constructor

Parameters:
pixel pointer to DICOM dataset element containing the pixel data
alloc number of bits allocated for each pixel
stored number of bits stored for each pixel
high position of bigh bit within bits allocated
start start position of pixel data to be processed
count number of pixels to be processed

Definition at line 140 of file diinpxt.h.

References DiInputPixel::AbsMaximum, DiInputPixel::AbsMinimum, DiInputPixel::Bits, DicomImageClass::maxval(), DiInputPixelTemplate< T1, T2 >::MaxValue, and DiInputPixelTemplate< T1, T2 >::MinValue.


Member Function Documentation

template<class T1, class T2>
void DiInputPixelTemplate< T1, T2 >::convert DcmPixelData pixelData,
const Uint16  bitsAllocated,
const Uint16  bitsStored,
const Uint16  highBit
[inline, private]
 

convert pixel data from DICOM dataset to input representation

Parameters:
pixelData pointer to DICOM dataset element containing the pixel data
bitsAllocated number of bits allocated for each pixel
bitsStored number of bits stored for each pixel
highBit position of bigh bit within bits allocated

Definition at line 350 of file diinpxt.h.

References DicomImageClass::checkDebugLevel(), and DicomImageClass::DL_Informationals.

template<class T1, class T2>
int DiInputPixelTemplate< T1, T2 >::determineMinMax  )  [inline, virtual]
 

determine minimum and maximum pixel value

Returns:
status, true if successful, false otherwise

Implements DiInputPixel.

Definition at line 178 of file diinpxt.h.

References OFBitmanipTemplate< T >::zeroMem().

template<class T1, class T2>
const void* DiInputPixelTemplate< T1, T2 >::getData  )  const [inline, virtual]
 

get pointer to input pixel data

Returns:
pointer to input pixel data

Implements DiInputPixel.

Definition at line 295 of file diinpxt.h.

template<class T1, class T2>
virtual void* DiInputPixelTemplate< T1, T2 >::getDataPtr  )  [inline, virtual]
 

get reference to pointer to input pixel data

Returns:
reference to pointer to input pixel data

Implements DiInputPixel.

Definition at line 304 of file diinpxt.h.

template<class T1, class T2>
double DiInputPixelTemplate< T1, T2 >::getMaxValue const int  idx  )  const [inline, virtual]
 

get maximum pixel value

Parameters:
idx specifies whether to return the global maximum (0) or the maximum of the selected pixel range (1, see PixelStart/Range)
Returns:
maximum pixel value

Implements DiInputPixel.

Definition at line 335 of file diinpxt.h.

template<class T1, class T2>
double DiInputPixelTemplate< T1, T2 >::getMinValue const int  idx  )  const [inline, virtual]
 

get minimum pixel value

Parameters:
idx specifies whether to return the global minimum (0) or the minimum of the selected pixel range (1, see PixelStart/Range)
Returns:
minimum pixel value

Implements DiInputPixel.

Definition at line 323 of file diinpxt.h.

template<class T1, class T2>
EP_Representation DiInputPixelTemplate< T1, T2 >::getRepresentation  )  const [inline, virtual]
 

get pixel representation

Returns:
pixel representation

Implements DiInputPixel.

Definition at line 286 of file diinpxt.h.

References DiPixelRepresentationTemplate< T >::getRepresentation().


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


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5