Problem with deleting first images

Submitted by skuehn on
Dear reader,

I know a similar problem has been reported before, but somehow the solution offered does not work for me.
And parts of the answer was in Chinese so I was not able to follow it completely.

DPARSF nicely starts with processing the DICOM files.
I get a folder called FunImg > Subject > XXX.nii.gz (containing a .nii with 207 images)
But then the following error message appears

??? Error using ==> delete

Not enough input arguments.


Error in ==> DPARSF_run at 276



Error in ==> DPARSF>pushbuttonRun_Callback at 935



Error in ==> gui_mainfcn at 75



Error in ==> DPARSF at 39

    gui_mainfcn(gui_State, varargin{:});


??? Error while evaluating uicontrol Callback.


When DPARSF tries to delete the first images.
I am sure that I indeed have 207 images!
When I skip the Deletion of the first images I also get an error message.

I am running MATLAB on Windows 7. I Tried MATLAB 7.0 and MATLAB R2006a both with the same error occuring.
I am using the DPARSF_V1.0_100510 and REST_V1.4_100426 (though REST_V1.3... gives the same error message).

What could be the problem?
I would very much appreciate your help.

Best wishes,

YAN Chao-Gan

Tue, 06/29/2010 - 01:36

DPARSF and REST can not recognize the format of .nii.gz, they only recognize the format of SPM5's .hdr/.img pairs.
This problem never happen in Windows XP. And I have test it in several Windows 7 computer. I do not know why this problem happened on your computer.
The solution is to convert your DICOM data into NIfTI pairs (.img/.hdr) manually. You can use either SPM5/8 or MRIcroN. You can find the usage in
Best wishes!


Tue, 06/29/2010 - 07:42

In reply to by YAN Chao-Gan


thanks a lot. I have done exactly this (converted DICOM to NIfTI manually) and the rest works now.
Really a nice tool!!!

Best wishes,