<div dir="ltr"><div><div><div><div><div>Hello, <br><br></div>While trying to <span style="color:rgb(0,0,0);font-family:Calibri,Geneva,Arial,Verdana,sans-serif;font-size:15px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:22.5px;text-align:justify;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">plot all tissues in one image using ft_sourceplot function as in<br><br></span><pre class="" style="padding:0.5em;font-size:12px;border:1px dashed rgb(204,204,204);color:rgb(0,0,0);overflow:hidden;font-family:Consolas,"Andale Mono",Menlo,Monaco,monospace;white-space:pre-wrap;width:640px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:justify;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(247,249,250)">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);</pre>I faced the following error:<br><br>Reference to non-existent field 'brick0'<br><br></div>This brick0 is defined in atlas_lookup.m as<br><br>brick0_val = atlas.brick0(ijk(1), ijk(2), ijk(3));<br><br></div>But the atlas variable that is called for this function is defined as:<br><br>dim: [256 256 256]<br>    transform: [4x4 double]<br>     coordsys: 'ctf'<br>         unit: 'mm'<br>          cfg: [1x1 struct]<br>          seg: [256x256x256 double]<br>     seglabel: {'gray'  'white'  'csf'  'skull'  'scalp'}<br><br></div>I wonder from where this brick0 come?<br><br></div>Thanks for help<br><div><div><div><div><div> <div><div><div><br>-- <br><div class="gmail_signature">Hamza Fawzi Altakroury<br>Graduate student - MA<br>Faculty of Engineering and Natural Sciences<br>Sabancı University</div>
</div></div></div></div></div></div></div></div></div>