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

6985 metatensor_to_itk_image compatible space #7000

Merged
merged 4 commits into from
Sep 18, 2023

Conversation

wyli
Copy link
Contributor

@wyli wyli commented Sep 18, 2023

Fixes #6985

Description

  • update metatensor_to_itk_image to accept RAS metatensor
  • nrrdreader default 'space' from empty/"left-posterior-superior" to SpaceKeys.LPS
  • more tests

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
@wyli wyli marked this pull request as ready for review September 18, 2023 11:44
Copy link
Member

@ericspod ericspod left a comment

Choose a reason for hiding this comment

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

Looks correct to me, I guess we don't have to consider other space values from NRRD or other files. (Others are mentioned here: https://teem.sourceforge.net/nrrd/format.html#space)

@wyli
Copy link
Contributor Author

wyli commented Sep 18, 2023

/build

@wyli wyli enabled auto-merge (squash) September 18, 2023 12:51
@wyli wyli merged commit b31367f into Project-MONAI:dev Sep 18, 2023
30 of 35 checks passed
@wyli wyli deleted the 6985-itk-image branch November 2, 2023 17:25
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.

itk_torch_bridge.metatensor_to_itk_image() incorrect orientation
2 participants