Repository navigation
Add to_monai and from_monai methods - #454
Merged
Merged
Conversation
mccle
marked this pull request as ready for review
September 3, 2026 19:25
CPBridge
requested changes
Sep 3, 2026
Co-authored-by: Chris Bridge <chrisbridge44@googlemail.com>
…version' into feature/monai_volume_conversion Merge with girhub cli changes
Merged
CPBridge
requested changes
Nov 12, 2026
| item in the dictionary corresponds to axis 3 of the array and so | ||
| on). | ||
| channel_dim: int | ||
| Channel dimension index of the metatensor. Defaults to 0. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Channel dimension index of the metatensor. Defaults to 0. | |
| Channel dimension index of the metatensor. Only used if the | |
| number of dimensions in the metatensor (after unsqueezing) is | |
| 4. Defaults to 0. |
Comment on lines
+4267
to
+4268
| Index of a singleton dimension to squeeze (must be a spatial | ||
| dimension). Defaults to None. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Index of a singleton dimension to squeeze (must be a spatial | |
| dimension). Defaults to None. | |
| Index of a singleton dimension to squeeze (must be a spatial | |
| dimension) to give a metatensor representing a 2D image. Note | |
| that the affine matrix of the resulting metatensor will have | |
| the correct pixel spacing, but will not represent the same | |
| mapping into the frame-of-reference coordinate system (this | |
| is due to limitations on the way MONAI represents affine | |
| matrices for 2D images). |
Co-authored-by: Chris Bridge <chrisbridge44@googlemail.com>
Co-authored-by: Chris Bridge <chrisbridge44@googlemail.com>
Co-authored-by: Chris Bridge <chrisbridge44@googlemail.com>
Co-authored-by: Chris Bridge <chrisbridge44@googlemail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.