Hello!
I am working on some code that creates nifti images (the nifti pair) and I was trying to use nifti1_test to read the header infromation to test my code. My code is based on the information in the nifti spec file (http://nifti.nimh.nih.gov/pub/dist/src/nifti1.h) and some sample code posted on your (nifti) site.
In addition to the basic analyze files, I am adding the nifti-1 flag (magic), and the qform info (quaternion b, c and d and qfac).
When I use nifti1_test to read the header - it does recognize it as a nifti-1 format, but it does not show me any of the additional nifti fields. Is this expected? Or am I doing something wrong when setting these fields?
Here is the output of 'nifti1_test testAnalyze':
thanks!
nifti1_test testAnalyze
<nifti_image
nifti_type = 'NIFTI-1'
header_filename = 'testAnalyze.hdr'
image_filename = 'testAnalyze.img'
image_offset = '0'
ndim = '3'
nx = '128'
ny = '128'
nz = '23'
dx = '1.5625'
dy = '1.5625'
dz = '4'
datatype = '4'
datatype_name = 'INT16'
nvox = '376832'
nbyper = '2'
byteorder = 'LSB_FIRST'
cal_min = '0'
cal_max = '3607'
num_ext = '0'
/>