Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
An object which holds all 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) | |
~ChannelDescriptor () | |
PixelType | GetPixelType () const |
Get the type of channel's elements. More... | |
size_t | GetSize () const |
Get the size in bytes of the channel. More... | |
unsigned char * | GetData () const |
Get the pointer to the actual data of the channel. 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 |
An object which holds all essential information about a single channel of an Image.
The channel descriptor is designed to be used only as a part of the ImageDescriptor. A consequence to this is that the ChannelDescriptor does not hold the geometry information, only the PixelType. The pixel type is the single information that can differ among an image with multiple channels.
Definition at line 27 of file mitkChannelDescriptor.h.
mitk::ChannelDescriptor::ChannelDescriptor | ( | mitk::PixelType | type, |
size_t | numOfElements, | ||
bool | allocate = false |
||
) |
mitk::ChannelDescriptor::~ChannelDescriptor | ( | ) |
|
inline |
Get the pointer to the actual data of the channel.
Definition at line 43 of file mitkChannelDescriptor.h.
|
inline |
Get the type of channel's elements.
Definition at line 35 of file mitkChannelDescriptor.h.
|
inline |
Get the size in bytes of the channel.
Definition at line 37 of file mitkChannelDescriptor.h.
|
inlineprotected |
Definition at line 48 of file mitkChannelDescriptor.h.
|
protected |
Pointer to the data of the channel
Definition at line 72 of file mitkChannelDescriptor.h.
|
protected |
Name of the channel
Definition at line 57 of file mitkChannelDescriptor.h.
|
protected |
The type of each element of the channel
Definition at line 62 of file mitkChannelDescriptor.h.
|
protected |
Size of the channel in bytes
Definition at line 65 of file mitkChannelDescriptor.h.