Skip to content
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

Question about using Spacing transform after Transpose transform #6711

Open
chaoscls opened this issue Jul 12, 2023 · 1 comment
Open

Question about using Spacing transform after Transpose transform #6711

chaoscls opened this issue Jul 12, 2023 · 1 comment
Labels
Contribution wanted documentation Improvements or additions to documentation Feature request

Comments

@chaoscls
Copy link

The Transpose transform doesn't change the image's affine matric, but spacing transform needs to calculate the original spacing using this affine matric. So I think this is a bug if transpose before spacing transform.
Transpose:

class Transpose(Transform):

Calculating original spacing: https://github.com/Project-MONAI/MONAI/blob/17c1e3acff583e241066da08dae4b75554b52dda/monai/transforms/spatial/array.py#L507C7-L507C7

@wyli
Copy link
Contributor

wyli commented Jul 12, 2023

Thanks for reporting, please see #5975

Perhaps we can enhance the docstring for the same. Marking this as a feature request..

@wyli wyli added documentation Improvements or additions to documentation Contribution wanted Feature request labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution wanted documentation Improvements or additions to documentation Feature request
Projects
None yet
Development

No branches or pull requests

2 participants