|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Holds essential information about a single channel of an Image. More...
#include <mitkChannelDescriptor.h>

Public Member Functions | |
| ChannelDescriptor (mitk::PixelType type, size_t numOfElements, bool allocate=false) | |
| Construct a ChannelDescriptor with a given pixel type and element count. More... | |
| ~ChannelDescriptor () | |
| Destructor. More... | |
| PixelType | GetPixelType () const |
| Get the pixel type of this channel's elements. More... | |
| size_t | GetSize () const |
| Get the number of elements stored in this channel. More... | |
| unsigned char * | GetData () const |
| Get a raw pointer to the channel's data buffer. More... | |
Protected Member Functions | |
| void | SetData (void *dataPtr) |
Protected Attributes | |
| std::string | m_Name |
| PixelType | m_PixelType |
| size_t | m_Size |
| unsigned char * | m_Data |
Holds essential information about a single channel of an Image.
Designed to be used only as part of an ImageDescriptor. The ChannelDescriptor does not hold geometry information – only the PixelType, which is the piece of metadata that can differ among channels of a multi-channel image.
Definition at line 31 of file mitkChannelDescriptor.h.
| mitk::ChannelDescriptor::ChannelDescriptor | ( | mitk::PixelType | type, |
| size_t | numOfElements, | ||
| bool | allocate = false |
||
| ) |
Construct a ChannelDescriptor with a given pixel type and element count.
| [in] | type | The pixel type for this channel. |
| [in] | numOfElements | The number of pixel elements in this channel. |
| [in] | allocate | Currently unused; reserved for future memory management. |
| mitk::ChannelDescriptor::~ChannelDescriptor | ( | ) |
Destructor.
|
inline |
Get a raw pointer to the channel's data buffer.
Definition at line 67 of file mitkChannelDescriptor.h.
|
inline |
Get the pixel type of this channel's elements.
Definition at line 49 of file mitkChannelDescriptor.h.
|
inline |
Get the number of elements stored in this channel.
Definition at line 55 of file mitkChannelDescriptor.h.
|
inlineprotected |
Definition at line 72 of file mitkChannelDescriptor.h.
|
protected |
Pointer to the data of the channel
Definition at line 96 of file mitkChannelDescriptor.h.
|
protected |
Name of the channel
Definition at line 81 of file mitkChannelDescriptor.h.
|
protected |
The type of each element of the channel
Definition at line 86 of file mitkChannelDescriptor.h.
|
protected |
Size of the channel in bytes
Definition at line 89 of file mitkChannelDescriptor.h.