This task builds an object detection raster from an input raster and a vector file indicating features of interest.
This task is part of ENVI Deep Learning, which requires a separate license and installation.
Example
e = ENVI()
File = Filepath('qb_boulder_msi', SUBDIR=['data'], $
ROOT_DIR=e.Root_Dir)
Raster = e.OpenRaster(File)
VectorFile = Filepath('qb_boulder_msi_vectors.shp', SUBDIR=['data'], $
ROOT_DIR=e.Root_Dir)
VecObj = e.OpenVector(VectorFile)
Task = ENVITask('BuildObjectDetectionRasterFromVector')
Task.INPUT_RASTER = Raster
Task.INPUT_VECTOR = VecObj
Task.Execute
e.Data.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('BuildObjectDetectionRasterFromVector')
Input properties (Set, Get): INPUT_RASTER, INPUT_VECTOR, OUTPUT_RASTER_URI
Output properties (Get only): OUTPUT_RASTER
Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.
Methods
This task inherits the following methods from ENVITask. See the ENVITask topic in ENVI Help.
- AddParameter
- Execute
- Parameter
- ParameterNames
- RemoveParameters
Properties
This task inherits the following properties from ENVITask:
COMMUTE_ON_DOWNSAMPLE
COMMUTE_ON_SUBSET
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
See the ENVITask topic in ENVI Help for details.
This task also contains the following properties:
INPUT_RASTER (required)
Specify the input raster.
INPUT_VECTOR (required)
Specify the input vector indicating labeled regions of interest for each class in the input raster. Only polygon records are supported by this task.
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI and byte data type. If INPUT_RASTER is not byte data, then each band will be byte stretched to its minimum and maximum.
OUTPUT_RASTER_URI (optional)
Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER. If you do not specify this property, or set it to an exclamation symbol (!), a temporary file will be created.
Version History
See Also
BuildObjectDetectionRasterFromAnnotation Task, BuildObjectDetectionRasterFromROI Task, ENVIDeepLearningObjectDetectionRaster, TrainTensorFlowObjectDetectionModel Task