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.
Guilherme Coco Beltramini (2020). DICOM to NIfTI converter (https://www.mathworks.com/matlabcentral/fileexchange/41874-dicom-to-nifti-converter), MATLAB Central File Exchange. Retrieved .
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;
there is a bad line of code: line 147 in dicom2nii.m
The functions from the "Tools for NIfTI and ANALYZE image" were missing.
Inspired by: Tools for NIfTI and ANALYZE image