RESETMAP

Purpose:

Sets color shading to a specific range.

Syntax:

RESETMAP(cmap, lo, hi)

cmap

-

Optional. An array specifying an RGB colormap. Defaults to the current colormap

lo

-

Optional. A real, the low value of the color range.

hi

-

Optional. A real, the high value of the color range.

Returns:

Nothing. Re-colors all image windows.

Example:

rgbmap = {{1, 0, 0},

          {0, 1, 0}, 

          {0, 0, 1}} 

 

resetmap(rgbmap)

 

defines a colormap that consists of only three colors, pure red, pure green and pure blue. All windows containing an image are updated with this colormap.

Remarks:

To create a Worksheet that automatically restores the RGB colormap upon loading, try the following:

 

1. Save the colormap to a variable:

 

cmap = getcolormap() 

 

2. Define the macro $INITWKS that is automatically run when the Worksheet is loaded:

 

#define $initwks resetmap(cmap) 

 

3. Save the Worksheet.

 

The Worksheet will automatically restore the saved colormap when loaded.

 

The SAVECMAP routine performs the above steps.

See Also:

COLORBAR

FOCUS

GETCOLORMAP

SAVECMAP

SETCOLORMAP