X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=registration%2FclitkMatrixTransformToVFGenericFilter.txx;h=ebc0e45c3ba6ba0beaf9d30dd05b5a954444ebad;hb=6808027e48645d72771bbb0e342e8be47dd0ea92;hp=0540a134a12018a2935b6977435cba68fbe47596;hpb=01efc03d2d7e88c82197f8f500239573c8b67c39;p=clitk.git diff --git a/registration/clitkMatrixTransformToVFGenericFilter.txx b/registration/clitkMatrixTransformToVFGenericFilter.txx index 0540a13..ebc0e45 100644 --- a/registration/clitkMatrixTransformToVFGenericFilter.txx +++ b/registration/clitkMatrixTransformToVFGenericFilter.txx @@ -78,7 +78,11 @@ namespace clitk typedef itk::Image OutputImageType; // Filter +#if ITK_VERSION_MAJOR >= 4 + typedef itk::TransformToDisplacementFieldSource ConvertorType; +#else typedef itk::TransformToDeformationFieldSource ConvertorType; +#endif typename ConvertorType::Pointer filter= ConvertorType::New(); // Output image info