dcm2nii is used to convert from DICOM format to various data format
such as;
Compressed 4D NIfTI nii.gz, 4D NIfTI nii, 3D NIfTI hdr/img and 3D
Anlyze hdr/img. Or even it modify NIfTI
format. There are two versions; the dcm2niigui and command line
dcm2nii. This software was written
by Dr. Chris Rorden. It can be downloaded with mricron
package; https://www.nitrc.org/projects/mricron/
MAC
gui version is user friendly but it can convert one data set at a
time.
Therefore, I wrote an applescript
to convert multiple DICOM data sets to NIfTI/Analyze format at one
instance using dcm2nii command.
Bash script works on both Linux and MAC.
user needs to copy this script to data directory and execute it
from there using chmod +x to make it executable as
following;
chmod +x dicom2nii.command or chmod +x dicom2nii.sh
If you will use dicom2nii.command file copy it to your subjects'
directory then execute it using dicom2nii.command. dicom2nii.sh you
can do the same thing but you cant double click
dicom2nii.sh.
Note: If mricron directory is not **** /Applications/mricronmac
****
Please do not forget to change it in **dicom2nii.command** or
**dicom2nii.command** using any text editor