Check the size of the image being segmented. There was a bug in the latest
updates that causes .nii image data to be lost under certain circumstances.
If your data are .nii, then the files may have been truncated. For
solutions, see the email that I have just sent to the list.
Best regards,
-John
On Wednesday 02 January 2008 23:48, Lynne Gauthier wrote:
> Dear SPMers,
>
> I have recently encountered an error with spm_sample_vol. It says:
>
> ??? Error using ==> spm_sample_vol
> Cant open image file.
>
> Error in ==> spm_preproc at 131
> f(:,:,z) = spm_sample_vol(V,x0,y0,o*z0(z),0);
>
> I have run this code successfully on image files that now give me this
> error, so I do not believe there is anything wrong with my images. I have
> reinstalled SPM5 with all updates. Any ideas why the spm_sample_vol.mexmac
> file no longer works and suggestions for troubleshooting this problem are
> greatly appreciated. Thank you.
>
> Lynne
|