[FieldTrip] Fwd: ft_volumerealign with headshape

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Mon Mar 13 08:49:27 CET 2017


Hi Ainsley,

I forward your message to the discussion list.

Dear list,

Please have a look at Ainsley’s question below. Did anyone encounter this issue and has a solution? The error is a low-level MATLAB one, so apparently the input arguments to the ismember function call are not what they should be.

Thanks and with best wishes,

Jan-Mathijs




J.M.Schoffelen, MD PhD
Senior Researcher, VIDI-fellow - PI, language in interaction
Telephone: +31-24-3614793
Physical location: room 00.028
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands





Begin forwarded message:

From: Ainsley Temudo <ainsley.temudo at nyu.edu<mailto:ainsley.temudo at nyu.edu>>
Subject: ft_volumerealign with headshape
Date: 13 March 2017 at 07:30:23 GMT+1
To: <jan.schoffelen at donders.ru.nl<mailto:jan.schoffelen at donders.ru.nl>>

Hi Jan-Mathijs,

I'm trying to realign an MRI to a headshape. I found a previous discussion mail from someone who had a similar problem a couple of years ago and you replied saying you fixed it locally with a dirty hack.

https://mailman.science.ru.nl/pipermail/fieldtrip/2015-November/009828.html

I am doing it the same way:

mri = ft_read_mri('WMCP1011+22+t1mprage.nii');
cfg = [];
cfg.method = 'interactive';
cfg.coordsys = 'ctf';
mri_realigned = ft_volumerealign(cfg,mri);



hs=ft_read_headshape('headscan.hsp');

cfg = [];
cfg.method = 'headshape'
cfg.coordsys = 'ctf';
cfg.headshape.headshape = hs;
mri_realigned2 = ft_volumerealign(cfg,mri_realigned);

 and I get the following errors :

doing interactive realignment with headshape
Error using cell/ismember (line 34)
Input A of class cell and input B of class cell must be cell arrays of
strings, unless one is a string.

Error in ft_senstype (line 303)
    if     (mean(ismember(ft_senslabel('ant128'),         sens.label)) > 0.8)

Error in ft_datatype_sens (line 138)
ismeg = ft_senstype(sens, 'meg');

Error in ft_checkconfig (line 250)
  cfg.elec = ft_datatype_sens(cfg.elec);

Error in ft_interactiverealign (line 71)
cfg.template   = ft_checkconfig(cfg.template, 'renamed', {'vol',
'headmodel'});

Error in ft_volumerealign (line 691)
      tmpcfg = ft_interactiverealign(tmp cfg);

Is it the same issue as before?  if this issue was fixed, any idea why I'm getting these areas? I'm using field trip version 20160313

Kind Regards,
Ainsley




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


More information about the fieldtrip mailing list