Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  ENVI API  >  ENVI Classic Processing  >  ENVI_ROI_TO_IMAGE_DOIT

ENVI_ROI_TO_IMAGE_DOIT

ENVI_ROI_TO_IMAGE_DOIT

This routine is obsolete and has been replaced with ENVIROIToClassificationTask.

Use this procedure to create a classification image from ROIs. Each input ROI represents a class in the output image.

Syntax


ENVI_DOIT, 'ENVI_ROI_TO_IMAGE_DOIT', CLASS_VALUES=array, FID=file ID, [, /IN_MEMORY], OUT_NAME=string [, R_FID=variable], ROI_IDS=value

Keywords


CLASS_VALUES

Set this keyword to specify the values for the output classes. CLASS_VALUES is an array of long integers specifying the class value for the corresponding ROI_IDS. A value of 0 is reserved for the “Unclassified” class.

FID

Use this keyword to specify the file ID associated with the ROIs. FID is used to get the number of samples and number of lines for the output file. This value is returned from the keyword R_FID in the ENVI_OPEN_FILE procedure. FID is a long integer with a value greater than 0. An invalid file ID has a value of -1.

IN_MEMORY (optional)

Set this keyword to specify that output should be stored in memory. If you do not set IN_MEMORY, output will be stored on disk and you must specify OUT_NAME (see below).

OUT_NAME

Use this keyword to specify a string with the output filename for the resulting data. If you set the keyword IN_MEMORY, you do not need to specify OUT_NAME.

R_FID (optional)

ENVI Classic library routines that result in new images also have an R_FID, or “returned FID.” This is simply a named variable containing the file ID to access the processed data. Specifying this keyword saves you the step of opening the new file from disk.

ROI_IDS

Use this keyword to specify the ROI ID to turn into classes. Each ROI takes the class values specified by CLASS_VALUES. A value of 0 is reserved for the “Unclassified” class. ROI_ID is an array of ROI IDS returned from the function ENVI_GET_ROI_IDS.



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us