Back to the main page.

Bug 1741 - ft_read_mri: SPM2 added by default for .mnc volumes

Reported 2012-09-25 15:01:00 +0200
Modified 2012-11-29 09:12:38 +0100
Product: FieldTrip
Component: external
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Stephen Whitmarsh - 2012-09-25 15:01:28 +0200

Is this neccecary? Or can we 'upgrade' to SPM8 as a default? Are mnc volumes not supported by SPM8 as the code seems to suggest? Jan-Mathijs: do you know more about this? elseif strcmp(mriformat, 'minc') if ~(hasspm2 || hasspm5) fprintf('the SPM2 or SPM5 toolbox is required to read *.mnc files\n'); ft_hastoolbox('spm2',1); end % use the functions from SPM hdr = spm_vol_minc(filename); img = spm_read_vols(hdr); transform = hdr.mat;

Jan-Mathijs Schoffelen - 2012-09-26 11:52:09 +0200

only SPM2 can read .mnc volumes. If you explicitly specify this in your configuration, FT switches to using SPM8; please replace .mnc with .nii. Then it will work.

Stephen Whitmarsh - 2012-09-26 12:26:19 +0200

with replace you mean rename?

Jan-Mathijs Schoffelen - 2012-09-26 12:27:17 +0200

It seems that you call the function with = 'yyy.mnc', indeed rename this into cfg.xx='yyy.nii'

Jan-Mathijs Schoffelen - 2012-10-24 10:46:25 +0200

most likely a user error