SuperElastix / elastix

Official elastix repository
http://elastix.dev
Apache License 2.0
474 stars 116 forks source link

Remove GoToBegin() calls after iterator construction, move iterator variable declarations into init-statement of `for` #1218

Closed N-Dekker closed 1 month ago

N-Dekker commented 1 month ago

It is unnecessary to call GoToBegin() on an ITK iterator when it has just been constructed, by Iterator(image, region). Such a function call just takes compile-time and run-time.