AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
March 26, 2005 12:56AM
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'
/>
Subject Author Posted

nifti1_test

Zrinka Bilusic March 26, 2005 12:56AM

Re: nifti1_test

Rich Hammett March 26, 2005 10:28PM

Re: nifti1_test

rick reynolds March 27, 2005 09:48PM

Re: nifti1_test

Zrinka Bilusic March 28, 2005 05:18PM