carta
ConvertImagePixelType(1)

ConvertImagePixelType1

Part of ants registration suite

Usage

ConvertImagePixelType infile.nii out.ext TYPE-OPTION

Overview

ext is the extension you want, e.g. tif. TYPE-OPTION : TYPE

0

: char

1

: unsigned char

2

: short

3

: unsigned short

4

: int

5

: 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).

History

  • Debian 9 (Stretch): the text shown here
  • Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze)

From ants 2.1.0-5 in Debian 9 (Stretch). Parsed by carta from the page's man source.