|
DCMTK Version 3.7.0
OFFIS DICOM Toolkit
|
Struct representing a single frame. More...
Public Member Functions | |
| Frame () | |
| Default constructor. | |
| Frame (const size_t numPixels) | |
| Constructor that creates pixel data of the given size (amount of pixels). | |
| Frame (PixelType *pixelData, const size_t sizeInBytes) | |
| Constructor that takes over pixel data for managing. | |
| Frame (const Frame &rhs) | |
| Copy constructor, copies pixel data. | |
| Frame & | operator= (const Frame &rhs) |
| Assignment constructor, copies pixel data. | |
| virtual void | setReleaseMemory (OFBool release) |
| Set whether pixel data should be release by this class (default) or is managed externally. | |
| virtual size_t | getLengthInBytes () const |
| Get size of pixel data in bytes. | |
| virtual void * | getPixelData () const |
| Returns pointer to pixel data (untyped). | |
| virtual PixelType * | getPixelDataTyped () const |
| Returns pointer to pixel data (typed). | |
| virtual Uint8 | bytesPerPixel () const |
| Returns number of pixels (not necessarily bytes) in the frame. | |
| virtual OFCondition | getUint8AtIndex (Uint8 &byteVal, const size_t index) const |
| Get value at given index as 8 bit value. | |
| virtual OFCondition | getUint16AtIndex (Uint16 &shortVal, const size_t index) const |
| Get value at given index as 16 bit value. | |
| virtual OFString | print () const |
| Print frame data to string (for debugging purposes). | |
| ~Frame () | |
| Destructor, frees memory if not disabled via setReleaseMemory() method. | |
| Public Member Functions inherited from DcmIODTypes::FrameBase | |
| FrameBase () | |
| Destructor. | |
| virtual | ~FrameBase () |
| Deconstructor, frees frame data if not disabled via setReleaseMemory() method. | |
Public Attributes | |
| PixelType * | m_pixData |
| Array for the pixel data bytes. | |
| size_t | m_numPixels |
| Number of pixels in the frame. | |
Struct representing a single frame.
|
inline |
Constructor that creates pixel data of the given size (amount of pixels).
| numPixels | Number of pixels to allocate |
References m_numPixels, and m_pixData.
|
inline |
Constructor that takes over pixel data for managing.
| pixelData | Pointer to pixel data that is afterwards managed by this class |
| sizeInBytes | Size of pixel data in bytes |
References m_numPixels, and m_pixData.
|
inline |
Copy constructor, copies pixel data.
| rhs | Frame to copy |
References Frame(), m_numPixels, and m_pixData.
|
inlinevirtual |
Returns number of pixels (not necessarily bytes) in the frame.
Implements DcmIODTypes::FrameBase.
Referenced by getLengthInBytes().
|
inlinevirtual |
Get size of pixel data in bytes.
Implements DcmIODTypes::FrameBase.
References bytesPerPixel(), and m_numPixels.
Referenced by DcmSegmentation::addFrame().
|
inlinevirtual |
Returns pointer to pixel data (untyped).
Implements DcmIODTypes::FrameBase.
References m_pixData.
|
inlinevirtual |
|
inlinevirtual |
Get value at given index as 16 bit value.
| shortVal | The value at the given index |
| index | The index to get the value from |
Implements DcmIODTypes::FrameBase.
References EC_IllegalCall, EC_Normal, m_numPixels, and m_pixData.
|
inlinevirtual |
Get value at given index as 8 bit value.
| byteVal | The value at the given index |
| index | The index to get the value from |
Implements DcmIODTypes::FrameBase.
References EC_IllegalCall, EC_Normal, m_numPixels, and m_pixData.
|
inline |
Assignment constructor, copies pixel data.
| rhs | Frame to copy from |
References Frame(), m_numPixels, and m_pixData.
|
inlinevirtual |
Print frame data to string (for debugging purposes).
Implements DcmIODTypes::FrameBase.
References m_numPixels, and m_pixData.
|
inlinevirtual |
Set whether pixel data should be release by this class (default) or is managed externally.
| release | OFTrue if memory should be released, OFFalse otherwise |
Implements DcmIODTypes::FrameBase.