Does this happen on every volume or just with this one. If just this one, then it is probably a problem with the volume itself and not the code
On 1/25/2023 9:15 PM, Siamak Sorooshyari wrote:
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
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer