Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
divital-coder opened this issue Jan 30, 2024 · 2 comments

Comments

@divital-coder
Copy link

divital-coder commented Jan 30, 2024

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
Copy link
Member

Tokazama commented Feb 1, 2024

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
Copy link
Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants