Open cecilyen opened 6 years ago
I just realize that I was only using writeFileNifti.m, not the mex version. writeFileNifti.m internally calls Shen's NIfTI codes. If I used Shen's maek_nii and save_nii, I could get correct complex NIfTI files. So, the issue is in writeFileNifti.m
did you try niftiWrite, which calls the mex file writeFileNifti?
On Thu, Jun 14, 2018 at 1:09 AM, Cecil Yen notifications@github.com wrote:
I just realize that I was only using writeFileNifti.m, not the mex version. writeFileNifti.m internally calls Shen's NIfTI codes. If I used Shen's maek_nii and save_nii, I could get correct complex NIfTI files. So, the issue is in writeFileNifti.m
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vistalab/vistasoft/issues/296#issuecomment-397172224, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBX3odw9mXAxt5hWhSsDdO_F-MjGj4bks5t8e_8gaJpZM4UkurV .
-- Jonathan Winawer Assistant Professor of Psychology and Neural Science
New York University 6 Washington Place New York, NY, 10003 (212) 998-7922 (phone) (212) 995-4018 (fax) jonathan.winawer@nyu.edu http://psych.nyu.edu/winawer/
I have a 4D single complex array in Matlab. When I try to use writeFileNifti.m and writeFileNifti.mexa64 to write the NIfTI file, the result NIfTI file is not correct. It seems the matrix is messed up.
Ps. I am using Matlab 2018a with CentOS 6.9. writeFileNifti.m and writeFileNifti.mexa64 were downloaded on 6/12/2018 from here.