Use the Classification to Pixel ROI tool to create pixel-based regions of interest (ROIs) from a classification raster.

This tool is quicker to produce ROIs than the Classification to Polygon ROI tool, but it results in larger ROI file sizes and could result in memory (RAM) issues if file sizes are too big.

You can also write a script to convert classification rasters to pixel ROIs using the ClassificationToPixelROI task.

  1. From the Toolbox, select Classification > Post Classification > Classification to Pixel ROI. The Classification to Pixel ROI dialog appears.
  2. In the Input Raster field, select a classification raster. Perform optional spatial subsetting and/or masking.
  3. Enter an Output ROI filename (.xml) and directory.
  4. To reuse these task settings in future ENVI sessions, save them to a file. Click the down arrow next to the OK button and select Save Parameter Values, then specify the location and filename to save to. Note that some parameter types, such as rasters, vectors, and ROIs, will not be saved with the file. To apply the saved task settings, click the down arrow and select Restore Parameter Values, then select the file where you previously stored your settings.

  5. To run the process in the background, click the down arrow next to the OK button and select Run Task in the Background. If an ENVI Server has been set up on the network, the Run Task on remote ENVI Server name is also available. The ENVI Server Job Console will show the progress of the job and will provide a link to display the result when processing is complete. See ENVI Servers for more information.

  6. Click OK. ENVI creates a separate ROI from each input class.
  7. To view the pixel ROIs, display the input raster in the ENVI view. Then open and display the ROI file over the input raster.

See Also


Classification to Polygon ROI, Classification Tools, Export Classes to Vector Layers, Convert ROIs to Shapefiles