From 5e6fe301be6f2e134dfe7afe0a89cc126968eb23 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 23 Mar 2017 16:20:15 +0100 Subject: [PATCH] Debug clitkConvertBLUTCoeffsToVFFilter with ITK > v4.6 --- registration/clitkConvertBLUTCoeffsToVFFilter.txx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/registration/clitkConvertBLUTCoeffsToVFFilter.txx b/registration/clitkConvertBLUTCoeffsToVFFilter.txx index ef63900..98328eb 100644 --- a/registration/clitkConvertBLUTCoeffsToVFFilter.txx +++ b/registration/clitkConvertBLUTCoeffsToVFFilter.txx @@ -173,12 +173,12 @@ namespace clitk } #if ITK_VERSION_MAJOR > 4 || (ITK_VERSION_MAJOR == 4 && ITK_VERSION_MINOR >= 6) - m_Filter->SetReferenceImage(output); + m_Filter->SetSize(output->GetLargestPossibleRegion().GetSize()); #else - m_Filter->SetOutputOrigin(output->GetOrigin()); - m_Filter->SetOutputSpacing(output->GetSpacing()); m_Filter->SetOutputSize(output->GetLargestPossibleRegion().GetSize()); #endif + m_Filter->SetOutputOrigin(output->GetOrigin()); + m_Filter->SetOutputSpacing(output->GetSpacing()); m_Filter->SetTransform(m_GenericTransform); m_Filter->Update(); -- 2.47.1