From: BenoƮt Presles Date: Fri, 14 Jun 2013 17:01:00 +0000 (+0200) Subject: clitkVectorImageToImage bug correction X-Git-Tag: v1.4.0~199^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=inline;h=634bc41de10d98998354a6352ef3362ee372edec;p=clitk.git clitkVectorImageToImage bug correction --- diff --git a/tools/clitkVectorImageToImageGenericFilter.txx b/tools/clitkVectorImageToImageGenericFilter.txx index cb5effe..b1cf3f9 100644 --- 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 "<