-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove channels_last kwarg from Image (#685)
* Remove channels_last kwarg from Image Fixes #684. SimpleITK is not very good for fMRI and dMRI images. After this commit, if 4 spatial dimensions are detected, we assume that the read image is of this nature and we move convert the temporal dimension into the channels dimension. The `channels_last` kwarg should no longer be necessary. It is important to take into account that images saved by TorchIO always put the channels in the 5th NIfTI dimension, not the 4th. * Show deprecation message
- Loading branch information
Showing
3 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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