DCMTK
Version 3.6.9
OFFIS DICOM Toolkit
|
Abstract base class to handle pixel data. More...
Public Member Functions | |
DiPixel (const unsigned long count, const unsigned long inputCount=0) | |
constructor More... | |
virtual | ~DiPixel () |
destructor | |
virtual EP_Representation | getRepresentation () const =0 |
get integer representation (abstract) More... | |
virtual int | getPlanes () const =0 |
get number of planes (abstract). More... | |
virtual const void * | getData () const =0 |
get pointer to pixel data (abstract). More... | |
virtual void * | getDataPtr ()=0 |
get pointer to pixel data (abstract). More... | |
virtual void * | getDataArrayPtr ()=0 |
get pointer to array of pixel data (abstract). More... | |
unsigned long | getCount () const |
get number of pixels More... | |
unsigned long | getInputCount () const |
get number of pixels stored in the 'PixelData' element More... | |
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.
|
inline |
constructor
count | number of pixels stored in the buffer |
inputCount | number of pixels read from 'PixelData' attribute |
|
inline |
get number of pixels
Referenced by DiColorCopyTemplate< T >::DiColorCopyTemplate(), DiColorMonoTemplate< T >::DiColorMonoTemplate(), DiFlipTemplate< T >::DiFlipTemplate(), DiMonoCopyTemplate< T >::DiMonoCopyTemplate(), DiRotateTemplate< T >::DiRotateTemplate(), DiMonoCopyTemplate< T >::copy(), DiColorCopyTemplate< T >::copy(), DiMonoFlipTemplate< T >::flip(), DiMonoRotateTemplate< T >::rotate(), and DiMonoScaleTemplate< T >::scale().
|
pure virtual |
get pointer to pixel data (abstract).
NB: See implemented method in derived class for details.
Implemented in DiMonoPixelTemplate< T >, DiMonoPixelTemplate< T3 >, DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, and DiColorPixelTemplate< T3 >.
|
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 DiMonoPixelTemplate< T >, DiMonoPixelTemplate< T3 >, DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, and DiColorPixelTemplate< T3 >.
|
pure virtual |
get pointer to pixel data (abstract).
NB: See implemented method in derived class for details.
Implemented in DiMonoPixelTemplate< T >, DiMonoPixelTemplate< T3 >, DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, and DiColorPixelTemplate< T3 >.
|
inline |
get number of pixels stored in the 'PixelData' element
|
pure virtual |
get number of planes (abstract).
Implemented in DiMonoPixel, and DiColorPixel.
Referenced by DiFlipTemplate< T >::DiFlipTemplate(), and DiRotateTemplate< T >::DiRotateTemplate().
|
pure virtual |
get integer representation (abstract)
Implemented in DiMonoPixelTemplate< T >, DiMonoPixelTemplate< T3 >, DiColorPixelTemplate< T >, DiColorPixelTemplate< T2 >, and DiColorPixelTemplate< T3 >.