X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkVectorImageToImageGenericFilter.txx;h=b1cf3f973be3b6fda50b0eabb0939c5b9dab9abd;hb=5578995d9a82792833333eeb3dd5c8ecac967293;hp=dc2af9f8b351c5af9b849c81a13608f689b8f772;hpb=a26cd8a19e1b9ad8344ab501436045f171a73713;p=clitk.git diff --git a/tools/clitkVectorImageToImageGenericFilter.txx b/tools/clitkVectorImageToImageGenericFilter.txx old mode 100755 new mode 100644 index dc2af9f..b1cf3f9 --- a/tools/clitkVectorImageToImageGenericFilter.txx +++ b/tools/clitkVectorImageToImageGenericFilter.txx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef clitkVectorImageToImageGenericFilter_txx #define 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 "<