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

Nifti and compressed nifti, orientation support, load and save #52

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ashkanpakzad
Copy link

Side note: Couldn't find a dev branch so chosen master as destination.

saving images as nifti resulted in orientation information to not be saved.

This meant that exported nifti images were not compatible with the original source image from which it was derived. Now added support so that orientation information from PTKDicomImage object is saved to the nifti header in NIFTI's RAS format. Also removed the flip on dimensions 1 and 2 as NIFTI stores data in opposite convention to DICOM.

Feature added to be to save and load compressed NIFTI files

Convenient to be able to directly work with compressed NIFTI files on disk rather than raw nifti as they can be several times smaller.

@ashkanpakzad ashkanpakzad marked this pull request as ready for review May 25, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant