X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkNVectorImageTo4DImageGenericFilter.txx;h=f85b374ac670780501b29b5162791bc06fd553f2;hb=9da81e50823a00f78efb8de1740773fd0a347389;hp=0c2d42928918620930fb7d69e533477d5e671c44;hpb=d067c7f46d2cf1041d17ce2da8cfa4a9e8b939c2;p=clitk.git diff --git a/tools/clitkNVectorImageTo4DImageGenericFilter.txx b/tools/clitkNVectorImageTo4DImageGenericFilter.txx index 0c2d429..f85b374 100644 --- a/tools/clitkNVectorImageTo4DImageGenericFilter.txx +++ b/tools/clitkNVectorImageTo4DImageGenericFilter.txx @@ -42,8 +42,27 @@ namespace clitk { if (m_Verbose) std::cout << "Image was detected to be "<(); + if (PixelType == "short") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "unsigned short") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "unsigned_short") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "char") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "unsigned_char") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "int") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "unsigned_int") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "double") { + UpdateWithDimAndPixelType(); + } else if (PixelType == "float") { + UpdateWithDimAndPixelType(); + } else { + std::cerr << "Error, pixel type : \"" << PixelType << "\" unknown !" << std::endl; + } }