pseudo2rgb

[ XITE Reference Manual | XITE home ]

Name

pseudo2rgb - convert band + colortable to rgb image

Syntax

 #include <xite/convert.h>

 int pseudo2rgb( IBAND band, IMAGE img,
    Color_tab coltab, int ctlen );

Description

pseudo2rgb converts the input band to a three band rgb output image according to the specified color table.

Restrictions

Accepts only UNS_BYTE images. All bands of the output image should have (at least) the same size as the input band.

Return value

 0 => ok
 1 => bad pixel type input band
 2 => less than 3 bands in output image
 3 => bad pixel type in output image
 4 => output image less than input band
 5 => ctlen has bad value (<0 or >256)

Author

Tor Lønnestad, BLAB, ifi, UiO

Revised

Svein Bøe

Id

$Id: pseudo2rgb.c,v 1.24 1997/01/09 16:37:13 svein Exp $