]> Creatis software - clitk.git/blobdiff - registration/clitkGenericVectorInterpolator.txx
With ITKv5, change VectorResample and VectorCast Image Filter to Resample and Cast...
[clitk.git] / registration / clitkGenericVectorInterpolator.txx
index 001399d833627eafe295d201933af597e867056f..cd9c0f76e1e28684b8f3e27335bce03385f58ba5 100644 (file)
@@ -48,17 +48,25 @@ namespace clitk
       {
       case 0: 
 
+#if ( ITK_VERSION_MAJOR < 5 )
        interpolator= itk::VectorNearestNeighborInterpolateImageFunction< ImageType,TCoordRep >::New();
+#else
+       interpolator= itk::NearestNeighborInterpolateImageFunction< ImageType,TCoordRep >::New();
+#endif
        if (m_Verbose) std::cout<<"Using nearestneighbor interpolation..."<<std::endl;
        break;
  
       case 1:
 
+#if ( ITK_VERSION_MAJOR < 5 )
        interpolator = itk::VectorLinearInterpolateImageFunction< ImageType,TCoordRep >::New();
+#else
+       interpolator = itk::LinearInterpolateImageFunction< ImageType,TCoordRep >::New();
+#endif
        if (m_Verbose) std::cout<<"Using linear interpolation..."<<std::endl;
        break;  
       
-      case 2:
+/*      case 2:
        {
          typename clitk::VectorBSplineInterpolateImageFunction< ImageType,TCoordRep >::Pointer m =clitk::VectorBSplineInterpolateImageFunction< ImageType,TCoordRep >::New();
          m->SetSplineOrder(m_ArgsInfo.interpVFOrder_arg);
@@ -76,7 +84,7 @@ namespace clitk
          if (m_Verbose) std::cout<<"Using BLUT interpolation..."<<std::endl;
          break;
        } 
-
+*/
       }//end of switch