Skip to content

Commit 3210653

Browse files
committed
BUG: Fix calculation CenterOfRotationPoint in EulerStackTransform
When the user did not explicitly specify "CenterOfRotation" or "CenterOfRotationPoint", the elements of `redDimCenterOfRotationPoint` were accidentally just assigned to themselves, in `EulerStackTransform::InitializeTransform()`. Effectively their values would then remain `0.0`. The bug appears already with the initial EulerStackTransform commit, 4dda84b "Added EulerStackTransform to trunkpublic", 1 March 2017.
1 parent 55ff8b5 commit 3210653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Components/Transforms/EulerStackTransform/elxEulerStackTransform.hxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ EulerStackTransform<TElastix>::InitializeTransform()
234234

235235
for (unsigned int k = 0; k < ReducedSpaceDimension; ++k)
236236
{
237-
redDimCenterOfRotationPoint[k] = redDimCenterOfRotationPoint[k];
237+
redDimCenterOfRotationPoint[k] = centerOfRotationPoint[k];
238238
}
239239

240240
/** FIX: why may the cop not work when using direction cosines? */

0 commit comments

Comments
 (0)