0146 if ~IsDefinedROITimeCourse,% I need retrieving the ROI averaged time course manualy
0147 maskROI =find(maskROI);
0148 % [rangeX, rangeY, rangeZ] = ind2sub(size(maskROI), find(maskROI));
0149 % theTimeCourses =zeros(length(unique(rangeX)), length(unique(rangeY)), length(unique(rangeZ)));
0150 for t=1:sampleLength,
0151 theTimePoint = squeeze(AllVolume(:,:,:, t));
0152 theTimePoint = theTimePoint(maskROI);
0153 AROITimeCourse(t) =mean(theTimePoint);
0154 end%The Averaged Time Course within the ROI now comes out! 20070903
0155 %Make sure the ROI averaged time course is an col vector
0156 AROITimeCourse =reshape(AROITimeCourse, sampleLength,1);
0157 end
0158 %Save the ROI averaged time course to disk for further study
0159 [pathstr, name, ext, versn] = fileparts(AResultFilename);
0160 theROITimeCourseLogfile =[fullfile(pathstr,['ROI_', name]), '.txt'];
0161 save(theROITimeCourseLogfile, 'AROITimeCourse', '-ASCII', '-DOUBLE','-TABS')
Submitted by admin on Tue, 12/24/2013 - 11:29 Permalink
Re: 关于REST的时间序列提取功能
Check the following codes, it is easy to get each voxel's time course inside a ROI mask.
http://restfmri.net/pub/rest_20090422/doc/rest_20090422/fc.html
Submitted by yubing on Tue, 12/24/2013 - 16:03 Permalink
Re: 关于REST的时间序列提取功能
正在学习中,多谢指教!
Submitted by joyao1991 on Wed, 11/05/2014 - 17:33 Permalink
Re: 关于REST的时间序列提取功能
请教一下,REST和DPARSF中默认的提取出某脑区时间序列,是该脑区中所有体素的时间序列的平均吗?