You can use the nifti functions to get at the data.
Nii=nifti('y_XXX.nii');
Val=squeeze(Nii.dat(i,j,k,1,:));
There's no function for converting the y_XXX.nii back to the old format.
Best regards,
John
SPM Anonymous <[log in to unmask]> wrote:
>Hello,
>I'm trying to work with the deformation fields obtained by spm12 and the segmentation or normalization module.
>The resulting y_-files should be the same of both functions? I'm a bit surprised that my y_-files have the deformation
>information in the 5th dimension. Is there a possibilty to load them directly with spm_vol and spm_read_vols ? or do I
>have to split them before?
>
>Another question:
>How to I convert the y_ data to the deformation data I obtain by the seg8 files.
>
>Thanks in advance
>
>Andi
|