Go to the USGS Home Page

USGS MIPS Colorcode Documentation






This program is one of the X Windows applications that can be executed under the Applications pull-down menu in VISTA. COLORCODE allows a user to interactively color-code a black and white image . In the color-coding of an image, DN s are assigned colors based on user input. This interaction between the user and COLORCODE/Vista does not change the DNs in the original image but allows the user to see the color-coding of the image on the screen.

Once a color-code is found that is satisfactory to the user, stretches  for the red, green and blue channels can be viewed and saved(see the STRETCH option under the Show pull-down menu and the Save Stretches option under the File pull-down menu in VISTA). With these stretches, the program APPLYSTR can then be used to create the images necessary for the creation of a color composite. When created, this color composite will then be identical to the color-code as seen on VISTA. Note that the image to be color-coded must be loaded into VISTA before executing this application.

 

Options

This pull-down menu allows the user to select options used in color-coding an image. There are currently two modes in which an image can be color-coded, these are the automatic and manual color-coding. For more information on any of these two color-coding options, select the apropriate link below.

Along with selecting one of these options, the user may also define a minimum and maximum dn range to be used in the color-coding process.

 

Min/Max Dn Range

This dialog box will appear with two boxes used as input for a minimum dn and maximum dn values. These options allow the user to define min and max values for the image instead of using the default one and ninety nine percent values automatically selected by the program. The min and max values are used by the automatic options to determine what DN ranges actually get color coded. All DN values less than the MIN or greater than the MAX values are assigned black and white, respectively. A button will also be displayed that allows the user to select whether to use the current min/max values as defaults for the next image. These defaults will be used for color-coding other images that can be loaded after the current image.

 

Automatic Color-Coding Option

This option allows the user to automatically color-code an image. Automatically color-coding an image, allows the user to interactively color-code the entire image at once.

Method

This selection box allows the user to select the method to use in the color-coding of the image.

Table

This selection box allows the user to select the color table to be used in assigning colors.

Number of Colors

Using the left and right arrow buttons, the user may select the number of colors to be used in the color-coding of an image. The sliding box may also be selected and moved left and right where moving it to the left decreases the number of colors and vice-versa.

Starting Color

Using the left and right arrow buttons, the user may select the color within the table that will be assigned to the min dn value. As seen in the color table, colors at the beginning of the color table are assigned to dn closest to the min dn while dns closest to the max dn end are assigned colors at the end of the color table.

Apply

Selecting this button allows COLORCODE to apply the current settings to the image.

Color Table

This color table is used as a reference to the user. It charts the colors currently associated with each dn value in the image. For an unsigned 8-bit image, these values start at 0 on the left(black in color) and end with 255 on the right end of the table(white in color) with shades of grey inbetween. Once a color is applied to the image, this table is updated with the color applied to the dn values reflecting the current colors being used in the color-code.

 

Manual Color-Coding Option

This option allows the user to color-code an image specifically on a DN by DN basis. Manually color-coding an image, allows the user to select a color to be assigned to a user selected DN or DN range. To manually color-code an image, the user first selects a color to be applied to the image; then defines a DN or DN range to color-code; finally applies the color to the image. If the user changes their mind on the color that has just been applied, selecting the Normalize button with the same DN or DN range in the Range input box will return the affected dns back to their original DN values.

 

Exiting Colorcode

Selecting the "Exit" item from the file pull-down menu will cause this program to terminate.

See Also

Applystr 
Export 
Vista 
U.S. Department of the Interior | U.S. Geological Survey | Jobs
Home | Search | Disclaimers & Privacy Web Rings
Send comments to webman@TerraWeb.wr.usgs.gov
URL:
Last Modified: Thu Oct 31 15:08:24 MST 2002
FirstGov: Your First Click to the U.S. Gov ernment