From: Cyril Mory Date: Wed, 10 Jun 2015 09:13:18 +0000 (+0200) Subject: Fixed MatrixTransformToVF's option "--like" with ITK > 4.6 X-Git-Tag: v1.4.0~97^2^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=89cd2d45284065ca0a7e5918fd9553dbca3c60a5;p=clitk.git Fixed MatrixTransformToVF's option "--like" with ITK > 4.6 --- diff --git a/registration/clitkMatrixTransformToVFGenericFilter.txx b/registration/clitkMatrixTransformToVFGenericFilter.txx index d864900..a1241b5 100644 --- a/registration/clitkMatrixTransformToVFGenericFilter.txx +++ b/registration/clitkMatrixTransformToVFGenericFilter.txx @@ -101,6 +101,7 @@ namespace clitk typename OutputImageType::Pointer image=reader2->GetOutput(); #if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR >= 6) filter->SetReferenceImage(image); + filter->UseReferenceImageOn(); #else filter->SetOutputParametersFromImage(image); #endif