Alternatively, you can have a look at AIR software package (Automated
Image Registration). It's open source, written in C and the function you
are interested in is read_image.c. You should have a look at
http://bishopw.loni.ucla.edu/AIR5/sixteenbit.html for more info about
how the images are read, issues about 8-16 bits storage, etc.
Regards,
Remi.
Le vendredi 04 août 2006 à 09:40 +0100, Alle Meije Wink a écrit :
> 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
|