-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fix read/write of displacement field in NIFTI file format
NIFTI image containing displacement field (intent = 1006) was incorrectly read as scalar volume (all 3 vector components were set to the same value). Fixed by reading NIFTI displacement vector files similarly to general-purpose vector images. For displacement vector files, vector components are converted between NIFTI file's RAS coordinate system and ITK's LPS coordinate system, unless this conversion is explicitly disabled by setting ConvertRASDisplacementVectors to false. An ITK vector image can be written as NIFTI displacement vector file by setting "intent_code"="1006" in the metadata dictionary of the image.
- Loading branch information
Showing
3 changed files
with
173 additions
and
9 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