[FieldTrip] "mask" option being ignored when plotting source statistics

A. Donda a.donda at hotmail.com
Thu Feb 12 17:26:04 CET 2015

Hi everybody, 

when trying to plot the results of the group-level source statistics with the option "mask", it seems that ft_sourceplot ignores the "mask" option and just plots all values of the t-statistic map.
I even changed manually the field data.mask  (taking logic values 0 / 1) to see whether that affects the plot, but nothing changes. Is there something obvious in the plotting function "ft_sourceplot" that I oversaw?
The result of statistics for differences between two source estimates has the following structure:
stat  =      prob: [38x48x41 double]    cirange: [38x48x41 double]       mask: [38x48x41 logical]       stat: [38x48x41 double]        ref: [38x48x41 double]        dim: [38 48 41]     inside: [1x37163 double]    outside: [1x37621 double]        pos: [74784x3 double]       freq: 22.4439        cfg: [1x1 struct]
Then I interpolate the stat data to one normalized (to MNI space) mri from one subject
cfg = [];cfg.parameter = 'all';statplot = ft_sourceinterpolate(cfg, stat, norm); 

To plot only significant voxels I use stat.mask (i.e. statplot.mask: values  0 and 1) to mask the data, but it is ignored when plotting:
cfg = [];cfg.method        = 'ortho';cfg.funparameter  = 'stat';cfg.maskparameter = 'mask';cfg.maskstyle = 'saturation';cfg.opacitymap = 'rampup';cfg.opacitylim =[0 1]figureft_sourceplot(cfg, statplot);
The plot simply shows all values of the funparameter statplot.stat
If I missed sthg, I would be grateful for any feedback. Thanks!
A. Donda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150212/17c864de/attachment-0001.html>

More information about the fieldtrip mailing list