You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Call the ReadFromFile method of the initialTransform. */
if (elx_initialTransform != nullptr)
For the record, back in 2004 (e.g., revision ab62f3d) , TransformBase already handled a failure of ComponentDatabase::GetCreator by just doing nothing:
/** Call the ReadFromFile method of the initialTransform. */
if ( elx_initialTransform )
The text was updated successfully, but these errors were encountered:
N-Dekker
changed the title
Elastix should stop running (and fail) hen initial transform is not supported
Elastix should stop running (and fail) when initial transform is not supported
Jul 20, 2023
When an initial transform is not supported, elastix produces an error message as log output, saying something like:
However, it does not stop running the registration. Shouldn't it?
The error message comes from
ComponentDatabase::GetCreator
at:elastix/Core/Install/elxComponentDatabase.cxx
Lines 108 to 109 in 115d8e1
But it then just returns
nullptr
, which is handled byTransformBase::ReadInitialTransformFromConfiguration
to just do nothing:elastix/Core/ComponentBaseClasses/elxTransformBase.hxx
Lines 485 to 492 in 115d8e1
For the record, back in 2004 (e.g., revision ab62f3d) , TransformBase already handled a failure of
ComponentDatabase::GetCreator
by just doing nothing:elastix/src/Core/ComponentBaseClasses/elxTransformBase.hxx
Lines 342 to 349 in ab62f3d
The text was updated successfully, but these errors were encountered: