diff --git a/docs/source/highlights.md b/docs/source/highlights.md index 0e2c9500a4..b8da46871c 100644 --- a/docs/source/highlights.md +++ b/docs/source/highlights.md @@ -472,8 +472,8 @@ For example: train_transforms = [ LoadImaged(...), AddChanneld(...), - Spacingd(...), Orientationd(...), + Spacingd(...), ScaleIntensityRanged(...), EnsureTyped(..., data_type="tensor"), ToDeviced(..., device="cuda:0"), diff --git a/monai/apps/deepgrow/dataset.py b/monai/apps/deepgrow/dataset.py index 763377763a..721781196b 100644 --- a/monai/apps/deepgrow/dataset.py +++ b/monai/apps/deepgrow/dataset.py @@ -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), Orientationd(keys=keys, axcodes="RAS"), + Spacingd(keys=keys, pixdim=pixdim, mode=mode), ] ) diff --git a/monai/transforms/spatial/dictionary.py b/monai/transforms/spatial/dictionary.py index aff2c97a63..eaff3be35d 100644 --- a/monai/transforms/spatial/dictionary.py +++ b/monai/transforms/spatial/dictionary.py @@ -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