From dc4ba50b14e54e79eb89fc625d54329d8bb7d8ec Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Fri, 2 Jun 2023 17:30:00 +0200 Subject: [PATCH] BUG: ElastixRegistrationMethod shouldn't put "NoInitialTransform" in map ElastixRegistrationMethod should not set "NoInitialTransform" as parameter value of `InitialTransformParametersFileName`. The value "NoInitialTransform" might cause confusion, as the registration might still have an initial transform parameter file, specified by `SetInitialTransformParameterFileName`. With this commit, `ElastixRegistrationMethod` just ignores any such `InitialTransformParametersFileName` parameter, as suggested to me by Marius Staring, during the internal weekly sprint. --- Core/Main/itkElastixRegistrationMethod.hxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Core/Main/itkElastixRegistrationMethod.hxx b/Core/Main/itkElastixRegistrationMethod.hxx index b964e0c0e..a5e982ae4 100644 --- a/Core/Main/itkElastixRegistrationMethod.hxx +++ b/Core/Main/itkElastixRegistrationMethod.hxx @@ -222,10 +222,6 @@ ElastixRegistrationMethod::GenerateData() SetParameterValueAndWarnOnOverride(parameterMap, "ResultImagePixelType", fixedImagePixelTypeString); - // Initial transform parameter files are handled via arguments and enclosing loop, not - // InitialTransformParametersFileName - SetParameterValueAndWarnOnOverride(parameterMap, "InitialTransformParametersFileName", "NoInitialTransform"); - // Create new instance of ElastixMain const auto elastixMain = elx::ElastixMain::New(); m_ElastixMain = elastixMain;