Skip to content

Neuroimaging Informatics Technology Initiative

Sections
Personal tools
You are here: Home
phorum - NIfTI Message Board - NIfTI C Lib Portability
NIfTI Message Board

 New Topic  |  Go to Top  |  Go to Topic  |  Search   Previous Message  |  Next Message 
 NIfTI C Lib Portability
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



 Reply To This Message  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 NIfTI C Lib Portability  
Souheil Inati 08-09-07 08:55 
 Re: NIfTI C Lib Portability  new
rick reynolds 08-09-07 09:36 
 Re: NIfTI C Lib Portability  new
Cinly Ooi 08-10-07 08:07 
 Re: NIfTI C Lib Portability  new
andrew nanton 09-09-08 14:42 
 Re: NIfTI C Lib Portability  new
Cinly Ooi 09-09-08 15:50 
 NIfTI C Lib Portability  new
Cinly Ooi 09-09-08 16:00 
 Re: NIfTI C Lib Portability  new
rick reynolds 09-09-08 16:12 
 Re: NIfTI C Lib Portability  new
rick reynolds 09-09-08 16:16 
 Re: NIfTI C Lib Portability  new
Andrew Nanton 09-22-08 13:53 
 Re: NIfTI C Lib Portability  new
rick reynolds 10-06-08 10:51 


 New Topic  |  Go to Top  |  Go to Topic  |  Search 
 Reply To This Message
 Your Name:
 Your E-mail:
 Subject:
   
 

Powered by Plone

phorum.org

This site conforms to the following standards: