}
#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();