NIfTI.jl icon indicating copy to clipboard operation
NIfTI.jl copied to clipboard

Missing fields for Freq_dim, Phase_dim and slice_dim within the nifti header after reading a nifti file.

Open divital-coder opened this issue 1 year ago • 2 comments

Based on the following file, the nifti header data is stored along with the fields of freq_dim, phase_dim and slice_dim. https://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.h

Wanted to know, how can i get the relevant values individually for each dim, since NIfTI.jl only loads up a header with the field of "dim_info" in terms of that.

divital-coder avatar Jan 30 '24 21:01 divital-coder

Functions exist for this. I'm going to try finish documenting this tonight after work.

Update:

Although docs are updated on the repo, you won't see anything until I make a release. I'll see if I can get one out over the next few days.

Tokazama avatar Feb 01 '24 21:02 Tokazama

alright , looking forward to this , thanks for considering Zach ,:)

freq_dim #indexes (1,2,3 or 0) for MRI code : dim_info & 0x03 phase_dim #directions in dim/pixdim code : (dim_info >> 2) &0x03 slice_dim #directions in dim/pixdim code : dim_info >>4

can u approve I am headed in the right direction with the above ?

divital-coder avatar Feb 03 '24 08:02 divital-coder