


IMHSITORGB(3IM)        SDSC IMAGE LIBRARY         IMHSITORGB(3IM)



NAME
     ImHsiToRgb - Convert an HSI triplet to an RGB triplet

SYNOPSIS
     #include "im.h"

     void ImHsiToRgb( hsi, rgb )
          float     hsi[3];
          int  rgb[3];


DESCRIPTION
     ImHsiToRgb converts an HSI triplet in _h_s_i to an RGB  triplet
     returned in _r_g_b.

     Maximum and minimum values for the  different  color  values
     are:

           Channel     Minimum   Maximum    Type
8          ________________________________________
          red          0         255       Integer
          green        0         255       Integer
          blue         0         255       Integer
          hue          0.0       360.0     Integer
          saturation   0.0       1.0       Float
          intensity    0.0       1.0       Float

SEE ALSO
     ImIntro (3IM), ImErrNo (3IM), ImRgbToHsi (3IM)

AUTHOR
     Mike Bailey
     San Diego Supercomputer Center

CONTACT
     SDSC consultants, (619)534-5100, consult@y1.sdsc.edu
















9


SDSC               Last change: August 7, 1992                  1



