Skip to content

Commit

Permalink
ENH: Add SubTransforms to WeightedCombinationTransform parameter map
Browse files Browse the repository at this point in the history
Anticipating pull request #385 "Sync Transform WriteToFile with CreateTransformParametersMap".
  • Loading branch information
N-Dekker committed Jan 13, 2021
1 parent e2d2970 commit 61df9d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Common/GTesting/elxTransformIOGTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ struct WithDimension
{ "StackSpacing", { expectedOne } } });
WithElastixTransform<TranslationTransformElastix>::Test_CreateTransformParametersMap_for_default_transform({});
WithElastixTransform<WeightedCombinationTransformElastix>::Test_CreateTransformParametersMap_for_default_transform(
{ { "NormalizeCombinationWeights", { expectedFalse } } });
{ { "NormalizeCombinationWeights", { expectedFalse } }, { "SubTransforms", {} } });
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ WeightedCombinationTransformElastix<TElastix>::CreateDerivedTransformParametersM
{
const auto & itkTransform = *m_WeightedCombinationTransform;

return { { "NormalizeCombinationWeights", { BaseComponent::ToString(itkTransform.GetNormalizeWeights()) } } };
return { { "NormalizeCombinationWeights", { BaseComponent::ToString(itkTransform.GetNormalizeWeights()) } },
{ "SubTransforms", m_SubTransformFileNames } };

} // end CustomizeTransformParametersMap()

Expand Down

0 comments on commit 61df9d5

Please sign in to comment.