]> Creatis software - clitk.git/commitdiff
- add other types/dim (warning still bugs ! do not use)
authordsarrut <dsarrut>
Tue, 11 May 2010 09:06:09 +0000 (09:06 +0000)
committerdsarrut <dsarrut>
Tue, 11 May 2010 09:06:09 +0000 (09:06 +0000)
filters/clitkResampleImageGenericFilter.txx

index 9bd079ba2205d8de0978d53c6e302849f755f846..a3808249c9e3eb0919770d15b393d7b5a1984216 100644 (file)
@@ -28,7 +28,7 @@ namespace clitk {
   template<class args_info_type>
   ResampleImageGenericFilter<args_info_type>::ResampleImageGenericFilter():
     ImageToImageGenericFilter<Self>("Resample") {
-    // InitializeImageType<2>();
+    InitializeImageType<2>();
     InitializeImageType<3>();
     InitializeImageType<4>();
   }
@@ -39,8 +39,8 @@ namespace clitk {
   template<class args_info_type>
   template<unsigned int Dim>
   void ResampleImageGenericFilter<args_info_type>::InitializeImageType() {      
-    //    ADD_DEFAULT_IMAGE_TYPES(Dim);
-    ADD_IMAGE_TYPE(Dim, short);
+    ADD_DEFAULT_IMAGE_TYPES(Dim);
+    //ADD_IMAGE_TYPE(Dim, short);
   }
   //--------------------------------------------------------------------
   
@@ -89,7 +89,7 @@ namespace clitk {
     typename OutputImageType::SpacingType spacing;
     typename OutputImageType::SizeType size;
     if (mArgsInfo.spacing_given == 1) {
-      filter->SetIsoSpacing(mArgsInfo.spacing_arg[0]);
+      filter->SetOutputIsoSpacing(mArgsInfo.spacing_arg[0]);
     }
     else {
       if ((mArgsInfo.spacing_given != 0) && (mArgsInfo.size_given != 0)) {