Data Type Conversion

The program type converts KUIM images from one data type to another. Automatic type conversion in im_read and im_write does most of the work. (see code)

Command Usage

type [options] infile outfile
     [-b]  Convert to BYTE type
     [-s]  Convert to SHORT type
     [-i]  Convert to INT type
     [-f]  Convert to FLOAT type
     [-d]  Convert to DOUBLE type
     [-x]  Convert to COMPLEX type
     [-c]  Convert to COLOR type
     [-p]  Convert to PSEUDO type
     [-j]  Convert to JPEG

Example

header input.im

HEADER Program - KUIM Version 1.0
Image Name = input.im
Image Dimensions = 256,256
Image Type = SHORT
Image Range = [74,255]

type -b input.im output.im
header output.im

HEADER Program - KUIM Version 1.0
Image Name = output.im
Image Dimensions = 256,256
Image Type = BYTE
Image Range = [0,255]