Fct_GLI_2_Color

 

Transform an integer value to an RGB color value using the frame information.  The first call to the function use the data_type, pix_scale, pix_offset parameters to set-up the pixel transformation.  Subsequent calls use the GLI_val parameter.

 

 

Syntax

 

unsigned int  Fct_GLI_2_Color(

          unsigned char data_type,

          float pix_scale,

          float pix_offset

) ;

 

unsigned int  Fct_GLI_2_Color(

          unsigned char data_type,

          float pix_scale,

          float pix_offset,

          float min, float max

) ;

 

unsigned int  Fct_GLI_2_Color(

          int GLI_val

) ;

 

Parameters

 

data_type

Type of the pixel data for this frame.

 

pix_scale

 

 

pix_offset

 

 

min

 

 

max

 

 

GLI_val

integer pixel value.

 

 

Return value

 

This function return an RGB pixel value encode in a32 bit unsigned integer (8 bits red, green and blue).

 

 

Remarks

 

 

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

 

Library:

          sliceO_Structures.lib

 

 

 

Example

 

          ...

 

 

 

          ...

 

 

See also