Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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, vcl_size_t numOfElements, bool allocate=false) | |
~ChannelDescriptor () | |
PixelType | GetPixelType () const |
Get the type of channel's elements. More... | |
vcl_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) |
void | AllocateData () |
Protected Attributes | |
std::string | m_Name |
PixelType | m_PixelType |
vcl_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, |
vcl_size_t | numOfElements, | ||
bool | allocate = false |
||
) |
Definition at line 15 of file mitkChannelDescriptor.cpp.
mitk::ChannelDescriptor::~ChannelDescriptor | ( | ) |
Definition at line 21 of file mitkChannelDescriptor.cpp.
|
protected |
Definition at line 50 of file mitkChannelDescriptor.cpp.
|
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.
Referenced by mitk::ImageDescriptor::GetChannelTypeById(), and QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded().
|
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 74 of file mitkChannelDescriptor.h.
Referenced by AllocateData().
|
protected |
Name of the channel
Definition at line 59 of file mitkChannelDescriptor.h.
|
protected |
The type of each element of the channel
Definition at line 64 of file mitkChannelDescriptor.h.
|
protected |
Size of the channel in bytes
Definition at line 67 of file mitkChannelDescriptor.h.
Referenced by AllocateData().