open-discussion > imcalc spm | failed: Image Calculator
Showing 1-1 of 1 posts
Display:
Results per page:
Sep 16, 2022  01:09 PM | Molly Rowlands
imcalc spm | failed: Image Calculator
Hi, 

I'm trying to get a mean map of 4 unthresholded z maps. All maps are in .nii formats. 
imcalc options selected:
Expression: (i1+i2+i3+i4)/4
Data matrix: Yes 
Masking: No implicit zero mask
Interpolation: Trilinear 
Data Type: INT16 -  signed short 

Each time I run it, I get the following error: 

----------
Running 'Image Calculator'

SPM12: spm_imcalc (v6961) 14:05:03 - 15/09/2022
========================================================================
15-Sep-2022 14:05:03 - Failed 'Image Calculator'
Error using spm_vol>spm_vol_hdr (line 80)
File "/Users/Mol/_Projects_ongoing/P1_Extinction_Metaanalysis/06_Data/New_data/TNT_data_2021/Depue_2007_Science/NT>T_per_block_unthresh_zstate_niftis/cope1.nii" does not exist.
In file "/Users/Mol/PhD/4_Coding/Matlab/spm12/spm_vol.m" (v5958), function "spm_vol_hdr" at line 80.
In file "/Users/Mol/PhD/4_Coding/Matlab/spm12/spm_vol.m" (v5958), function "spm_vol" at line 61.
In file "/Users/Mol/PhD/4_Coding/Matlab/spm12/spm_imcalc.m" (v6961), function "spm_imcalc" at line 101.
In file "/Users/Mol/PhD/4_Coding/Matlab/spm12/config/spm_cfg_imcalc.m" (v7216), function "my_spm_imcalc" at line 232.
The following modules did not run:
Failed: Image Calculator
------------

Any guidance would be really appreciated!