From 634bc41de10d98998354a6352ef3362ee372edec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Presles?= Date: Fri, 14 Jun 2013 19:01:00 +0200 Subject: [PATCH] clitkVectorImageToImage bug correction --- tools/clitkVectorImageToImageGenericFilter.txx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 "<