We maintain the reference implementation of the NIFTI C
library in our source tree. Get that, compile the NIFTI-1
library, and compile an example program, just to get
started. Note that this does not depend on AFNI at all
(unless you want it to).
The main NIFTI I/O functions pass nifti_image structures
around (based on the NIFTI-1 standard). If you want to
use NIFTI-2 instead, please let me know. I have some
code for that.
To get and compile a sample program based on the
reference library, try:
wget http://afni.nimh.nih.gov/pub/dist/tgz/afni_src.tgz
tar xfz afni_src.tgz
cd afni_src/nifti
make all
cd examples
make clib_01_read_write
./clib_01_read_write -help
Please feel free to let us know how it goes.
- rick
Edited 1 time(s). Last edit at 02/26/2015 09:29AM by rick reynolds.