Skip to content
Open
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
7 changes: 7 additions & 0 deletions monai/transforms/spatial/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,13 @@ def __init__(
- :py:class:`RandAffineGrid` for the random affine parameters configurations.
- :py:class:`Affine` for the affine transformation parameters configurations.

Note:
The affine transformations in MONAI use a 'backward mapping' (image-to-grid) logic.
This can be counter-intuitive:
- Translation: A positive value shifts the image in the negative direction.
- Scaling: Positive scale_range values decrease the image size; values in [-1, 0) increase it.
- Rotation: The direction (CW/CCW) may vary depending on the axis.

"""
RandomizableTransform.__init__(self, prob)
LazyTransform.__init__(self, lazy=lazy)
Expand Down
7 changes: 7 additions & 0 deletions monai/transforms/spatial/dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,13 @@ def __init__(
- :py:class:`monai.transforms.compose.MapTransform`
- :py:class:`RandAffineGrid` for the random affine parameters configurations.

Note:
The affine transformations in MONAI use a 'backward mapping' (image-to-grid) logic.
This can be counter-intuitive:
- Translation: A positive value shifts the image in the negative direction.
- Scaling: Positive scale_range values decrease the image size; values in [-1, 0) increase it.
- Rotation: The direction (CW/CCW) may vary depending on the axis.

"""
MapTransform.__init__(self, keys, allow_missing_keys)
RandomizableTransform.__init__(self, prob)
Expand Down
Loading