Skip to content

Add Transpose transform - #1350

Merged
fepegar merged 3 commits into
mainfrom
add-transpose
Jul 19, 2025
Merged

Add Transpose transform#1350
fepegar merged 3 commits into
mainfrom
add-transpose

Conversation

@fepegar

@fepegar fepegar commented Jul 18, 2025

Copy link
Copy Markdown
Member

Description

Sometimes it's useful to swap the first and last spatial dimensions, for example, for compatibility with other frameworks. Transpose does this but correctly taking into account spatial metadata, using ToOrientation (contributed by @mueller-franzes) under the hood.

Checklist

  • I have read the CONTRIBUTING docs and have a developer setup ready
  • Changes are
    • Non-breaking (would not break existing functionality)
    • Breaking (would cause existing functionality to change)
  • Tests added or modified to cover the changes
  • In-line docstrings updated
  • Documentation updated
  • This pull request is ready to be reviewed

@fepegar
fepegar merged commit aa4098a into main Jul 19, 2025
30 checks passed
@fepegar
fepegar deleted the add-transpose branch July 19, 2025 09:27
fepegar added a commit that referenced this pull request Apr 1, 2026
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