When I was trying to convert a CT scan file's coordinate system into an approximation of the ACPC coordinate system on Fieldtrip MATLAB for a tutorial, there was error prompting that:

Warning:

Cant get default Analyze orientation - assuming flipped

Smoothing by 0 & 8mm..

Error using spm_slice_vol

File too small.

Error in spm_smoothto8bit>smoothto8bit (line 51)

img = spm_slice_vol(V,spm_matrix([0 0 i]),V.dim(1:2),0);

Error in spm_smoothto8bit (line 14)

VO = smoothto8bit(V,fwhm);

Error in spm_normalise (line 151)

VF1 = spm_smoothto8bit(VF,flags.smosrc);

Error in ft_convert_coordsys (line 285)

params = spm_normalise(V2,V1,[],[],[],flags);

I have been trying to realign the anatomical CT scan, but the errors are still there.

By the way, the .nii file of the CT scan seems to be incomplete in the anterior part of the brain, particularly around nasion. Is it possible to remove the partial data so that the file can be correctly read by Fieldtrip?

Does anyone know how to solve this? Thank you so much in advance.

More Yipeng Wang's questions See All
Similar questions and discussions