GCA error

老师,您好在GCA运算时通过AAL定义ROI,报错,麻烦指教,谢谢。
 Error using ==> rest_misc>ViewROI at 310 Wrong ROI definition, Please check: C:\Users\yth0306\Desktop\r.nii.img Error in ==> rest_misc at 196 ViewROI(AROIDef); Error in ==> rest_SetROI at 166 rest_misc( 'ViewROI', REST_SetROI_Cfg.ROIDefinition); ??? Error using ==> waitfor Error while evaluating uicontrol Callback GCA :"C:\Users\yth0306\Desktop\w\PA04" Computing GCA with: "C:\Users\yth0306\Desktop\w\PA04" Read 3D EPI functional images: "C:\Users\yth0306\Desktop\w\PA04"........................................ ROI time course retrieving through "C:\Users\yth0306\Desktop\r.nii.img". Exception occured. () Error using ==> rest_gca_coefficient at 141 Wrong ROI definition, Please check: C:\Users\yth0306\Desktop\r.nii.img 141#line, rest_gca_coefficient, in "F:\FDataanalysis\DATAanalysis\REST_V1.8_130303\REST_V1.8_130303\rest_gca_coefficient.m" 957#line, btnComputeGCA_Callback, in "F:\FDataanalysis\DATAanalysis\REST_V1.8_130303\REST_V1.8_130303\rest_gca_gui.m" 96#line, gui_mainfcn, in "F:\D\anhuangchengxu\matlab\toolbox\matlab\guide\gui_mainfcn.m" 39#line, rest_gca_gui, in "F:\FDataanalysis\DATAanalysis\REST_V1.8_130303\REST_V1.8_130303\rest_gca_gui.m" 0#line, @(hObject,eventdata)rest_gca_gui('btnComputeGCA_Callback',hObject,eventdata,guidata(hObject)), in ""

你好,以下是我的看法,如果有错误还请其他程序专家指出:
你的文件为什么是.nii.img后缀?我不太懂这个地方。
从程序来看,REST没有识别到你的ROI。问题的判断语句是:elseif exist(AROIDef,'file')==2    % Make sure the Definition file exist
如果不成立,则判:error(sprintf('Wrong ROI definition, Please check: \n%s', AROIDef));