Skip to content

sergivalverde/nifti_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

NIFTI tools

A library for creating, deleting and manipulating NIFTI files in MATLAB. This library is an extension of the library proposed by Jimmy Shen.

Basically, I have updated the library with simple capabilities to load and save compressed NIFTI files.

Usage

The easiest way to load a NIFTI volume is using the function load_nifti. This function will automatically detect if the image is compressed or not and load it. The path of the image has to be passed without extension.

nifti_vol = load_nifti('path_to_the_image_without_extension')

Similarly, NIFTI volumes can be saved using the function save_nifti specifying if the NIFTI has to be compressed or not.

save_nifti(nifti_vol, 'path_to_the_image_without_extension', 'type')

where type can be compressed 'c' or uncompressed 'u'. If no parameter type is passed, the NIFTI images will be compressed by default.

Test

So, far, I only tested on GNU/Linux, but should work on all platforms.

About

NIFTI tools for manipulating Nifty files with MATLAB.

Resources

License

GPL-3.0, BSD-2-Clause licenses found

Licenses found

GPL-3.0
LICENSE
BSD-2-Clause
license.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages