13 #ifndef mitkImageDescriptor_h
14 #define mitkImageDescriptor_h
16 #include <itkObjectFactory.h>
25 #define MAX_IMAGE_DIMENSIONS 8
45 itkFactorylessNewMacro(Self);
65 void Initialize(
const unsigned int *dims,
const unsigned int dim);
75 void Initialize(
const ImageDescriptor::Pointer refDescriptor,
unsigned int channel = 0);
150 std::vector<ChannelDescriptor> m_ChannelDesc;
153 std::vector<std::string> m_ChannelNames;
156 typedef std::vector<std::string>::const_iterator ConstChannelNamesIter;
159 typedef std::vector<ChannelDescriptor>::const_iterator ConstChannelsIter;
161 unsigned int m_NumberOfChannels;
163 unsigned int m_NumberOfDimensions;
Holds essential information about a single channel of an Image.
Holds all essential metadata about an Image object.
~ImageDescriptor() override
PixelType GetChannelTypeByName(const char *name) const
Get the pixel type of a channel identified by name.
unsigned int GetNumberOfDimensions() const
Get the number of active dimensions.
ChannelDescriptor GetChannelDescriptor(unsigned int id=0) const
Get the ChannelDescriptor for a specific channel.
const std::string GetChannelName(unsigned int id) const
Get the name of a channel by its index.
PixelType GetChannelTypeById(unsigned int id) const
Get the pixel type of a channel identified by index.
void Initialize(const ImageDescriptor::Pointer refDescriptor, unsigned int channel=0)
Initialize this descriptor from an existing ImageDescriptor.
mitkClassMacroItkParent(ImageDescriptor, itk::Object)
const unsigned int * GetDimensions() const
Get the array of dimension sizes.
void AddNewChannel(mitk::PixelType ptype, const char *name=nullptr)
Add a new channel to this image descriptor.
unsigned int GetNumberOfChannels() const
Get the total number of channels.
void Initialize(const unsigned int *dims, const unsigned int dim)
Initialize the image descriptor with dimension sizes.
Describes the data type of image pixels.
#define MAX_IMAGE_DIMENSIONS
Maximum number of dimensions supported per image channel.
Find image slices visible on a given plane.