Lisa and Matthew, > > Thanks for the replies. > > Matthew, I tried your code and it seems it perfectly works! Thank you very > much for sharing it! > > I also did this myself which seems to work, too: > > I changes the extension from .IMA to .dcm > and then downloaded the spm extension "dicom2nifti" and the function > converted the images into nifti (.nii) format. > > Best wishes, > > inci > > > > > On Wed, May 25, 2011 at 8:15 PM, Matthew Brett <[log in to unmask]>wrote: > >> Hi, >> >> On Mon, May 23, 2011 at 6:13 AM, Inci Ayhan <[log in to unmask]> wrote: >> > Hi, >> > >> > I am trying to convert 3D EPI images (Siemens - .IMA format) into nifti >> > format using SPM. Because the images do not have a .dcm extension, I >> > cannot use "dicom2nifti" function. >> > >> > I would so much appreciate any help to suggest a way to do so. >> >> You can do the conversion more manually from the matlab command line, >> sort of (untested): >> >> P = spm_select(); % select your DICOM files >> hdrs = spm_dicom_headers(P); >> cd /some/place/for/the/files >> spm_dicom_convert(hdrs); >> >> I think... >> >> Best, >> >> Matthew >> > >