X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkWarpImageGenericFilter.txx;h=8544df2ba33bf859c827513c4219ac8e6301a42b;hb=54de2903ffa1d7f444d2a38609de58f8f2ab0d2d;hp=2ecc5d5dc0eabf20fc3a23c9f99974e1099fbf95;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/tools/clitkWarpImageGenericFilter.txx b/tools/clitkWarpImageGenericFilter.txx index 2ecc5d5..8544df2 100644 --- a/tools/clitkWarpImageGenericFilter.txx +++ b/tools/clitkWarpImageGenericFilter.txx @@ -192,7 +192,11 @@ WarpImageGenericFilter::UpdateWithDimAndPixelType() //Backward mapping typedef itk::WarpImageFilter BackwardWarpFilterType; typename BackwardWarpFilterType::Pointer backwardWarpFilter= BackwardWarpFilterType::New(); +#if ITK_VERSION_MAJOR >= 4 + backwardWarpFilter->SetDisplacementField( deformationField ); +#else backwardWarpFilter->SetDeformationField( deformationField ); +#endif backwardWarpFilter->SetEdgePaddingValue( static_cast(m_ArgsInfo.pad_arg) ); backwardWarpFilter->SetOutputSpacing( deformationField->GetSpacing() ); backwardWarpFilter->SetOutputOrigin( input->GetOrigin() );