18 #ifndef sitkPixelIDTokens_h
19 #define sitkPixelIDTokens_h
34 template <
typename TPixelIDType>
37 static const bool Value = FalseType::value;
39 typedef typename FalseType::type
Type;
41 template <
typename TPixelType>
44 static const bool Value = TrueType::value;
46 typedef typename TrueType::type
Type;
48 template <
typename TPixelType,
unsigned int VImageDimension>
50 :
public IsBasic< typename ImageTypeToPixelID< itk::Image<TPixelType, VImageDimension> >::PixelIDType >
54 template <
typename TPixelIDType>
57 static const bool Value = FalseType::value;
59 typedef typename FalseType::type
Type;
61 template <
typename TPixelType>
64 static const bool Value = TrueType::value;
66 typedef typename TrueType::type
Type;
68 template <
typename TPixelType,
unsigned int VImageDimension>
70 :
public IsVector< typename ImageTypeToPixelID< itk::VectorImage<TPixelType, VImageDimension> >::PixelIDType >
74 template <
typename TPixelIDType>
77 static const bool Value = FalseType::value;
79 typedef typename FalseType::type
Type;
81 template <
typename TPixelType>
84 static const bool Value = TrueType::value;
86 typedef typename TrueType::type
Type;
88 template <
typename TLabelType,
unsigned int VImageDimension>
90 :
public IsLabel< typename ImageTypeToPixelID< itk::LabelMap< itk::LabelObject< TLabelType, VImageDimension > > >::PixelIDType >
94 template <
typename TPixelIDType,
unsigned int VImageDimension =0>
98 && ( (VImageDimension == 0)||(VImageDimension == 2) || (VImageDimension == 3)
100 || (VImageDimension == 4)
103 typedef typename nsstd::integral_constant<bool, Value>::value_type
ValueType;
104 typedef typename nsstd::integral_constant<bool, Value>::type
Type;
106 template <
typename TPixelType,
unsigned int VImageDimension >
108 :
public IsInstantiated< typename ImageTypeToPixelID< itk::Image<TPixelType, VImageDimension> >::PixelIDType, VImageDimension >
110 template <
typename TPixelType,
unsigned int VImageDimension>
112 :
public IsInstantiated< typename ImageTypeToPixelID< itk::VectorImage<TPixelType, VImageDimension> >::PixelIDType, VImageDimension >
114 template <
typename TLabelType,
unsigned int VImageDimension>
116 :
public IsInstantiated< typename ImageTypeToPixelID< itk::LabelMap< itk::LabelObject< TLabelType, VImageDimension > > >::PixelIDType, VImageDimension >
122 #endif // _sitkPixelIDTokens_h
FalseType::value_type ValueType
FalseType::value_type ValueType
nsstd::integral_constant< bool, Value >::type Type
TrueType::value_type ValueType
nsstd::true_type TrueType
FalseType::value_type ValueType
nsstd::integral_constant< bool, Value >::value_type ValueType
The Image class for SimpleITK.
TrueType::value_type ValueType
nsstd::false_type FalseType
TrueType::value_type ValueType