Hello all,

I am converting one .mgz file to another like this:

mri_convert -i a.mgz -o conformed_a.mgz --conform

The data type of a.mgz is float. After the conversion, The conformed_a.mgz is uchar. However, I found that the places surrounding the brain which have 0 grayscale values in the a.mgz are having grayscale value 108 in the confored_a.mgz.
This makes the conformed_a.mgz very whitish compared to the original one.

Is there a way to make the float 0 to a uchar 0?


Thanks.

Yang