Skip to content

Neuroimaging Informatics Technology Initiative

Sections
Personal tools
You are here: Home
phorum - NIfTI Message Board - Re: Working with fsliolib and IDL
NIfTI Message Board

 New Topic  |  Go to Top  |  Go to Topic  |  Search   Previous Message  |  Next Message 
 Re: Working with fsliolib and IDL
Author: Ron Kneusel (---.ittvis.com)
Date:   04-13-09 11:30

Rick-

> What version of niftilib do you have?

nifti library version 1.35 (3 Aug, 2008)

>Do you really want the fslio routines for something?

No. I was just looking for the simplest way to open a file and get the
data and the header into IDL. The interface code for IDL is pure C, so
that is the layer I'm working in. I am not trying to write IDL code to
read the files directly.

So, for example, a simple interface might be:

IDL> data = nifti_read('somefile.nii', HEADER=header)

Where the variable data will hold all the data for the file, 2D if an
image, 3D if a volume, or 4D if a series of volumes. The variable
header will hold the nifti header. Similarly, something like this for
write:

IDL> nifti_write, data, header, 'mynewfile.hdr.gz'

The trick being that the various formats (nii or hdr/img, gzip or no) be
supported as well. Ie, the nifti_write call would create a gzip hdr/img
pair of files.

The header can be manipulated as an IDL structure which maps the
appropriate C structure down in the interface code.

Ron



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

 Topics Author  Date
 Working with fsliolib and IDL  
Ron Kneusel 03-25-09 13:14 
 Re: Working with fsliolib and IDL  
rick reynolds 04-05-09 21:01 
 Re: Working with fsliolib and IDL  
Ron Kneusel 04-08-09 15:55 
 Re: Working with fsliolib and IDL  
rick reynolds 04-09-09 10:04 
 Re: Working with fsliolib and IDL  
Ron Kneusel 04-09-09 16:42 
 Re: Working with fsliolib and IDL  
Ron Kneusel 04-13-09 11:30 
 Re: Working with fsliolib and IDL  
rick reynolds 04-14-09 12:19 
 Re: Working with fsliolib and IDL  
Ron Kneusel 04-14-09 12:43 
 Re: Working with fsliolib and IDL  
Ron Kneusel 05-06-09 13:27 
 Re: Working with fsliolib and IDL  
Ron Kneusel 05-06-09 15:06 
 Re: Working with fsliolib and IDL  
rick reynolds 05-07-09 16:46 
 Re: Working with fsliolib and IDL  new
Ron Kneusel 05-26-09 17:26 
 Re: Working with fsliolib and IDL  new
rick reynolds 05-27-09 09:42 


 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: