]> Creatis software - clitk.git/blobdiff - tools/clitkVectorImageToImageGenericFilter.txx
Correct roi name into DicomRTStruct
[clitk.git] / tools / clitkVectorImageToImageGenericFilter.txx
old mode 100755 (executable)
new mode 100644 (file)
index cb5effe..b1cf3f9
@@ -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<Dimension, itk::Vector<float, 3> >();
+        if (PixelType == "unsigned_char")
+            UpdateWithDimAndPixelType<Dimension, itk::Vector<unsigned char, 3> >();
+        else
+        {
+            if (m_Verbose) std::cout  << "Launching filter in "<< Dimension <<"D and 3D float..." << std::endl;
+            UpdateWithDimAndPixelType<Dimension, itk::Vector<float, 3> >();
+        }
       }
     else std::cerr<<"Number of components is "<<Components<<", not supported!"<<std::endl;
   }