]> Creatis software - clitk.git/commitdiff
support additional types
authorschaerer <schaerer>
Thu, 4 Feb 2010 15:06:24 +0000 (15:06 +0000)
committerschaerer <schaerer>
Thu, 4 Feb 2010 15:06:24 +0000 (15:06 +0000)
filters/clitkImageArithmGenericFilter.cxx
vv/vvImageWriter.txx

index 7e344e7..044bb7c 100644 (file)
@@ -39,11 +39,11 @@ template<unsigned int Dim>
 void clitk::ImageArithmGenericFilter::InitializeImageType() {      
   ADD_IMAGE_TYPE(Dim, char);
   ADD_IMAGE_TYPE(Dim, short);
+  ADD_IMAGE_TYPE(Dim, float);
   /*  ADD_IMAGE_TYPE(Dim, short);
   ADD_IMAGE_TYPE(Dim, ushort;
   ADD_IMAGE_TYPE(Dim, int);
   ADD_IMAGE_TYPE(Dim, unsigned int);
-  ADD_IMAGE_TYPE(Dim, float);
   ADD_IMAGE_TYPE(Dim, double);
   */
 }
index 73d3a53..35e5790 100644 (file)
@@ -35,6 +35,10 @@ void vvImageWriter::UpdateWithDim(std::string OutputPixelType)
     {
         UpdateWithDimAndOutputPixelType<short,VImageDimension>();
     }
+    else if (OutputPixelType == "unsigned short")
+    {
+        UpdateWithDimAndOutputPixelType<unsigned short,VImageDimension>();
+    }
     else if (OutputPixelType == "unsigned_short")
     {
         UpdateWithDimAndOutputPixelType<unsigned short,VImageDimension>();