Dear All
Hi,
1- Why we should use mALFF-1 images for one sample t-test? why we can't use mALFF or ALFF images?
2- When I run 'Image calculator' in REST and add 20 mALFF images as group images and expression was "g1-1". The below error occured in matlab workspace:
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
Error in ==> rest_WriteAnalyzeImage at 79
fwrite(fid,[0,vsize],'float32');
Error in ==> rest_writefile at 84
rest_WriteAnalyzeImage(data,filename,isize,vsize,Header.Origin,dtype);
Error in ==> rest_ImgCal_gui>img_cal at 431
rest_writefile(Y,outname,size(g1),voxdim,header,'double') ;
Error in ==> rest_ImgCal_gui>btnCompute_Callback at 158
img_cal(OutDir,OutPut,Function,Gmag,data);
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> rest_ImgCal_gui at 26
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
Please guide me
thanks alot
Hi,
1- Why we should use mALFF-1 images for one sample t-test? why we can't use mALFF or ALFF images?
2- When I run 'Image calculator' in REST and add 20 mALFF images as group images and expression was "g1-1". The below error occured in matlab workspace:
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
Error in ==> rest_WriteAnalyzeImage at 79
fwrite(fid,[0,vsize],'float32');
Error in ==> rest_writefile at 84
rest_WriteAnalyzeImage(data,filename,isize,vsize,Header.Origin,dtype);
Error in ==> rest_ImgCal_gui>img_cal at 431
rest_writefile(Y,outname,size(g1),voxdim,header,'double') ;
Error in ==> rest_ImgCal_gui>btnCompute_Callback at 158
img_cal(OutDir,OutPut,Function,Gmag,data);
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> rest_ImgCal_gui at 26
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
Please guide me
thanks alot
Forums
Re
2. This is a bug of the current version of REST when performing image calculation on ANALYZE format images. Thank you very much for your report, we will fix this bug in the next release.
Currently, you can revise the last part of rest_writefile.m
FROM:
else
if strcmp(dtype,'single')
dtype='float'; %Revised by YAN Chao-Gan, 090420. rest_WriteAnalyzeImage.m only recognize 'float', thus change the parameter 'single' to 'float'.
end
rest_WriteAnalyzeImage(data,filename,isize,vsize,Header.Origin,dtype);
end
To:
else
if strcmp(dtype,'single')
dtype='float'; %Revised by YAN Chao-Gan, 090420. rest_WriteAnalyzeImage.m only recognize 'float', thus change the parameter 'single' to 'float'.
end
if strcmpi(num2str(size(vsize)),'3 1')
vsize=vsize'; %Revised by YAN Chao-Gan, 100225. Check if vsize is a 1 by 3 array.
end
rest_WriteAnalyzeImage(data,filename,isize,vsize,Header.Origin,dtype);
end
Best wishes!