dicm2nii.m converts dicom files in a zip file or in a folder (including sub-folders) into nifti files. It can also convert Philips PAR/REC files and AFNI HEAD/BRIK files into nifti files.
Supports nii(.gz) and hdr/img(.gz) output, bval and bvec (DTI), B0 unwarping parameters in nifti header. Stores slice timing in nifti header, creates unique and descriptive result file names. Included nii_tool can read/write almost any kinds of NIfTI files.