BioMedIA / MIRTK

The Medical Image Registration ToolKit (MIRTK), the successor of the IRTK, contains common CMake build configuration files, core libraries, and basic command-line tools. Extension packages are hosted by the MIRTK GitHub group at
https://github.com/MIRTK
Apache License 2.0
186 stars 71 forks source link

MultiLevelTransformation copy constructor does not copy GlobalTransform #768

Closed schuhschuh closed 3 years ago

schuhschuh commented 3 years ago

The MultiLevelTransformation copy constructor overload which takes a MultiLevelTransformation object as argument does not copy the _GlobalTransformation, only the _LocalTransformations.

This affects compose-dofs, for example, where the FluidFreeFormTransformation makes a copy of the transformation to be added in order to then merge the global transformation with the first local transformation (cf. this line of code).