error in rest image calculator

Submitted by SHS on
老師您好:  

老師您說的是 Image Calculator 是在 DPARSF 裡面的utilities 嗎?  我試圖打開, 但DPARSF 的 utilites 只有一個選項是change the prefix of images
想請問老師說的是 REST 的utilites 嗎?
我目前是用 REST 的utilites中的image calculator, expression  如老師說的, 鍵入 g1.*To4D(i1>300,36) (我放的是被試數目) ,
或只放一個 individual image, 鍵入1i>300, 它們仍然會出現如下的讀寫錯誤error,  
??? Error using ==> rest_Fix_Read_Write_Error at 64
Meet error while fixing read write error. Please restart MATLAB, and run
"rest_Fix_Read_Write_Error" before starting anything.
 
Error in ==> rest_WriteNiftiImage at 92
   rest_Fix_Read_Write_Error; %YAN Chao-Gan, 100426.
 
Error in ==> rest_writefile at 84
    rest_WriteNiftiImage(data,Header,filename);
 
Error in ==> rest_ImgCal_gui>img_cal at 548
        rest_writefile(Y,outname,size(i1),voxdim,header,'double') ;
 
Error in ==> rest_ImgCal_gui>btnCompute_Callback at 228
    img_cal(OutDir,OutPut,Function,Gmag,data);
 
Error in ==> gui_mainfcn at 96
        feval(varargin{:});
 
Error in ==> rest_ImgCal_gui at 30
    gui_mainfcn(gui_State, varargin{:});
 
??? Error while evaluating uicontrol Callback 
想請問老師 是否有哪個地方需要再改正,或是有其他更好的建議方法? 
另一個問題是,再做group mask 時, 我不確定 是否需同時放入group image 及 individual image 讓它去定義 g1 和 i1 的file, 或是我只要放入group image 他就會自己將第一個 image file  視為i1,  因為expression 的表示是 g1.*To4D(i1>300,36) 同時有i1 和g1 兩個字存在,還有我preprocessing 後的檔案命名是 sub_202_swaRSepi, 那expression 是否要改變寫法?  
 
非常謝謝老師幫忙解惑!
 

老師您好, 

抱歉我不小心誤刪了我先前的提問, 這是先前的存檔,

老師您好:  

我最近想用 rest image calculator 的功能 create 一個屬於group 的mask ,

在prerprocessing 的部分是用SPM8, bounding box 是設  -100 -130 -80  100 100 110, 跟DPARSF 的預設值是不同的, 

因此想要create 一個 新的 mask,

在放入group images & individual image 後, 我在expression 輸入的是 g1.*(i1>300), 

但他卻出現如下的error  code,  想詢問老師是否有哪個步驟是不相容 或錯誤執行的?  

 

??? Error using ==> rest_Fix_Read_Write_Error at 64

Meet error while fixing read write error. Please restart MATLAB, and run

"rest_Fix_Read_Write_Error" before starting anything.

Error in ==> rest_WriteNiftiImage at 92

   rest_Fix_Read_Write_Error; %YAN Chao-Gan, 100426.

 

Error in ==> rest_writefile at 84

    rest_WriteNiftiImage(data,Header,filename);

 

Error in ==> rest_ImgCal_gui>img_cal at 548

        rest_writefile(Y,outname,size(i1),voxdim,header,'double') ;

 

Error in ==> rest_ImgCal_gui>btnCompute_Callback at 228

    img_cal(OutDir,OutPut,Function,Gmag,data);

 

Error in ==> gui_mainfcn at 96

        feval(varargin{:}); 

 

Error in ==> rest_ImgCal_gui at 30

    gui_mainfcn(gui_State, varargin{:});

 

??? Error while evaluating uicontrol Callback  

Re: [RFMRI] error in rest

你好!这是读写遇到错误。你可以试试DPABI->Utilities->Image Calculator:

g1.*To4D(i1>300,240)
其中240是时间点数或被试个数。

DPABI(http://rfmri.org/dpabi)->Utilities->Image Calculator

On Wed, May 18, 2016 at 2:02 PM, The R-fMRI Network <rfmri.org@gmail.com> wrote:
[To post a comment, please reply to rfmri.org@gmail.com ABOVE this line]

Commented by Shyue Wen Shih (SHS)

老師您好, 

抱歉我不小心誤刪了我先前的提問, 這是先前的存檔,

老師您好:  

我最近想用 rest image calculator 的功能 create 一個屬於group 的mask ,

在prerprocessing 的部分是用SPM8, bounding box 是設  -100 -130 -80  100 100 110, 跟DPARSF 的預設值是不同的, 

因此想要create 一個 新的 mask,

在放入group images & individual image 後, 我在expression 輸入的是 g1.*(i1>300), 

但他卻出現如下的error  code,  想詢問老師是否有哪個步驟是不相容 或錯誤執行的?  

 

??? Error using ==> rest_Fix_Read_Write_Error at 64

Meet error while fixing read write error. Please restart MATLAB, and run

"rest_Fix_Read_Write_Error" before starting anything.

Error in ==> rest_WriteNiftiImage at 92

   rest_Fix_Read_Write_Error; %YAN Chao-Gan, 100426.

 

Error in ==> rest_writefile at 84

    rest_WriteNiftiImage(data,Header,filename);

 

Error in ==> rest_ImgCal_gui>img_cal at 548

        rest_writefile(Y,outname,size(i1),voxdim,header,'double') ;

 

Error in ==> rest_ImgCal_gui>btnCompute_Callback at 228

    img_cal(OutDir,OutPut,Function,Gmag,data);

 

Error in ==> gui_mainfcn at 96

        feval(varargin{:}); 

 

Error in ==> rest_ImgCal_gui at 30

    gui_mainfcn(gui_State, varargin{:});

 

??? Error while evaluating uicontrol Callback  

Re: [RFMRI] error in rest

你好!这是读写遇到错误。你可以试试DPABI->Utilities->Image Calculator:

g1.*To4D(i1>300,240)
其中240是时间点数或被试个数。


Online version of this post: http://rfmri.org/comment/4309#comment-4309


Many a little makes a mickle -- your kind contributions shall make our efforts not perish from the earth. Please help The R-fMRI Network at http://rfmri.org/#overlay=HelpUs
To manage subscriptions, please visit: http://rnet.co/mailman/listinfo/rfmri.org_rnet.co
Mail comment ID: http://rfmri.org/mailcomment/redirect/%3C31.2309.4309.1463551360.2d6d8772940f835be7c67143227af001%40www.rfmri.org%3E



--
Chao-Gan YAN, Ph.D.
Principal Investigator
Deputy Director, MRI Research Center
Institute of Psychology, Chinese Academy of Sciences
16 Lincui Road, Chaoyang District, Beijing 100101, China
-