X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkGenericVectorInterpolator.txx;h=cd9c0f76e1e28684b8f3e27335bce03385f58ba5;hb=d786b4f836c0f12ba4a6dd06803cbe771ac371e3;hp=001399d833627eafe295d201933af597e867056f;hpb=08d1fd56ac1d08bd228d9e557f5472a395e9b708;p=clitk.git diff --git a/registration/clitkGenericVectorInterpolator.txx b/registration/clitkGenericVectorInterpolator.txx index 001399d..cd9c0f7 100644 --- a/registration/clitkGenericVectorInterpolator.txx +++ b/registration/clitkGenericVectorInterpolator.txx @@ -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..."<::New(); +#else + interpolator = itk::LinearInterpolateImageFunction< ImageType,TCoordRep >::New(); +#endif if (m_Verbose) std::cout<<"Using linear interpolation..."<::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..."<