Classification to Pixel ROI
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.
- From the Toolbox, select Classification > Post Classification > Classification to Pixel ROI. The Classification to Pixel ROI dialog appears.
- In the Input Raster field, select a classification raster. Perform optional spatial subsetting and/or masking.
- Enter an Output ROI filename (.xml) and directory.
-
To reuse these task settings in future ENVI sessions, save them to a file. Click the down arrow next to the OK button
, select Save Parameter Values, then specify the path 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 saved your settings.
-
You can run the process in the background on your computer or in the background on an ENVI Server (if available). Click the down arrow
next to the OK button and select one of the following:
- Run Task in the Background: Runs the process on your computer. This method does not use an ENVI Server. The job progress will show in the ENVI Job Console's Background Jobs tab.
- Run Task on envi_server_name. Runs the process on the selected ENVI Server. The job progress will show in the ENVI Job Console's envi_server_name tab.
See ENVI Job Console for details on monitoring ENVI Server jobs and viewing results. See ENVI Servers for details on configuring and using an ENVI Server.
- Click OK. ENVI creates a separate ROI from each input class.
- 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