]> Creatis software - clitk.git/commitdiff
Debug clitkConvertBLUTCoeffsToVFFilter with ITK > v4.6
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 23 Mar 2017 15:20:15 +0000 (16:20 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 23 Mar 2017 15:20:15 +0000 (16:20 +0100)
registration/clitkConvertBLUTCoeffsToVFFilter.txx

index ef63900717289f73c0fc3b71969c8a7a0c44ec6c..98328eb08b04190bb202546b99e384c4f876f627 100644 (file)
@@ -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();