[FieldTrip] ft_volumereslice problem

Elena Orekhova Elena.Orekhova at neuro.gu.se
Fri Apr 27 11:07:18 CEST 2012


Hi,
I try to reslice MRI from [157 204 203] to [256 256 256]
I do:

cfg             = [];
cfg.dim = [256 256 256];
mri_resl = ft_volumereslice(cfg, mri);

but I get the  error (see below)

I use latest FT version with
Mac OS 10.6.8 and Matlab 7.13.0.564 (R2011b)

Thanks in advance
Elena

*********************
the input is volume data with dimensions [157 204 203]
reslicing from [157 204 203] to [256 256 256]
the input is volume data with dimensions [157 204 203]
the input is volume data with dimensions [256 256 256]
selecting subvolume of 0.0%
reslicing and interpolating anatomy
interpolating
Attempted to access sel(1); index out of bounds because numel(sel)=0.

Error in ft_sourceinterpolate>my_interpn (line 467)
  ft_progress(sel(1)/num, 'interpolating %.1f%%\n', 100*sel(1)/num);

Error in ft_sourceinterpolate (line 376)
          av( sel) = my_interpn(fv, ax(sel), ay(sel), az(sel),
          cfg.interpmethod, cfg.feedback);

Error in ft_volumereslice (line 147)
reslice = ft_sourceinterpolate(tmpcfg, mri, reslice);



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


More information about the fieldtrip mailing list