Back to the main page.
Bug 1358 - functional sourcedata needs to be interpolated before plotting...
Status | CLOSED WONTFIX |
Reported | 2012-03-06 14:00:00 +0100 |
Modified | 2012-09-14 15:13:29 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P3 enhancement |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Stephen Whitmarsh - 2012-03-06 14:00:58 +0100
...and this might not be neccecary. Problem seems that sourceplot doesnt understand the raw sourcedata (after ft_sourcegrandaverage). Attached you'll find the raw and interpolated data, code below. % to interpolate: mri = ft_read_mri('/home/common/matlab/spm2/canonical/single_subj_T1.mnc'); cfg = []; cfg.interpmethod = 'nearest'; cfg.parameter = 'stat'; cfg.sphereradius = 0.05; intsource = ft_sourceinterpolate(cfg,rawsource,mri); % to plot: cfg = []; cfg.method = 'surface'; cfg.interactive = 'yes'; cfg.projmethod = 'nearest'; cfg.anaparameter = 'anatomy'; cfg.funparameter = 'avg.stat'; cfg.camlight = 'no'; cfg.surfdownsample = 10; cfg.colorbar = 'no'; cfg.surffile = 'surface_l4_right'; figure; ft_sourceplot(cfg, temp ); view(90,0); CAMLIGHT LEFT
Stephen Whitmarsh - 2012-03-06 14:02:54 +0100
Created attachment 236 data
Jan-Mathijs Schoffelen - 2012-07-17 11:00:34 +0200
I don't know what the 'temp' variable in your example code is, but when I replace it with intsource it works alright. I agree that in essence the interpolation should not be necessary and could be done on the fly, but at the moment that is just not how it works (and used to work).