problem with volume_segment
r.oostenveld at FCDONDERS.RU.NL
Mon Apr 21 16:56:47 CEST 2008
Fieldtrip makes use of SPM2 (i.e. SPM version 2) for the
segmentation. The segmentation is then used to construct a volume
There are some incompatibilities between SPM2 and later versions.
Please check that you have the correct version of SPM.
For segmenting, a temporary file is written to disk and then SPM is
called. Although I am not an expert on SPM, the error message "???
Cant map image file" seems to indicate that there is a problem with
reading the temporary file. You can use the matlab debugger to stop
on the line where you encounter the problem and look at the problem
in more detail.
On 17 Apr 2008, at 19:08, Luis Morán wrote:
> Hi all!!
> I'm working on the tutorial "Applying beamforming techniques in the
> frequency domain". Whe I've tried to run next lines:
> mri = read_fcdc_mri('Subject01.mri');
> cfg = ;
> cfg.template = 'C:\Users\Luisiyo\Documents\Teleco\Beca GBT
> cfg.name = 'segment';
> cfg.write = 'yes';
> cfg.coordinates = 'ctf';
> [segmentedmri] = volumesegment(cfg, mri);
> I've got the following errors:
> performing the segmentation on the specified volume
> ??? Cant map image file.
> Error in ==> spm_smoothto8bit>smoothto8bit at 51
> img = spm_slice_vol(V,spm_matrix([0 0 i]),V.dim(1:2),0);
> Error in ==> spm_smoothto8bit at 14
> VO = smoothto8bit(V,fwhm);
> Error in ==> spm_segment>get_affine_mapping at 233
> VFS = spm_smoothto8bit(VF(1),aflags.smosrc);
> Error in ==> spm_segment>init_sp at 567
> MM = get_affine_mapping(VF,PG,flags.affreg);
> Error in ==> spm_segment at 91
> SP = init_sp(flags.estimate,VF,PG);
> Error in ==> volumesegment at 250
> Could anyone help me??
> Thank you in advance for any help you can give
> Luis Morán
> The aim of this list is to facilitate the discussion between users
> of the FieldTrip toolbox, to share experiences and to discuss new
> ideas for MEG and EEG analysis.
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
More information about the fieldtrip