OFFIS DCMTK  Version 3.6.0
Public Member Functions | Private Member Functions
DiHSVPixelTemplate< T1, T2 > Class Template Reference

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

Inheritance diagram for DiHSVPixelTemplate< T1, T2 >:
[legend]
Collaboration diagram for DiHSVPixelTemplate< T1, T2 >:
[legend]

List of all members.

Public Member Functions

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

Private Member Functions

void convert (const T1 *pixel, const unsigned long planeSize, const int bits)
 convert input pixel data to intermediate representation
void convertValue (T2 &red, T2 &green, T2 &blue, const T2 hue, const T2 saturation, const T2 value, const T2 maxvalue)
 convert a single HSV value to RGB
void convert (const T1 *pixel, const unsigned long planeSize, const int bits)
 convert input pixel data to intermediate representation
void convertValue (T2 &red, T2 &green, T2 &blue, const T2 hue, const T2 saturation, const T2 value, const T2 maxvalue)
 convert a single HSV value to RGB

Detailed Description

template<class T1, class T2>
class DiHSVPixelTemplate< T1, T2 >

Template class to handle HSV pixel data.

Definition at line 46 of file dihsvpxt.h.


Constructor & Destructor Documentation

template<class T1 , class T2 >
DiHSVPixelTemplate< T1, T2 >::DiHSVPixelTemplate ( const DiDocument docu,
const DiInputPixel pixel,
EI_Status &  status,
const unsigned long  planeSize,
const int  bits 
) [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

Definition at line 60 of file dihsvpxt.h.

References DiHSVPixelTemplate< T1, T2 >::convert(), DiPixel::Count, DiInputPixel::getData(), and DiInputPixel::getPixelStart().

template<class T1 , class T2 >
DiHSVPixelTemplate< T1, T2 >::DiHSVPixelTemplate ( const DiDocument docu,
const DiInputPixel pixel,
EI_Status &  status,
const unsigned long  planeSize,
const int  bits 
) [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

Definition at line 60 of file dihsvpxt.h.

References DiHSVPixelTemplate< T1, T2 >::convert(), DiPixel::Count, DiInputPixel::getData(), and DiInputPixel::getPixelStart().


Member Function Documentation

template<class T1 , class T2 >
void DiHSVPixelTemplate< T1, T2 >::convert ( const T1 *  pixel,
const unsigned long  planeSize,
const int  bits 
) [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

Definition at line 86 of file dihsvpxt.h.

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

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

template<class T1 , class T2 >
void DiHSVPixelTemplate< T1, T2 >::convert ( const T1 *  pixel,
const unsigned long  planeSize,
const int  bits 
) [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

Definition at line 86 of file dihsvpxt.h.

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


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


Generated on Thu May 24 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.7.6.1