13 #ifndef mitkImageDescriptor_h
14 #define mitkImageDescriptor_h
16 #include <itkObjectFactory.h>
25 #define MAX_IMAGE_DIMENSIONS 8
42 itkFactorylessNewMacro(
Self);
54 void Initialize(
const unsigned int *dims,
const unsigned int dim);
103 std::vector<ChannelDescriptor> m_ChannelDesc;
106 std::vector<std::string> m_ChannelNames;
109 typedef std::vector<std::string>::const_iterator ConstChannelNamesIter;
112 typedef std::vector<ChannelDescriptor>::const_iterator ConstChannelsIter;
114 unsigned int m_NumberOfChannels;
116 unsigned int m_NumberOfDimensions;
An object which holds all essential information about a single channel of an Image.
An object to hold all essential information about an Image object.
~ImageDescriptor() override
PixelType GetChannelTypeByName(const char *name) const
Get the pixel type of a channel specified by its name.
unsigned int GetNumberOfDimensions() const
Get the number dimensions used (e.g. non-zero size)
ChannelDescriptor GetChannelDescriptor(unsigned int id=0) const
Get the ChannelDescriptor for a channel specified by its id
const std::string GetChannelName(unsigned int id) const
Get the name of selected channel.
PixelType GetChannelTypeById(unsigned int id) const
Get the pixel type of a channel specified by its id.
void Initialize(const ImageDescriptor::Pointer refDescriptor, unsigned int channel=0)
Initialize the descriptor by an referenced Descriptor.
const unsigned int * GetDimensions() const
Get the C-array of unsigned int holding the size for each dimension of the image.
void AddNewChannel(mitk::PixelType ptype, const char *name=nullptr)
unsigned int GetNumberOfChannels() const
Get the count of channels used.
void Initialize(const unsigned int *dims, const unsigned int dim)
Initialize the image descriptor by the dimensions.
Class for defining the data type of pixels.
#define mitkClassMacroItkParent(className, SuperClassName)
#define MAX_IMAGE_DIMENSIONS
Defines the maximum of 8 dimensions per image channel.
Find image slices visible on a given plane.