You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If affine is None, `code`-> 0
* If affine not None and existing sform code in header == 0, `code`-> 2 (aligned)
* If affine not None and existing sform code in header != 0, `code`-> existing sform code in header
So if the original NIFTI file has an sform_code of 0, and a null sform affine, and I try to set the sform to something that is not None, it just sets the sform code to 2. I am actually trying to set the sform_code and change the sform matrix for this NIFTI file using the setters in nifti1.py but no change takes place.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From the function
nifti1.set_sform()
:So if the original NIFTI file has an sform_code of 0, and a null sform affine, and I try to set the sform to something that is not None, it just sets the sform code to 2. I am actually trying to set the sform_code and change the sform matrix for this NIFTI file using the setters in nifti1.py but no change takes place.
Beta Was this translation helpful? Give feedback.
All reactions