NYU CBI NIfTI Matlab tool
The NIfTImatlab tool allows the user to operate on NIfTI image files from Matlab.
License
niftimatlab is licensed under the standard BSD license.
Current version:
1.1, released May 4, 2009.
Download
You can download the source code with pre-compiled mex files from
niftimatlab.tar.gz.
The mex files where compiled for the following O/S and MATLAB versions:
- Mac OSX 10.5 with MATLAB 7.5 for PowerPC (extension ".mexmac") and Intel (extension ".mexmaci")
- Mac OSX 10.5 with MATLAB 7.9 for Intel (extension ".mexmaci64")
- Linux Fedora 11 with MATLAB 7.5 (extension ".mexglx")
Build Instructions
The version of the nifticlib needed for the tools is included in the
distribution. It will be built inside the NIfTImatlab directory in the
nifticlib/lib subdirctory.
$ cd NIfTImatlab
$ autoconf
$ ./configure [arguments]
$ make all
$ make install (optional)
The most common arguments for configure are:
- --bindir=DIR : where to install the NIfTImatlab scripts and
executables
- --libdir=DIR : where to install the libraries
N.B.: the build depends on either
$TMW_ROOT being
defined, or the command
matlab to point to the correct
Matlab executable. If neither condition is met, the build will fail.
Usage
Please look at the file NIfTImatlab/examples/niftiexample.m for some
basic operations. Also, from within Matlab, the command
>> help niftifile
will provide top level help.
More Help
For additional help, please contact
software@cbi.nyu.edu.