13 #ifndef mitkChannelDescriptor_h
14 #define mitkChannelDescriptor_h
43 unsigned char *
GetData()
const {
return m_Data; }
50 if (dataPtr ==
nullptr)
52 m_Data = (
unsigned char *)dataPtr;
An object which holds all essential information about a single channel of an Image.
PixelType GetPixelType() const
Get the type of channel's elements.
size_t GetSize() const
Get the size in bytes of the channel.
void SetData(void *dataPtr)
ChannelDescriptor(mitk::PixelType type, size_t numOfElements, bool allocate=false)
unsigned char * GetData() const
Get the pointer to the actual data of the channel.
Image class for storing images.
Class for defining the data type of pixels.
Find image slices visible on a given plane.