Skip to content

Commit

Permalink
BUG: ElastixRegistrationMethod shouldn't put "NoInitialTransform" in map
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
N-Dekker committed Jun 5, 2023
1 parent 81324cf commit dc4ba50
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Core/Main/itkElastixRegistrationMethod.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,6 @@ ElastixRegistrationMethod<TFixedImage, TMovingImage>::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;
Expand Down

0 comments on commit dc4ba50

Please sign in to comment.