X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkBSplineCoefficientsToValuesGenericFilter.txx;h=0111db24da506afa39a3bec1286af876104002df;hb=1bfa0da6c453a072c0b04003e297dcf0073dc168;hp=a14380c0625ca6421ecdeb8cbe80f024dff44146;hpb=b273d00111d0c8474019d44282682fbb51a80104;p=clitk.git diff --git a/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx b/tools/clitkBSplineCoefficientsToValuesGenericFilter.txx index a14380c..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,7 +14,7 @@ - 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 @@ -284,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);