X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkInvertVFGenericFilter.txx;h=9835c2e739f64d3edd1af378e7955efc43059ba7;hb=4f6aadc0552db99c03057d4aa40a7fc4a1697350;hp=0cf6cb4a154418ae8e98e33d3496b46def7ab00e;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/tools/clitkInvertVFGenericFilter.txx b/tools/clitkInvertVFGenericFilter.txx index 0cf6cb4..9835c2e 100644 --- a/tools/clitkInvertVFGenericFilter.txx +++ b/tools/clitkInvertVFGenericFilter.txx @@ -3,7 +3,7 @@ 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 @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef clitkInvertVFGenericFilter_txx #define clitkInvertVFGenericFilter_txx @@ -148,7 +148,11 @@ InvertVFGenericFilter::UpdateWithDimAndPixelType() case 1: { // Create the InverseDeformationFieldFilter +#if ITK_VERSION_MAJOR >= 4 + typedef itk::InverseDisplacementFieldImageFilter FilterType; +#else typedef itk::InverseDeformationFieldImageFilter FilterType; +#endif typename FilterType::Pointer filter =FilterType::New(); filter->SetInput(input); filter->SetOutputOrigin(input->GetOrigin());