Dear Lorelei,
you are probably picking up some voxels that are outside the brain so
you can either re-enable the commented lines corresponding to the
"Thresholded SPM" ROI (with the 'i1 & i2' expression) or intersect the
sphere ROI with mask.img, ie adding:
matlabbatch{1,e}.spm.util.voi.roi{2}.mask.image = ...
cellstr(fullfile(mydatapath,subject_func{s},'mask.img'));
matlabbatch{1,e}.spm.util.voi.roi{2}.mask.threshold = 0.5;
matlabbatch{1,e}.spm.util.voi.expression = 'i1 & i2';
All the best,
Guillaume.
On 08/04/11 14:12, Lorelei Howard wrote:
> Hello everyone,
>
> I have written a function for VOI extraction (see attached). It runs fine
> with the two following set of inputs:
> extract_VOI_timeseries('HC_MM',[-15,-22,-23],1)
> extract_VOI_timeseries('SPL_SCD',[15,-61,55],1)
>
> However, when I try this:
> extract_VOI_timeseries('Ang_NovRep',[39,-85,25],1)
>
> ...it won't run and I get the error messsages shown below. As far as I can
> tell, matlabbatch is defined with the correct info.
>
> Does anyone have any suggestions as to why it's not working in this case
> and what I need to do to rectify the situation?
>
> Thanks,
> Lorelei
>
>
> Error messages:
>>> cd (PPIpath)
> extract_VOI_timeseries('Ang_NovRep',[39,-85,25],1)
>
>
> ------------------------------------------------------------------------
> Running job #2
> ------------------------------------------------------------------------
> Running 'Volume of Interest'
> ## Note: this VOI facility is in a beta version. ##
> ## Interface and features might change in the future. ##
> Failed 'Volume of Interest'
> Error using ==> svd
> Input to SVD must not contain NaN or Inf.
> In file "C:\Program Files\SPM\spm8\spm_regions.m" (v3569), function
> "spm_regions" at line 185.
> In file "C:\Program Files\SPM\spm8\config\spm_run_voi.m" (v3531), function
> "spm_run_voi" at line 68.
>
> Running 'Volume of Interest'
> ## Note: this VOI facility is in a beta version. ##
> ## Interface and features might change in the future. ##
> Failed 'Volume of Interest'
> Error using ==> svd
> Input to SVD must not contain NaN or Inf.
> In file "C:\Program Files\SPM\spm8\spm_regions.m" (v3569), function
> "spm_regions" at line 185.
> In file "C:\Program Files\SPM\spm8\config\spm_run_voi.m" (v3531), function
> "spm_run_voi" at line 68.
>
> The following modules did not run:
> Failed: Volume of Interest
> Failed: Volume of Interest
>
> ??? Error using ==> cfg_util>local_runcj at 1501
> Job execution failed. The full log of this run can be found in MATLAB
> command window, starting with the lines (look for the line showing the
> exact #job as
> displayed in this error message)
> ------------------
> Running job #2
> ------------------
>
>
> Error in ==> cfg_util at 766
>
>
> Error in ==> spm_jobman at 208
>
>
> Error in ==> extract_VOI_timeseries at 74
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|