.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH CONVERTIMAGEPIXELTYPE "1" "September 2017" "ConvertImagePixelType 2.1.0" "User Commands" .SH NAME ConvertImagePixelType \- part of ANTS registration suite .SH SYNOPSIS .B ConvertImagePixelType \fI\,infile.nii out.ext TYPE-OPTION\/\fR .SH DESCRIPTION .IP ext is the extension you want, e.g. tif. TYPE\-OPTION : TYPE .TP 0 : char .TP 1 : unsigned char .TP 2 : short .TP 3 : unsigned short .TP 4 : int .TP 5 : unsigned int .TP Note that some pixel types are not supported by some image formats. e.g. int is not supported by jpg. .IP You can easily extend this for other pixel types with a few lines of code and adding usage info. The image intensity will be scaled to the dynamic range of the pixel type. E.g. uchar => 0 (min), 255 (max).