Use this procedure to delete ROIs from within ENVI Classic. The procedure accepts a list of ROIs to delete, or optionally deletes all ROIs.
Syntax
ENVI_DELETE_ROIS [, ROI_IDS] [, /ALL]
Arguments
ROI_IDS (optional)
This optional argument represents the individual ROI IDs to delete. This value is returned from ENVI_GET_ROI_IDS or ENVI_CREATE_ROI.
Keywords
ALL (optional)
Set this keyword to delete all ROIs, in which case you do not use the ROI_IDS argument.
Example
The following code retrieves a list of ROIs to delete.
roi_ids = envi_get_roi_ids()
envi_delete_rois, roi_ids
API Version
4.2