Gamma LAT: Reference Manual


hsi_color_scale

ANSI-C program: hsi_color_scale.c

NAME
hsi_color_scale - Generation of color scale image generated with program ras_to_hsi.

SYNOPSIS
hsi_color_scale <file_out> [nval] [chip_width] [gap] [height]

<file_out> output (24-bit) SUN raster or BMP image file
[nval] number of discrete color values to display
  0: continuous color wheel (default)
[chip_width] width of color chips (default=8)
[gap] number of pixels between color chips (default=2)
[height] height of color scale (default=chip_width)

EXAMPLES

hsi_color_scale hsi.color_scale.ras 0 0 0 16

generates a continuous color scale (24-bit SUN raster) with height=16.

hsi_color_scale hsi.color_scale.bmp 4 8 2 8

Generates a color scale (24-bit BMP format image) with 4 different colors, height=8.

INSTALLATION
Source code hsi_color_scale.c in $LAT_HOME/src. For compilation adjust and use Makefile: Executable version hsi_color_scale in $LAT_HOME/bin

DESCRIPTION
hsi_color_scale supports the generation of a color scale for a hue/saturation/intensity (HSI) image generated using the program ras_to_hsi. The output is a 24-bit image with either a continuous color wheel or a discrete number of color chips separated by black spaces.The dimensions of the color chips and gaps may be selected to facilitate the preparation of a color scale useful image annotation in reports and presentations.

SEE ALSO
ras_to_hsi, display.h, rasterfile.h, bmp_image.h.


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2005.
UW, CW, last change 7-Oct-2005.