Hello all,

I'm trying to create some VOIs and run into the following error when I try to create a VOI with the GUI or a script:

GUI error:

Error with file s6waPL005_fMRI_run1_SENSE_7_1.nii
Error using spm_sample_vol
Cant open image file.

Error in spm_get_data (line 44)
        Y(i,:) = spm_sample_vol(V(i),XYZ(1,:),XYZ(2,:),XYZ(3,:),0);

Error in spm_regions (line 159)
y        = spm_get_data(SPM.xY.VY,xSPM.XYZ(:,Q));
 
Error while evaluating uicontrol Callback

Script error:

Error with file s6waPL005_fMRI_run1_SENSE_7_1.nii
Failed  'Volume of Interest'
Error using spm_sample_vol
Cant open image file.
In file "spm12b/spm_get_data.m" (v5160), function "spm_get_data" at line 44.
In file "spm12b/spm_regions.m" (v5539), function "spm_regions" at line 159.
In file "pm12b/config/spm_run_voi.m" (v5512), function "spm_run_voi" at line 67.

I had no issue preprocessing the NII file or running it through a first level pipeline. It seems to display without problem. Any suggestions?

-Drew