From: Ali Culp on 6 May 2010 14:00 I am trying to run dcm2nii through matlab, but I'm having a lot of trouble with the code. Here's what I've been directed to do so far... >>path='C:\Program Files\dcm2nii' >>filename=fullfile(path,'dcm2nii.exe') >>s1= __________ >>s2= __________ >>string=sprintf('%s %s %s',filename,s1,s2) >>eval(string) What I'm not sure of is which components I need to add to the string. The example on Chris's website is a bit confusing: dcm2nii -a y -o C:\TEMP C:\DICOM\input1.par C:\input2.par. I understand the first two characters -a and -o but I don't know why he then has two inputs? Can I not just specify a folder as the input and have ALL of the par files in the folder be converted to nifti? Also, I don't really know how to use the system function. When do I need to do >>system('dcm2nii'), before or after the above code?? As you can tell I'm really new to using matlab and feel totally helpless. Any assistance would be MUCH MUCH MUCH appreciated!
|
Pages: 1 Prev: Preallocating a dataset? Next: using mask with boundary conditions |