Back to the main page.

Bug 785 - ft_volumesegment is giving me an error message

Status CLOSED FIXED
Reported 2011-06-29 10:04:00 +0200
Modified 2011-07-13 14:46:59 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P1 normal
Assigned to: Jörn M. Horschig
URL:
Tags:
Depends on:
Blocks:
See also:

Lilla Magyari - 2011-06-29 10:04:15 +0200

Hi, the anatomical processing in MNE pipeline starts with the following code: mri6 = ft_read_mri('~/NCLAssis/FieldTripAnalysis/tutorial/meg_mri_data/Subject01.mri'); %this is the tutorial data cfg=[]; cfg.resolution = 1; cfg.dim = [256 256 256]; mrirs6 = ft_volumereslice(cfg,mri6); cfg = []; cfg.coordsys = 'ctf'; cfg.output = {'skullstrip' 'brain'}; seg6 = ft_volumesegment(cfg, mrirs6); But here, I get this error message: the input is volume data with dimensions [256 256 256] ??? Error using ==> strcmp Inputs must be the same size or either one can be a scalar. Error in ==> ft_volumesegment at 235 needtpm = any(strcmp(cfg.output, {'tpm' 'brain' 'skullstrip'}));


Jörn M. Horschig - 2011-06-29 10:19:57 +0200

yeppa, this is my fault, I'll fix it asap - 1minute ;)


Jörn M. Horschig - 2011-06-29 10:22:37 +0200

done, sorry for the inconvenience


Robert Oostenveld - 2011-07-13 14:46:59 +0200

changed the status for a whole bunch of resolved bugs to CLOSED