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