DiYBR422PixelTemplate< T1, T2 > Class Template Reference

Template class to handle YCbCr Full 4:2:2 pixel data. More...

Inheritance diagram for DiYBR422PixelTemplate< T1, T2 >:

DiColorPixelTemplate< T2 > DiColorPixel DiPixelRepresentationTemplate< T2 > DiPixel List of all members.

Public Member Functions

 DiYBR422PixelTemplate (const DiDocument *docu, const DiInputPixel *pixel, EI_Status &status, const int bits, const OFBool rgb)
 constructor
virtual ~DiYBR422PixelTemplate ()
 destructor

Private Member Functions

void convert (const T1 *pixel, const int bits, const OFBool rgb)
 convert input pixel data to intermediate representation
void convertValue (T2 &red, T2 &green, T2 &blue, const T2 y, const T2 cb, const T2 cr, const T2 maxvalue)
 convert a single YCbCr value to RGB

Detailed Description

template<class T1, class T2>
class DiYBR422PixelTemplate< T1, T2 >

Template class to handle YCbCr Full 4:2:2 pixel data.

Definition at line 46 of file diyf2pxt.h.


Constructor & Destructor Documentation

template<class T1, class T2>
DiYBR422PixelTemplate< T1, T2 >::DiYBR422PixelTemplate ( const DiDocument docu,
const DiInputPixel pixel,
EI_Status &  status,
const int  bits,
const OFBool  rgb 
) [inline]

constructor

Parameters:
docu pointer to DICOM document
pixel pointer to input pixel representation
status reference to status variable
bits number of bits per sample
rgb flag, convert color model to RGB only if true

Definition at line 60 of file diyf2pxt.h.

References DiYBR422PixelTemplate< T1, T2 >::convert(), DiInputPixel::getData(), and DiInputPixel::getPixelStart().


Member Function Documentation

template<class T1, class T2>
void DiYBR422PixelTemplate< T1, T2 >::convert ( const T1 *  pixel,
const int  bits,
const OFBool  rgb 
) [inline, private]

convert input pixel data to intermediate representation

Parameters:
pixel pointer to input pixel data
bits number of bits per sample
rgb flag, convert color model to RGB only if true

Definition at line 94 of file diyf2pxt.h.

References DiYBR422PixelTemplate< T1, T2 >::convertValue(), DiPixel::Count, DiColorPixelTemplate< T2 >::Data, DiColorPixelTemplate< T2 >::Init(), DiPixel::InputCount, and DicomImageClass::maxval().

Referenced by DiYBR422PixelTemplate< T1, T2 >::DiYBR422PixelTemplate().


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