rpomponio / neuroHarmonize

Harmonization tools for multi-site neuroimaging analysis. Implemented as a python package. Harmonization of MRI, sMRI, dMRI, fMRI variables with support for NIFTI images. Complements the work in Neuroimage by Pomponio et al. (2019).
https://pypi.org/project/neuroHarmonize/
MIT License
79 stars 28 forks source link

keep output nifti orientation as input #12

Closed yuhancui closed 3 years ago

yuhancui commented 3 years ago

Hi Ray, I updated harmonizationNIFTI.py to keep the output image file orientation (LPS) to be the same as the input ones (LPS) by including header in nib.Nifti1Image(). Previsouly when header is not included in nib.Nifti1Image(), output file orientation is automatically set to RAS.

rpomponio commented 3 years ago

@yuhancui Thank you! I'm merging this right now :)