17 #ifndef PIXELTYPETRAITS_H
18 #define PIXELTYPETRAITS_H
20 #include <itkDiffusionTensor3D.h>
22 #include <itkImageIOBase.h>
23 #include <itkRGBAPixel.h>
24 #include <itkRGBPixel.h>
25 #include <itkVectorImage.h>
37 template <
typename TValueType>
41 #define MITK_PIXEL_COMPONENT_TYPE(type, ctype, name) \
43 struct mitk::MapPixelComponentType<type> \
45 static const int value = ctype; \
47 std::string mitk::PixelComponentTypeToString() \
65 static const int value = itk::ImageIOBase::MapPixelType<T>::CType;
75 static const bool value =
false;
80 #define DEFINE_TYPE_PRIMITIVE(_TYPEIN) \
82 struct isPrimitiveType<_TYPEIN> \
84 static const bool value = true; \
110 template <
typename TPixelType,
unsigned int VDimension = 0>
117 template <
typename TPixelType,
unsigned int VDimension>
120 typedef itk::VectorImage<TPixelType, VDimension>
ImageType;
124 template <
typename T>
131 template <
typename TPixelType,
unsigned int VDimension>
134 typedef itk::VectorImage<TPixelType, VDimension>
ImageType;
139 template <
bool flag,
typename T>
149 template <
typename T>
156 template <
typename T>
166 template <
bool V,
typename T>
173 template <
typename T>
176 static const size_t Size = T::ValueType::Length;
226 template <
class C,
unsigned int N>
232 template <
class C,
unsigned int N>
238 template <
class C,
unsigned int N>
244 template <
class C,
unsigned int N>
259 template <
class T,
bool Primitive>
270 static const itkIOPixelType
IOPixelType = itk::ImageIOBase::SCALAR;
276 #endif // PIXELTYPETRAITS_H
PixelTypeTrait< isPrimitiveType< T >::value, T >::ValueType ComponentType
itk::VectorImage< TPixelType, VDimension > ImageType
DataCollection - Class to facilitate loading/accessing structured data.
itk::ImageIOBase::IOPixelType itkIOPixelType
static const int PixelComponentUserType
Object for compile-time translation of a composite pixel type into an itk::ImageIOBase::IOPixelType i...
itk::Image< TPixelType, VDimension > ImageType
static const itkIOPixelType IOCompositeType
Object for compile-time resolving of the number of components for given type.
static const bool IsVectorImage
itk::VectorImage< TPixelType, VDimension > ImageType
ValueType
Type of the value held by a Value object.
static const int IOComponentType
#define DEFINE_TYPE_PRIMITIVE(_TYPEIN)
static const itkIOPixelType IOPixelType
This is an implementation of a type trait to provide a compile-time check for PixelType used in the i...
Compile time resolving of the type of a component.
Compile-time trait for resolving the ValueType from an ItkImageType.
Object for compile-time translation of a pixel type into an itk::ImageIOBase::IOPixelType information...
static const vcl_size_t Size
static const int PixelUserType