X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkVectorImageToImageGenericFilter.txx;h=b1cf3f973be3b6fda50b0eabb0939c5b9dab9abd;hb=d9c8c6e6c759655fc24d05d47b962d2ba574b95d;hp=cb5effe22a5949ead40c8cb5613fda31bc41357e;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/tools/clitkVectorImageToImageGenericFilter.txx b/tools/clitkVectorImageToImageGenericFilter.txx old mode 100755 new mode 100644 index cb5effe..b1cf3f9 --- a/tools/clitkVectorImageToImageGenericFilter.txx +++ b/tools/clitkVectorImageToImageGenericFilter.txx @@ -42,8 +42,13 @@ namespace clitk if (Components==3) { - if (m_Verbose) std::cout << "Launching filter in "<< Dimension <<"D and 3D float..." << std::endl; - UpdateWithDimAndPixelType >(); + if (PixelType == "unsigned_char") + UpdateWithDimAndPixelType >(); + else + { + if (m_Verbose) std::cout << "Launching filter in "<< Dimension <<"D and 3D float..." << std::endl; + UpdateWithDimAndPixelType >(); + } } else std::cerr<<"Number of components is "<