18 #ifndef elxPixelType_h
19 #define elxPixelType_h
29 template<
typename T >
32 static const char * ToString()
34 itkGenericExceptionMacro(<<
"Pixel type \"" <<
typeid( T ).name() <<
"\" is not supported." );
41 struct PixelType< char >
43 static const char * ToString()
52 struct PixelType< unsigned char >
54 static const char * ToString()
56 return "unsigned char";
63 struct PixelType< short >
65 static const char * ToString()
74 struct PixelType< unsigned short >
76 static const char * ToString()
78 return "unsigned short";
85 struct PixelType<
int >
87 static const char * ToString()
96 struct PixelType< unsigned
int >
98 static const char * ToString()
100 return "unsigned int";
107 struct PixelType< long >
109 static const char * ToString()
118 struct PixelType< unsigned long >
120 static const char * ToString()
122 return "unsigned long";
129 struct PixelType< float >
131 static const char * ToString()
140 struct PixelType<
double >
142 static const char * ToString()