- if (OutputPixelType == "short")
- {
- UpdateWithDimAndOutputPixelType<short,VImageDimension>();
- }
- else if (OutputPixelType == "unsigned short")
- {
- UpdateWithDimAndOutputPixelType<unsigned short,VImageDimension>();
- }
- else if (OutputPixelType == "unsigned_short")
- {
- UpdateWithDimAndOutputPixelType<unsigned short,VImageDimension>();
- }
- else if (OutputPixelType == "char")
- {
- UpdateWithDimAndOutputPixelType<char,VImageDimension>();
- }
- else if (OutputPixelType == "unsigned_char")
- {
- UpdateWithDimAndOutputPixelType<unsigned char,VImageDimension>();
- }
- else if (OutputPixelType == "int")
- {
- UpdateWithDimAndOutputPixelType<int,VImageDimension>();
- }
- else if (OutputPixelType == "double")
- {
- UpdateWithDimAndOutputPixelType<double,VImageDimension>();
- }
- else if (OutputPixelType == "float")
- {
- UpdateWithDimAndOutputPixelType<float,VImageDimension>();
- }
- else
- {
- std::cerr << "Error, output pixel type : \"" << OutputPixelType << "\" unknown !" << std::endl;
- }
+ if (OutputPixelType == "short") {
+ UpdateWithDimAndOutputPixelType<short,VImageDimension>();
+ } else if (OutputPixelType == "unsigned short") {
+ UpdateWithDimAndOutputPixelType<unsigned short,VImageDimension>();
+ } else if (OutputPixelType == "unsigned_short") {
+ UpdateWithDimAndOutputPixelType<unsigned short,VImageDimension>();
+ } else if (OutputPixelType == "char") {
+ UpdateWithDimAndOutputPixelType<char,VImageDimension>();
+ } else if (OutputPixelType == "unsigned_char") {
+ UpdateWithDimAndOutputPixelType<unsigned char,VImageDimension>();
+ } else if (OutputPixelType == "int") {
+ UpdateWithDimAndOutputPixelType<int,VImageDimension>();
+ } else if (OutputPixelType == "double") {
+ UpdateWithDimAndOutputPixelType<double,VImageDimension>();
+ } else if (OutputPixelType == "float") {
+ UpdateWithDimAndOutputPixelType<float,VImageDimension>();
+ } else {
+ std::cerr << "Error, output pixel type : \"" << OutputPixelType << "\" unknown !" << std::endl;
+ }