You may want to try the NifTI C library
http://sourceforge.net/project/showfiles.php?group_id=126549
This is pretty neat, because it works for Analyze files as well as NifTI
files.
It comes with a program called nifti-tool which allows you to change
header values, and also to convert between NifTI and Analyze. There was
a bug in v 0.1 that if you converted NifTI to Analyze, nifti_tool did
not change the header to `magic word' to "ni1" (the code for Analyze)
but "n+1" (code for NifTI). Don't know what the status is now, or if the
offsets (0 for Analyze vs. 352 for NifTI) are set correctly, in the
current version.
bw
Alle Meije
Wuming Gong wrote:
> Dear list,
> Could anyone tell me whehter there is available C/C++ codes/library
> for reading Analyze format (.img/.hdr)?
> Thanks,
> Wuming
|