-void vvImageReader::UpdateWithDim(std::string InputPixelType)
-{
- if (mType == VECTORFIELD)
- UpdateWithDimAndInputPixelType<itk::Vector<float,3>,VImageDimension>();
- else if (InputPixelType == "short")
- UpdateWithDimAndInputPixelType<short,VImageDimension>();
- else if (InputPixelType == "unsigned_short")
- UpdateWithDimAndInputPixelType<unsigned short,VImageDimension>();
- else if (InputPixelType == "char")
- UpdateWithDimAndInputPixelType<char,VImageDimension>();
- else if (InputPixelType == "unsigned_char")
- UpdateWithDimAndInputPixelType<unsigned char,VImageDimension>();
- else if (InputPixelType == "int")
- UpdateWithDimAndInputPixelType<int,VImageDimension>();
- else if (InputPixelType == "double")
- UpdateWithDimAndInputPixelType<double,VImageDimension>();
- else if (InputPixelType == "float")
- UpdateWithDimAndInputPixelType<float,VImageDimension>();
- else
- std::cerr << "Error, input pixel type : " << InputPixelType << " unknown !" << std::endl;
+void vvImageReader::UpdateWithDim(std::string InputPixelType) {
+ if (mType == VECTORFIELD)
+ UpdateWithDimAndInputPixelType<itk::Vector<float,3>,VImageDimension>();
+ else if (InputPixelType == "short")
+ UpdateWithDimAndInputPixelType<short,VImageDimension>();
+ else if (InputPixelType == "unsigned_short")
+ UpdateWithDimAndInputPixelType<unsigned short,VImageDimension>();
+ else if (InputPixelType == "char")
+ UpdateWithDimAndInputPixelType<char,VImageDimension>();
+ else if (InputPixelType == "unsigned_char")
+ UpdateWithDimAndInputPixelType<unsigned char,VImageDimension>();
+ else if (InputPixelType == "int")
+ UpdateWithDimAndInputPixelType<int,VImageDimension>();
+ else if (InputPixelType == "double")
+ UpdateWithDimAndInputPixelType<double,VImageDimension>();
+ else if (InputPixelType == "float")
+ UpdateWithDimAndInputPixelType<float,VImageDimension>();
+ else
+ std::cerr << "Error, input pixel type : " << InputPixelType << " unknown !" << std::endl;