Authors belong to:
- University of LYON http://www.universite-lyon.fr/
- - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
+ - Léon Bérard cancer center http://www.centreleonberard.fr
- CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
This software is distributed WITHOUT ANY WARRANTY; without even
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
#ifndef __clitkGenericVectorInterpolator_txx
#define __clitkGenericVectorInterpolator_txx
#include "clitkGenericVectorInterpolator.h"
{
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);
if (m_Verbose) std::cout<<"Using BLUT interpolation..."<<std::endl;
break;
}
-
+*/
}//end of switch