Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/highlights.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ For example:
train_transforms = [
LoadImaged(...),
AddChanneld(...),
Spacingd(...),
Orientationd(...),
Spacingd(...),
ScaleIntensityRanged(...),
EnsureTyped(..., data_type="tensor"),
ToDeviced(..., device="cuda:0"),
Expand Down
2 changes: 1 addition & 1 deletion monai/apps/deepgrow/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def _default_transforms(image_key, label_key, pixdim):
[
LoadImaged(keys=keys),
AsChannelFirstd(keys=keys),
Spacingd(keys=keys, pixdim=pixdim, mode=mode),
Comment thread
wyli marked this conversation as resolved.
Orientationd(keys=keys, axcodes="RAS"),
Spacingd(keys=keys, pixdim=pixdim, mode=mode),
]
)

Expand Down
4 changes: 4 additions & 0 deletions monai/transforms/spatial/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ class Orientationd(MapTransform, InvertibleTransform):

After reorienting the input array, this transform will write the new affine
to the `affine` field of metadata which is formed by ``key_{meta_key_postfix}``.

This transform assumes the channel-first input format.
In the case of using this transform for normalizing the orientations of images,
it should be used before any anisotropic spatial transforms.
"""

backend = Orientation.backend
Expand Down