Skip to content

Support multiple metrics and regularizations, add tests and backward compatibility ("legacy hack")#1453

Open
N-Dekker wants to merge 10 commits into
mainfrom
support-multiple-metrics-regularizations
Open

Support multiple metrics and regularizations, add tests and backward compatibility ("legacy hack")#1453
N-Dekker wants to merge 10 commits into
mainfrom
support-multiple-metrics-regularizations

Conversation

@N-Dekker

Copy link
Copy Markdown
Member

Leirbag-gabrieL and others added 10 commits June 18, 2026 14:24
Ran clang-format afterwards.

This commit was proposed by Gabriel Husak (Leirbag-gabrieL), Apr 28, 2026 at #1437 It appears very much inspired by Pablo Alvarez (alvarez-pa), Jun 15, 2021, #482.
Removed two unnecessarily typedef's from the public interface of CombinationImageToImageMetric.
Following "Use the prefix form (`++i`) of the increment and decrement operators unless...", https://google.github.io/styleguide/cppguide.html#Preincrement_and_Predecrement

Also removed unnecessary `this->` from those cases.
Avoided repeatedly calling GetNumberOfInterpolators().
Avoided repeatedly calling GetNumberOfFixedImagePyramids() and GetNumberOfMovingImagePyramids().
Avoided repeatedly calling GetNumberOfFixedImages() and GetNumberOfMovingImages().
Based on issue #481 "Multiple metrics and regularization", Pablo Alvarez (alvarez-pa), Jun 15, 2021.
Allowed users to add "dummy" images when having more metrics than images (which was a "hack" before it was officially supported to have more metrics than images).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants