also i've tried ;
//mri_convert -it dicom -ot nii /home/ozgun/AnV/dti
samples/KARABAY_NURI_.MR.EGE_HEAD.4.1.2008.07.21.21.20.51.578125.24527595.IMA
/home/ozgun/AnV/ok.nii /
output was;
/
$Id: mri_convert.c,v 1.146.2.4 2009/01/30 02:30:42 nicks Exp
$
reading from /home/ozgun/AnV/dti
samples/KARABAY_NURI_.MR.EGE_HEAD.4.1.2008.07.21.21.20.51.578125.24527595.IMA...
Starting
DICOMRead2()
dcmfile = /home/ozgun/AnV/dti
samples/KARABAY_NURI_.MR.EGE_HEAD.4.1.2008.07.21.21.20.51.578125.24527595.IMA
dcmdir = /home/ozgun/AnV/dti
samples
Ref Series No =
4
Found 73 files, checking for
dicoms
Found 70 dicom files in
series.
First
Sorting
Computing Slice
Direction
Vs: 0 0 0
Vs: nan nan nan
Second Sorting
Counting frames
nframes = 70
nslices = 1
ndcmfiles = 70
PE Dir = COL (dicom read)
TransferSyntaxUID: --1.2.840.10008.1.2.1--
jpegUID: --1.2.840.10008.1.2.4--
Loading pixel data
TR=10700.00, TE=103.00, TI=0.00, flip angle=90.00
i_ras = (-1, -0, 0)
j_ras = (-0, -1, 0)
k_ras = (nan, nan, nan)
Reslicing using trilinear interpolation
*MRIresample(): error inverting matrix; determinant is nan, matrix is:*
-2.000 -0.000 nan nan;
-0.000 -2.000 nan nan;
0.000 0.000 nan nan;
0.000 0.000 0.000 1.000;
/i think problem occurs because of the bold line. Does anyone have any
idea to correct this ?
Thanks anyway
Yours
Ozgun
--- Begin Message ---
Hi;
i have 70 Siemens .ima files in a single directory. Does anyone know how
to convert ALL files in a folder into another format using mri_convert ?
Do i have to convert them one by one?
Does "--sdcmlist" option does this?
Simple usage;
/mri_convert <input file> <outputfile>/
ie: mri_convert /home/ozgun/AnV/aman.ima /home/ozgun/AnV/aman.nii
Thanks anyway
Ozgun
--- End Message ---
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer