JuliaNeuroscience / NIfTI.jl

Julia module for reading/writing NIfTI MRI files
Other
71 stars 35 forks source link

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

Open divital-coder opened 7 months ago

divital-coder commented 7 months ago

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.

Tokazama commented 7 months ago

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.

divital-coder commented 7 months ago

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 ?