DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions
DiYBRPixelTemplate< T1, T2 > Class Template Reference

Template class to handle YCbCr pixel data. More...

+ Inheritance diagram for DiYBRPixelTemplate< T1, T2 >:

List of all members.

Public Member Functions

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

Private Member Functions

void convert (const T1 *pixel, const unsigned long planeSize, 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 DiYBRPixelTemplate< T1, T2 >

Template class to handle YCbCr pixel data.


Constructor & Destructor Documentation

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

constructor

Parameters:
docupointer to DICOM document
pixelpointer to input pixel representation
statusreference to status variable
planeSizenumber of pixels in a plane
bitsnumber of bits per sample
rgbflag, convert color model to RGB only if true

Member Function Documentation

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

convert input pixel data to intermediate representation

Parameters:
pixelpointer to input pixel data
planeSizenumber of pixels in a plane
bitsnumber of bits per sample
rgbflag, convert color model to RGB only if true

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


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027