Home

Awesome

NIFTI C Libraries

Nifti_clib is a set of i/o libraries for reading and writing files in the nifti-1, nifti-2, and (to some degree) cifti file formats. These libraries provide api's for binary file format for storing medical image data, e.g. magnetic resonance image (MRI) and functional MRI (fMRI) brain images.

This repository contains the C implementations. ( See other repositories at github for Java, MATLAB, and Python libraries).

Nifti_clib has been developed by members of the NIFTI DFWG and volunteers in the neuroimaging community and serves as a reference implementation of the nifti-1 and nifti-2 file formats. In addition to being a reference implementation, we hope it is also a useful i/o library.

Nifti_clib code is released into the public domain, developers are encouraged to incorporate niftilib code into their applications, and, to contribute changes and enhancements to niftilib. Please contact us if you would like to contribute additional functionality to the i/o library.

The main webpage for this project is hosted on github. This web site provides historical information. Additional information from the NIFTI DFWG

The testing dashboard for monitoring the health of the libraries is at my.cdash.org.

Nifti-2 C libraries

coming soon.

Cifti C libraries

Introductory, coming soon.

Nifti-1 C libraries

niftilib code is released into the public domain.

Library directories

directorydescription
znzliblow level library for handling read/write of compressed files.
niftilibcore i/o routines for reading and writing nifti-1 format files. Primarily routines to read/write and manipulate the header field information, including orientation matrices. Volume-wise, timecourse-wise, access to image data.
nifti2core i/o routines for reading and writing nifti-2 format files.
nifticdffunctions to compute cumulative distributions and their inverses
fsliolibi/o routines for reading and writing nifti-1 format files, higher level than niftilib, includes routines for reading the data blob by volume, timecourse, etc., and, addresses image orientation issues. work in progress, subject to significant revision.....
ciftivery basic routines for reading cifti format files

Destination directories

directorydescription
bindestination directory for installed programs
includedestination directory for library header files
libdestination directory for compiled libraries
docsdestination directory Doxygen html (created via "make doc")

Example directories

directorydescription
real_easysimple code snippets, some using ref. libs., some not

Other directories

directorydescription
Testingdirectory containing code to test the libraries
packagingspec file for building RPMs, and template package description for Dev-Cpp (http://www.bloodshed.net/devcpp.html)

Instructions to build

commanddescription
"make all"results will be left in the directories: bin/ include/ lib/
"make help"will show more build options

NIFTI ICON