]> 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 7e344e74c592f1c6059b161b028c157124cf3a65..044bb7cba294e066ba1c311eeba9b9102b051542 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 73d3a53a6d8682cb1ca877b9236bf7fe4d4a9944..35e5790c27dac6129000cc04cae4c7dd7615fb02 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>();