|
DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
Abstract base class to handle pixel data. More...
Inheritance diagram for DiPixel:Public Member Functions | |
| DiPixel (const unsigned long count, const unsigned long inputCount=0) | |
| constructor | |
| virtual | ~DiPixel () |
| destructor | |
| virtual EP_Representation | getRepresentation () const =0 |
| get integer representation (abstract) | |
| virtual int | getPlanes () const =0 |
| get number of planes (abstract). | |
| virtual const void * | getData () const =0 |
| get pointer to pixel data (abstract). | |
| virtual void * | getDataPtr ()=0 |
| get pointer to pixel data (abstract). | |
| virtual void * | getDataArrayPtr ()=0 |
| get pointer to array of pixel data (abstract). | |
| unsigned long | getCount () const |
| get number of pixels | |
| unsigned long | getInputCount () const |
| get number of pixels stored in the 'PixelData' element | |
Protected Attributes | |
| unsigned long | Count |
| number of pixels | |
| unsigned long | InputCount |
| number of pixels in the input buffer | |
Abstract base class to handle pixel data.
| DiPixel::DiPixel | ( | const unsigned long | count, |
| const unsigned long | inputCount = 0 |
||
| ) | [inline] |
constructor
| count | number of pixels stored in the buffer |
| inputCount | number of pixels read from 'PixelData' attribute |
| unsigned long DiPixel::getCount | ( | ) | const [inline] |
get number of pixels
| virtual const void* DiPixel::getData | ( | ) | const [pure virtual] |
get pointer to pixel data (abstract).
NB: See implemented method in derived class for details.
Implemented in DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, DiColorPixelTemplate< T3 >, DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.
| virtual void* DiPixel::getDataArrayPtr | ( | ) | [pure virtual] |
get pointer to array of pixel data (abstract).
The number of planes in the returned array can be determined using 'getPlanes()'.
Implemented in DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, DiColorPixelTemplate< T3 >, DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.
| virtual void* DiPixel::getDataPtr | ( | ) | [pure virtual] |
get pointer to pixel data (abstract).
NB: See implemented method in derived class for details.
Implemented in DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, DiColorPixelTemplate< T3 >, DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.
| unsigned long DiPixel::getInputCount | ( | ) | const [inline] |
get number of pixels stored in the 'PixelData' element
| virtual int DiPixel::getPlanes | ( | ) | const [pure virtual] |
get number of planes (abstract).
Implemented in DiMonoPixel, and DiColorPixel.
| virtual EP_Representation DiPixel::getRepresentation | ( | ) | const [pure virtual] |
get integer representation (abstract)
Implemented in DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, DiColorPixelTemplate< T3 >, DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.