From: tbaudier Date: Thu, 23 Mar 2017 15:20:15 +0000 (+0100) Subject: Debug clitkConvertBLUTCoeffsToVFFilter with ITK > v4.6 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5e6fe301be6f2e134dfe7afe0a89cc126968eb23;p=clitk.git Debug clitkConvertBLUTCoeffsToVFFilter with ITK > v4.6 --- 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();