External Email - Use Caution
Dear FreeSurfer,
I am using the FieldTrip software to process MEG data, it involves my using the function ft_read_mri() in MATLAB to read in the anatomical MRI file. I have tried feeding into this function a .nii.gz as well as the unzipped .nii version.
In the latter case I get an error:
ERROR: D:\...\anat\sub-0249_ses-01_run-1_T1w.nii, read in 21626880 voxels, expected 10813440
I contacted the FieldTrip folks and they mentioned that it's a FreeSurfer issue. I think I've isolated the issue to the load_nifti.m file with the "nitemsread" variable and "nvoxels" variables not matching in value. I am not clear why this would happen, how can this be fixed?
Best, Siamak