Hi, I've been using the matlab scripts to load and save mgh files. I've noticed a difference in the precision in my original volumes and the ones I've saved with matlab. Namely, after saving a volume with matlab and loading it up in tkmedit I notice that everything now has an extra 2 digits of precision (aka. voxels with an intensity of 100 now have an intensity of 100.00).
Is there any way to remedy this small problem? I've used an integer array in matlab, and I've tried to just mri_convert the volume in hopes that it would truncate the values.
I'm only asking because cor2label won't work with the matlab saved volumes. Any help is appreciated. Thanks!
~Jed
you can use
mri_convert -odt uchar
to convert it.
cheers, Bruce
p.s. or you can change the matlab script :)
On Tue, 16 Jan 2007, Jed Jeng wrote:
Hi, I've been using the matlab scripts to load and save mgh files. I've noticed a difference in the precision in my original volumes and the ones I've saved with matlab. Namely, after saving a volume with matlab and loading it up in tkmedit I notice that everything now has an extra 2 digits of precision (aka. voxels with an intensity of 100 now have an intensity of 100.00).
Is there any way to remedy this small problem? I've used an integer array in matlab, and I've tried to just mri_convert the volume in hopes that it would truncate the values.
I'm only asking because cor2label won't work with the matlab saved volumes. Any help is appreciated. Thanks!
~Jed
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu