X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvImageWarp.cxx;h=2890ec8188efd8e22a98da6b5e6c0527bcac0272;hb=4480e52377d1150ca781c96e359b3164b65c3503;hp=ff6580387a3c93aaef6c0af3a17c023f57a413d6;hpb=c4de479fec231c7d53555dcd21d308f06aad17ec;p=clitk.git diff --git a/vv/vvImageWarp.cxx b/vv/vvImageWarp.cxx index ff65803..2890ec8 100644 --- a/vv/vvImageWarp.cxx +++ b/vv/vvImageWarp.cxx @@ -101,11 +101,7 @@ void vvImageWarp::Update_WithDimAndPixelType() jacobian_filter->SetUseImageSpacingOn(); vf_connector->SetInput(mVF->GetVTKImages()[num]); warp_filter->SetInput(input[num]); -#if ITK_VERSION_MAJOR >= 4 warp_filter->SetDisplacementField(vf_connector->GetOutput()); -#else - warp_filter->SetDeformationField(vf_connector->GetOutput()); -#endif jacobian_filter->SetInput(vf_connector->GetOutput()); warp_filter->SetOutputSpacing(input[num]->GetSpacing()); warp_filter->SetOutputOrigin(input[num]->GetOrigin());