Author: Souheil Inati (---.cable.mindspring.com)
Date: 08-09-07 08:55
Hi,
I'm trying to figure out if the nifticlib is portable across various computer architectures.
Suppose someone sends me a nifti file which was written on an x86 Linux machine and I want to read it on my non-commodity hardware system. As far as I can tell, the read routines in nifti1_io.c do something like read a byte stream, possibly swap, and then cast, and the write routines do the reverse without the swap. This seems very dependent on the details of the machine architecture. How do I know that a float is 32bits and an int is 16bits on my architectue? How do I know how the words are aligned in memory?
Does this question even make sense?
Thanks,
Souheil
|
|