[FieldTrip] a problem with creating a ROI mask

Shen-Mou Hsu explena at gmail.com
Mon Mar 29 12:14:30 CEST 2021


Dear FieldTrip community,

I try to follow this instruction (
https://www.fieldtriptoolbox.org/tutorial/salzburg/#perform-sourcanalysis)
to create a ROI mask as follows:

atlas = ft_read_atlas(fullfile(ftpath,
'template/atlas/aal/ROI_MNI_V4.nii'));
sourcemodel = load(fullfile(ftpath,
'template/sourcemodel/standard_sourcemodel3d10mm'));

cfg = [];
cfg.atlas = atlas;
cfg.roi = atlas.tissuelabel(43);
mask = ft_volumelookup(cfg, sourcemodel);

However, after executing these lines, an instruction popped out and asked
"Do you want to change the anatomical labels for the axes [Y, n]?". After
specifying  the MNI system, there was still an error message "Error using
ft_volumelookup (line 248) the mismatch between the coordinate system in
the atlas and the coordinate system in the data cannot be resolved"

Any help will be much appreciated!
Shen-Mou Hsu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210329/784ba164/attachment.htm>


More information about the fieldtrip mailing list