Back to the main page.

Bug 2985 - Error when using sfg.spmparams.flags

Status CLOSED FIXED
Reported 2015-10-14 13:42:00 +0200
Modified 2016-06-17 15:57:27 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Maité - 2015-10-14 13:42:28 +0200

Occurs when performing the normalization in SPM and providing the cfg.spmparams.flags to ft_volumenormalise(). It may be because the flags are not passed to spm_normalise (line 239). params = cfg.spmparams; Possible solution: Substitute that line by: VF = spm_vol([cfg.intermediatename,'_anatomy.img']); params = spm_normalise(VG,VF,[],[],[],cfg.spmparams.flags);


Jan-Mathijs Schoffelen - 2016-06-02 14:45:09 +0200

Thanks for reporting, and sorry for the slow follow up. I can confirm the issue, but suggest to add only the VF = spm_vol(...) line. The spatial normalisation parameters shouldn't be re-estimated (by spm_normalise), but just applied to the volume (by spm_write_sn). The warp occurs later in the function.


Jan-Mathijs Schoffelen - 2016-06-02 14:47:40 +0200

Fixed with pull requiest 169