SuperElastix / elastix

Official elastix repository
http://elastix.dev
Apache License 2.0
449 stars 110 forks source link

STYLE: Simplify GetAndSetFixedImageInterpolators(), avoiding `-Wshadow` #1114

Closed N-Dekker closed 1 month ago

N-Dekker commented 1 month ago

It appears unnecessary to place the interpolators created by GetAndSetFixedImageInterpolators() in a local std::vector, before passing each of them to SetFixedImageInterpolator.

This commit also prevents a warning, saying:

warning: declaration of 'using FixedImageInterpolatorType = ...' shadows a member of 'elastix::MultiResolutionRegistrationWithFeatures' [-Wshadow]