[FieldTrip] brick0

Hamza Fawzi Altakroury (Alumni) hamzaf at sabanciuniv.edu
Tue May 5 18:40:23 CEST 2015


Hello,

While trying to plot all tissues in one image using ft_sourceplot function
as in

seg_i = ft_datatype_segmentation(segmentedmri,'segmentationstyle','indexed');

cfg              = [];
cfg.funparameter = 'seg';
cfg.funcolormap  = lines(6); % distinct color per tissue
cfg.location     = 'center';
cfg.atlas        = seg_i;    % the segmentation can also be used as atlas
ft_sourceplot(cfg, seg_i);

I faced the following error:

Reference to non-existent field 'brick0'

This brick0 is defined in atlas_lookup.m as

brick0_val = atlas.brick0(ijk(1), ijk(2), ijk(3));

But the atlas variable that is called for this function is defined as:

dim: [256 256 256]
    transform: [4x4 double]
     coordsys: 'ctf'
         unit: 'mm'
          cfg: [1x1 struct]
          seg: [256x256x256 double]
     seglabel: {'gray'  'white'  'csf'  'skull'  'scalp'}

I wonder from where this brick0 come?

Thanks for help

-- 
Hamza Fawzi Altakroury
Graduate student - MA
Faculty of Engineering and Natural Sciences
Sabanc─▒ University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150505/31046e93/attachment-0001.html>


More information about the fieldtrip mailing list