ConvertImagePixelType - part of ANTS registration suite
ConvertImagePixelType infile.nii out.ext TYPE-OPTION
- ext is the extension you want, e.g. tif. TYPE-OPTION : TYPE
- : char
- : unsigned char
- : short
- : unsigned short
- : int
- : unsigned int
- Note that some pixel types are not supported by some image formats. e.g.
- int is not supported by jpg.
- 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).
|October 2017||ConvertImagePixelType 2.2.0|