X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBSplineCoefficientsToValuesGenericFilter.txx;h=0111db24da506afa39a3bec1286af876104002df;hb=d2d75b63a31a4bfbbed0c22333e34dba688e6503;hp=fed92b10b33d43406e5d0f0d29a3eba1ff49aaaa;hpb=9837464448daaa7c2e998e7adca3a2cfecd49e35;p=clitk.git diff --git a/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx b/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx index fed92b1..0111db2 100644 --- a/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx +++ b/tools/clitkBSplineCoefficientsToValuesGenericFilter.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,9 +14,10 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef clitkBSplineCoefficientsToValuesGenericFilter_txx #define clitkBSplineCoefficientsToValuesGenericFilter_txx +#include /* ================================================= * @file clitkBSplineCoefficientsToValuesGenericFilter.txx @@ -283,7 +284,11 @@ namespace clitk // Matrix Transform if(m_ArgsInfo.matrix_given) { +#if ITK_VERSION_MAJOR >= 4 + typedef itk::TransformToDisplacementFieldSource ConvertorType; +#else typedef itk::TransformToDeformationFieldSource ConvertorType; +#endif typename ConvertorType::Pointer filter= ConvertorType::New(); filter->SetOutputParametersFromImage(output);