Author: rick reynolds (---.nimh.nih.gov)
Date: 04-14-09 12:19
Hi Ron,
So I just added an example program for using some of the top-level
nifticlib functions, that basically reads as:
nim = nifti_image_read(fin, 1);
nifti_set_filenames(nim, fout, 1, 1);
nifti_image_write(nim);
nifti_image_free(nim);
This should work for any valid filename suffix:.nii/.hdr/.img,
and possibly ending with .gz, applying to both 'fin' and 'fout'.
The file is Clibs/examples/clib_01_read_write.c, and is available as
part of the NIfTI library at the quick download site of:
http://nifti.nimh.nih.gov/pub/dist/data/Clibs.tgz
There are lots of useful functions listed in nifti1_io.h (starting
under "main read/write routines").
How does that seem?
- rick
|
|