File Exchange

image thumbnail

DICOM to NIfTI converter

version (16.3 KB) by Guilherme Coco Beltramini
Simple DICOM to NIfTI converter. Gradient table for DTI files is also created.


Updated 03 Jun 2013

View Version History

View License

dicom2nifti converts DICOM files to NIfTI format and creates the gradient table for DTI files.

For DTI files, two tables are generated: the original gradient table (in scanner coordinates) and the rotated gradient table (in patient coordinates).

Specific gradient directions and/or slices can be eliminated.

dicom2nifti has been tested with DICOM files from Philips Achieva 3T R2.6.

Cite As

Guilherme Coco Beltramini (2021). DICOM to NIfTI converter (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Error comes up:

(18:36:17) Running dicom2nifti.m...
- File 1/1:
Reading DICOM data... Done!
Reading DICOM header...Reference to non-existent field 'Private_2001_1018'.

Error in dicom2nifti (line 143)
Nslices = dcmhdr.Private_2001_1018;

Craig Branch

there is a bad line of code: line 147 in dicom2nii.m

Stephen Foldes

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired by: Tools for NIfTI and ANALYZE image

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!