Medical Imaging Interaction Toolkit
2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
|
MitkImageTypeConverter is a command-line utility provided by the Medical Imaging Interaction Toolkit (MITK) for converting the scalar pixel type of an image to a specified type. It supports common scalar data types such as int
, float
, uchar
, etc., and works on both 2D and 3D images.
The tool is useful for standardizing image data types before further processing or analysis, especially when specific types are required by downstream tools.
Argument | Short | Type | Description |
---|---|---|---|
--input | -i | File | Path to the input image file. |
--output | -o | File | Path to the output image file. |
--type | -t | String | Scalar data type to convert to. See supported types below. |
Argument | Short | Description |
---|---|---|
--help | -h | Show help text only |
The following scalar types are supported via the --type
argument:
int
– signed integeruint
– unsigned integershort
– signed short integerushort
– unsigned short integerchar
– signed charuchar
– unsigned charfloat
– single-precision floatdouble
– double-precision floatnone
– no conversion is performedIf
none
is specified, the input is not converted and no output is produced.
If an unsupported type is given, the tool defaults to double
.
Result:
The input image is converted to type unsigned short
and saved as output.nrrd
.
Result:
The scalar type of the image is converted to float
.
Result:
Displays usage and options information.
.nrrd
, .nii
, .mhd
, .mha
).char
, uchar
).