Repository navigation
Commit 2b50110
Add docstring note that Transpose/Transposed do not update the affine matrix (#8888)
Closes #6711.
### Description
This PR adds a documentation note to the `Transpose` and `Transposed`
transforms clarifying that they do not update the affine matrix in the
image metadata. As established in #5975, this is intended behavior:
applying an affine-dependent transform such as `Spacing`/`Spacingd`
after `Transpose`/`Transposed` can therefore produce unexpected results.
The note points users to `Orientation`/`Orientationd` for affine-aware
reorientation.
This is a documentation-only change; no functional code is modified.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
Signed-off-by: Akarsh Doki <doki.ak@northeastern.edu>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>1 parent 15f5073 commit 2b50110
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
574 | 581 | | |
575 | 582 | | |
576 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
639 | 646 | | |
640 | 647 | | |
641 | 648 | | |
| |||
0 commit comments