Try adding "-odt float" to the mri_convert command-line.
doug
Luis Lafer-Sousa wrote:
We have anatomical NHP data that we unpack and preprocess using freesurfer and fsl (using Sebastian's scripts). An end product is a skull stripped brain in .mgz format, that I then convert to .nii using mri_convert. I am trying to use this to register to a McLaren template using jip-align, but always get an error:
Error: the Nifti data storage type 0 is not supported.
The only difference I have noticed between our files and files that successfully register are, when using mri_info:
type: UCHAR (0) instead of type: FLOAT (3)
Pulling up the .nii files in MatLab, I get the following:
castor = load_nii('091017Castor_SkullStripped_unregistered.nii')
castor =
hdr: [1x1 struct] filetype: 2 fileprefix: '091017Castor_SkullStripped_unregistered' machine: 'ieee-le' img: [256x256x256 uint8] original: [1x1 struct]castor.filetype
ans =
2castor.hdr.hist
ans =
descrip: 'FreeSurfer Aug 11 2009' aux_file: '' qform_code: 0 sform_code: 0 quatern_b: 0 quatern_c: 0.7071 quatern_d: -0.7071 qoffset_x: 116.0951 qoffset_y: -115.1852 qoffset_z: 143.2094 srow_x: [-1 0 0 116.0951] srow_y: [0 0 1 -115.1852] srow_z: [0 -1 0 143.2094] intent_name: '' magic: 'n+1' originator: [139.9049 116.1852 112.7906 -3328 13572] rot_orient: [1 3 2] flip_orient: [3 0 3]castor.hdr
ans =
hk: [1x1 struct] dime: [1x1 struct] hist: [1x1 struct]Any ideas why we are getting this error? Or if I should be posting the problem in a differen't forum?
Thanks,
Luis _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer