|
OFFIS DCMTK Version 3.6.0
|
Template class to handle YCbCr pixel data. More...
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 | |
Template class to handle YCbCr pixel data.
Definition at line 46 of file diybrpxt.h.
| 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
| docu | pointer to DICOM document |
| pixel | pointer to input pixel representation |
| status | reference to status variable |
| planeSize | number of pixels in a plane |
| bits | number of bits per sample |
| rgb | flag, convert color model to RGB only if true |
Definition at line 61 of file diybrpxt.h.
References DiYBRPixelTemplate< T1, T2 >::convert(), DiPixel::Count, DiInputPixel::getData(), and DiInputPixel::getPixelStart().
| 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
| pixel | pointer to input pixel data |
| planeSize | number of pixels in a plane |
| bits | number of bits per sample |
| rgb | flag, convert color model to RGB only if true |
Definition at line 89 of file diybrpxt.h.
References DiYBRPixelTemplate< T1, T2 >::convertValue(), DiPixel::Count, DiColorPixelTemplate< T2 >::Data, DiColorPixelTemplate< T2 >::Init(), DiPixel::InputCount, DiPixelRepresentationTemplate< T >::isSigned(), DicomImageClass::maxval(), and DiColorPixel::PlanarConfiguration.
Referenced by DiYBRPixelTemplate< T1, T2 >::DiYBRPixelTemplate().