Hey Everyone,
I am getting NAN values in the inverse deformation file (iy_*.nii) when I perform Segmentation in SPM. Note, that the deformation field (y_*.nii) file does not contain any NAN values but the iy_*.nii file does. When I tried to find the source of this problem, I realized the spm_bsplins function (at line 473 of the function spm_preproc_write8.m) gives NAN values at 3 rightmost columns and 3 bottom rows. I checked none of the inputs given to the spm_bsplins function have NAN values, it's something in this function that gives the output as NANs. This function may use a C compiler, hence the code for this function is not present in the MATLAB file. Can anyone help me understand why am I getting these NAN values in the iy_*.nii file.
Thank you in advance.
Best,
Pratik Jain
|