Skip to content

Add method to get centre of rotation by slice - #2376

Open
lauramurgatroyd wants to merge 4 commits into
masterfrom
get_cor_by_slice
Open

lauramurgatroyd wants to merge 4 commits into
masterfrom
get_cor_by_slice

Conversation

@lauramurgatroyd

@lauramurgatroyd lauramurgatroyd commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Description

Returns the centre of rotation offset for a given slice index.
This is useful if the axis is tilted

Open question - is it ok this just returns a float?

My thought was that we are only interested in the offset and the user will specify the index anyway.

get_centre_of_rotation returns a dict containing offset (value and unit), angle (value and unit). We could do this too to be consistent?

Example Usage

Contribution Notes

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License
  • I confirm that the contribution does not violate any intellectual property rights of third parties

❤️ Thanks for your contribution!

lauramurgatroyd and others added 4 commits October 22, 2026 13:37
Signed-off-by: Laura Murgatroyd <60604372+lauramurgatroyd@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Blocked

Development

Successfully merging this pull request may close these issues.

1 participant