Skip to content

STYLE: Drop the index-based "CenterOfRotation" transform parameter #1305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

N-Dekker
Copy link
Member

elastix version 3.402 deprecated the index-based "CenterOfRotation" in favor of "CenterOfRotationPoint" (which assumes world coordinates).

Following:


@mstaring @stefanklein Please check, is this OK to you both? (Entirely dropping the index-based CenterOfRotation.)

@@ -64,9 +61,6 @@ namespace elastix
* By default "GeometricalCenter" is assumed.\n
*
* The transform parameters necessary for transformix, additionally defined by this class, are:
* \transformparameter CenterOfRotation: stores the center of rotation as an index. \n
* example: <tt>(CenterOfRotation 128 128 90)</tt>
* deprecated! From elastix version 3.402 this is changed to CenterOfRotationPoint!
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CenterOfRotation appears deprecated for AdvancedAffineTransform

* \parameter AutomaticTransformInitialization: whether or not the initial translation
* between images should be estimated as the distance between their centers.\n
* example: <tt>(AutomaticTransformInitialization "true")</tt> \n
* By default "false" is assumed. So, no initial translation.
*
* The transform parameters necessary for transformix, additionally defined by this class, are: *
* \transformparameter CenterOfRotation: stores the center of rotation as an index. \n
* example: <tt>(CenterOfRotation 128 128 90)</tt>\n
* <b>depecrated!</b> From elastix version 3.402 this is changed to CenterOfRotationPoint!
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CenterOfRotation appears deprecated for AffineDTITransform.

* \parameter ComputeZYX: whether the order of rotations is ZYX. Default: "false". When false, the order is ZXY.\n
* This parameter is only relevant for 3D transformation (i.e. when the stack transform is 4D), otherwise it is
* ignored.\n
*
* The transform parameters necessary for transformix, additionally defined by this class, are:
* \transformparameter CenterOfRotation: stores the center of rotation as an index. \n
* example: <tt>(CenterOfRotation 128 128)</tt>
* deprecated! From elastix version 3.402 this is changed to CenterOfRotationPoint!
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CenterOfRotation appears deprecated for EulerStackTransform.

@@ -63,9 +60,6 @@ namespace elastix
* This parameter is only relevant for 3D transformation, otherwise it is ignored.\n
*
* The transform parameters necessary for transformix, additionally defined by this class, are:
* \transformparameter CenterOfRotation: stores the center of rotation as an index. \n
* example: <tt>(CenterOfRotation 128 128 90)</tt>\n
* <b>depecrated!</b> From elastix version 3.402 this is changed to CenterOfRotationPoint!
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CenterOfRotation appears deprecated for EulerTransform.

@@ -66,9 +63,6 @@ namespace elastix
* By default "GeometricalCenter" is assumed.\n
*
* The transform parameters necessary for transformix, additionally defined by this class, are:
* \transformparameter CenterOfRotation: stores the center of rotation as an index. \n
* example: <tt>(CenterOfRotation 128 128 90)</tt>\n
* <b>depecrated!</b> From elastix version 3.402 this is changed to CenterOfRotationPoint!
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CenterOfRotation appears deprecated for SimilarityTransform.

@N-Dekker
Copy link
Member Author

Discussed with Stefan (@stefanklein) at our bi-weekly internal elastix sprint. We concluded that the index-based "CenterOfRotation" parameter may be dropped for TransformParameter files, but not for registration parameter files. For registration parameter files, it may still be useful to specify the center of rotation by its grid index.

@N-Dekker N-Dekker force-pushed the Drop-CenterOfRotation branch from 3d00dc8 to 98dc30f Compare April 1, 2025 14:34
elastix version 3.402 deprecated the index-based "CenterOfRotation" in favor of "CenterOfRotationPoint" (which assumes world coordinates).

Following:

- commit 70dd3b8, "ENH: added the possibility to set the CenterOfRotationPoint", Marius Staring, Aug 2, 2006.

- pull request #190 commit 47c470f, "BUG: No longer read rotation center as index (elastix transform < 3.402)", 24 Sep 2019
@N-Dekker N-Dekker force-pushed the Drop-CenterOfRotation branch from 98dc30f to 2235eaa Compare April 2, 2025 11:24
@N-Dekker N-Dekker merged commit f88767b into main Apr 3, 2025
8 checks passed
@N-Dekker N-Dekker deleted the Drop-CenterOfRotation branch April 3, 2025 14:49
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.

1 participant