Raster Color Slices

Use the Raster Color Slices tool to select data ranges and colors to highlight areas of an image. You can save the color slices visualization to a classification or to a shapefile.

Click on any of the following links for details:

You can also write a script to define color slices using the ColorSliceClassification task. Use the GetColorSlices task to open density slice range (DSR) files and to retrieve their data ranges and colors. Use the ExportColorSlices task to define your own color slices and ranges, and to export them to a DSR file.

Create a Raster Color Slice

  1. Generate raster color slices using one of the following:

    • In the Layer Manager, right-click the raster name and select New Raster Color Slice. In the Data Selection dialog, select the input file and band, then click OK.
    • From the Toolbox, select Classification > Raster Color Slices. In the Data Selection dialog, select the input file and band, then click OK.
    • In the Data Manager, right-click a band and select Load Raster Color Slice.

    The Edit Raster Color Slices dialog appears and a Raster Color Slices layer is added to the Layer Manager.

  2. By default, the histogram shows 16 slices using the Rainbow color table. The Histogram Min and Max settings are calculated from the input image. You can change these settings as described in Change Default Color Slices Settings.
  3. Click OK to create the raster color slices. ENVI adds a Raster Color Slice layer to the Layer Manager and loads the layer into the view. Click OK again to close the dialog.

From the Layer Manager, you can show or hide raster color slices in the view as follows:

Edit Color Slices

To change the settings for raster color slices, right-click the Slices folder in the Layer Manager and select Edit Color Slices. The Edit Raster Color Slices dialog appears. To select a color slice to edit, click the table row to highlight it in the histogram, or click the color slice in the histogram to select it in the table row.

To edit the data ranges:

To change colors:

To refine color slices:

Plot controls:

Change Default Color Slice Settings

To edit the settings for raster color slices, click the New Default Color Slices button in the Edit Raster Color Slices dialog. The Default Raster Color Slices dialog appears.

Save and Export Raster Color Slices

To save and restore raster color slices:

To export the raster color slices to a classification image or to a shapefile:

Calculate Class Statistics

You can calculate class statistics for the color slices, including:.

For details, see Class Statistics.

View Metadata

You can view the metadata associated with the raster color slices. Right-click on the layer name in the Layer Manager and select View Metadata to open the View Metadata dialog.

See Also

Classification, Classification Tools, View Metadata