13 #ifndef mitkChannelDescriptor_h
14 #define mitkChannelDescriptor_h
67 unsigned char *
GetData()
const {
return m_Data; }
74 if (dataPtr ==
nullptr)
76 m_Data = (
unsigned char *)dataPtr;
Holds essential information about a single channel of an Image.
PixelType GetPixelType() const
Get the pixel type of this channel's elements.
size_t GetSize() const
Get the number of elements stored in this channel.
void SetData(void *dataPtr)
ChannelDescriptor(mitk::PixelType type, size_t numOfElements, bool allocate=false)
Construct a ChannelDescriptor with a given pixel type and element count.
unsigned char * GetData() const
Get a raw pointer to the channel's data buffer.
~ChannelDescriptor()
Destructor.
Image class for storing multi-dimensional medical image data.
Describes the data type of image pixels.
Find image slices visible on a given plane.