X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkDemonsDeformableRegistrationGenericFilter.txx;h=d4b0cb238c55665da8b57e9d9cc52f57bd0e1090;hb=603ff4134048d31b94c7561f973d525a1e054801;hp=6132dc5897ae115d57fd9117e93cfd954a024307;hpb=c4de479fec231c7d53555dcd21d308f06aad17ec;p=clitk.git diff --git a/registration/clitkDemonsDeformableRegistrationGenericFilter.txx b/registration/clitkDemonsDeformableRegistrationGenericFilter.txx index 6132dc5..d4b0cb2 100644 --- a/registration/clitkDemonsDeformableRegistrationGenericFilter.txx +++ b/registration/clitkDemonsDeformableRegistrationGenericFilter.txx @@ -151,11 +151,7 @@ namespace clitk //find the multiresolution filter // typedef typename RegistrationFilterType::FixedImageType InternalImageType; // typedef typename RegistrationFilterType::MovingImageType MovingImageType; -#if ITK_VERSION_MAJOR >= 4 typedef typename RegistrationFilterType::DisplacementFieldType DisplacementFieldType; -#else - typedef typename RegistrationFilterType::DeformationFieldType DisplacementFieldType; -#endif typedef clitk::MultiResolutionPDEDeformableRegistration MultiResolutionRegistrationType; typedef CommandResolutionLevelUpdate LevelObserver; @@ -537,11 +533,7 @@ namespace clitk //JV TODO // pdeFilter->SetMaximumError(m_ArgsInfo.maxError_arg); // pdeFilter->SetMaximumKernelWidth(m_ArgsInfo.maxError_arg); -#if ITK_VERSION_MAJOR >= 4 pdeFilter->SetSmoothDisplacementField(!m_ArgsInfo.fluid_flag); -#else - pdeFilter->SetSmoothDeformationField(!m_ArgsInfo.fluid_flag); -#endif pdeFilter->SetSmoothUpdateField(m_ArgsInfo.fluid_flag); pdeFilter->SetUseImageSpacing( m_ArgsInfo.spacing_flag ); @@ -607,11 +599,7 @@ namespace clitk typedef itk::WarpImageFilter< MovingImageType, FixedImageType, DeformationFieldType > WarpFilterType; typename WarpFilterType::Pointer warp = WarpFilterType::New(); -#if ITK_VERSION_MAJOR >= 4 warp->SetDisplacementField( deformationField ); -#else - warp->SetDeformationField( deformationField ); -#endif warp->SetInput( movingImageReader->GetOutput() ); warp->SetOutputOrigin( fixedImage->GetOrigin() ); warp->SetOutputSpacing( fixedImage->GetSpacing() );