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.
The functions from the "Tools for NIfTI and ANALYZE image" were missing.
Inspired by: Tools for NIfTI and ANALYZE image