Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix reading of displacement field vectors from NIFTI #3884

Commits on Jan 25, 2023

  1. 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.
    lassoan committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    586da70 View commit details
    Browse the repository at this point in the history