Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
An object to hold all essential information about an Image object. More...
#include <mitkImageDescriptor.h>
Public Types | |
typedef ImageDescriptor | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
void | AddNewChannel (mitk::PixelType ptype, const char *name=nullptr) |
void | Initialize (const unsigned int *dims, const unsigned int dim) |
Initialize the image descriptor by the dimensions. More... | |
void | Initialize (const ImageDescriptor::Pointer refDescriptor, unsigned int channel=0) |
Initialize the descriptor by an referenced Descriptor. More... | |
const unsigned int * | GetDimensions () const |
Get the C-array of unsigned int holding the size for each dimension of the image. More... | |
unsigned int | GetNumberOfDimensions () const |
Get the number dimensions used (e.g. non-zero size) More... | |
const std::string | GetChannelName (unsigned int id) const |
Get the name of selected channel. More... | |
PixelType | GetChannelTypeByName (const char *name) const |
Get the pixel type of a channel specified by its name. More... | |
PixelType | GetChannelTypeById (unsigned int id) const |
Get the pixel type of a channel specified by its id. More... | |
ChannelDescriptor | GetChannelDescriptor (unsigned int id=0) const |
Get the ChannelDescriptor for a channel specified by its id. More... | |
unsigned int | GetNumberOfChannels () const |
Get the count of channels used. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Protected Member Functions | |
ImageDescriptor () | |
~ImageDescriptor () | |
An object to hold all essential information about an Image object.
The ImageDescriptor holds an std::vector of pointers to ChannelDescriptor together with the information about the image's dimensions. The general assumption ist, that each channel of an image has to have the same geometry.
Definition at line 41 of file mitkImageDescriptor.h.
typedef itk::SmartPointer<const Self> mitk::ImageDescriptor::ConstPointer |
Definition at line 44 of file mitkImageDescriptor.h.
Definition at line 44 of file mitkImageDescriptor.h.
Definition at line 44 of file mitkImageDescriptor.h.
typedef itk::Object mitk::ImageDescriptor::Superclass |
Definition at line 44 of file mitkImageDescriptor.h.
|
protected |
Protected constructor
Definition at line 18 of file mitkImageDescriptor.cpp.
|
inlineprotected |
Protected desctructor
Definition at line 101 of file mitkImageDescriptor.h.
void mitk::ImageDescriptor::AddNewChannel | ( | mitk::PixelType | ptype, |
const char * | name = nullptr |
||
) |
Insert new channel
ptype | Pixel Type |
name | channel's name |
Definition at line 30 of file mitkImageDescriptor.cpp.
References mitk::PixelType::GetPixelTypeAsString().
Pointer mitk::ImageDescriptor::Clone | ( | ) | const |
mitk::ChannelDescriptor mitk::ImageDescriptor::GetChannelDescriptor | ( | unsigned int | id = 0 | ) | const |
Get the ChannelDescriptor for a channel specified by its id.
Definition at line 81 of file mitkImageDescriptor.cpp.
const std::string mitk::ImageDescriptor::GetChannelName | ( | unsigned int | id | ) | const |
Get the name of selected channel.
If the name of the channel wasn't initialized, the string returned is set to "Unnamed [ <PixelTypeName> ]"
Definition at line 113 of file mitkImageDescriptor.cpp.
mitk::PixelType mitk::ImageDescriptor::GetChannelTypeById | ( | unsigned int | id | ) | const |
Get the pixel type of a channel specified by its id.
Returns an uninitialized PixelType object if no channel with given id was found
Definition at line 100 of file mitkImageDescriptor.cpp.
References mitk::ChannelDescriptor::GetPixelType().
mitk::PixelType mitk::ImageDescriptor::GetChannelTypeByName | ( | const char * | name | ) | const |
Get the pixel type of a channel specified by its name.
Returns an uninitialized PixelType object if no channel with given name was found
Definition at line 86 of file mitkImageDescriptor.cpp.
|
inlinevirtual |
Definition at line 44 of file mitkImageDescriptor.h.
|
virtual |
|
inline |
Get the C-array of unsigned int holding the size for each dimension of the image.
The C-array has allways lenght of MAX_IMAGE_DIMENSIONS
Definition at line 65 of file mitkImageDescriptor.h.
|
inline |
Get the count of channels used.
Definition at line 95 of file mitkImageDescriptor.h.
|
inline |
Get the number dimensions used (e.g. non-zero size)
The return value does not exceed MAX_IMAGE_DIMENSIONS
Definition at line 70 of file mitkImageDescriptor.h.
|
inlinestatic |
Definition at line 44 of file mitkImageDescriptor.h.
void mitk::ImageDescriptor::Initialize | ( | const unsigned int * | dims, |
const unsigned int | dim | ||
) |
Initialize the image descriptor by the dimensions.
Definition at line 70 of file mitkImageDescriptor.cpp.
void mitk::ImageDescriptor::Initialize | ( | const ImageDescriptor::Pointer | refDescriptor, |
unsigned int | channel = 0 |
||
) |
Initialize the descriptor by an referenced Descriptor.
Definition at line 51 of file mitkImageDescriptor.cpp.
|
static |
Referenced by mitk::CastToImageDescriptor(), and mitk::Image::Initialize().