From 89cd2d45284065ca0a7e5918fd9553dbca3c60a5 Mon Sep 17 00:00:00 2001 From: Cyril Mory Date: Wed, 10 Jun 2015 11:13:18 +0200 Subject: [PATCH] Fixed MatrixTransformToVF's option "--like" with ITK > 4.6 --- registration/clitkMatrixTransformToVFGenericFilter.txx | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.1