biffConvert

[ XITE Reference Manual | XITE home ]

Name

biffConvert - convert image between different pixel types

Syntax

 biffConvert <inimage> <outimage> <pixeltype>
    [<pixeltype>...]

Description

biffConvert reads the input image <inimage>, converts every band to specified pixel type, and writes output image to <outimage>. First pixel type specification is applied to first band, second to second,.. If more bands, the last pixel type specification is applied to the rest of the bands. Pixel types are specified by a pixel type number:

 ub or  3 => convert to unsigned byte
 sb or  4 => convert to signed byte
 us or  5 => convert to unsigned short
 ss or  6 => convert to signed short
 i  or  7 => convert to integer
 r  or  8 => convert to real
 c  or  9 => convert to complex
 d  or 10 => convert to double
 dc or 11 => convert to double complex

Author

Tor Lønnestad, BLAB, Ifi, UiO

Examples

 # convert to real:
 biffConvert mona.img monaReal.img 8

 # convert to byte:
 biffConvert spot.img spotByte.img 3

 # convert 1st to byte, 2nd to integer, 3rd to real:
 biffConvert spot.img spotBIR.img 3 7 8

 # convert first band to byte and short:
 biffConvert mona.img:1:1 monaBS.img 3 5

Id

$Id: biffConvert.c,v 1.37 1997/03/24 10:11:52 svein Exp $