This task builds an object detection raster from an input raster and a vector file indicating features of interest.

Example


; Start the application
e = ENVI()
 
; Open an input image
File = Filepath('qb_boulder_msi', SUBDIR=['data'], $
  ROOT_DIR=e.Root_Dir)
Raster = e.OpenRaster(File)
 
; Open a vector file
VectorFile = Filepath('qb_boulder_msi_vectors.shp', SUBDIR=['data'], $
  ROOT_DIR=e.Root_Dir)
VecObj = e.OpenVector(VectorFile)
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('BuildObjectDetectionRasterFromVector')
 
; Define inputs
Task.INPUT_RASTER = Raster
Task.INPUT_VECTOR = VecObj
 
; Run the task
Task.Execute
 
; Add the output to the Data Manager
e.Data.Add, Task.OUTPUT_RASTER
 
; Display the result
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
 
; Display the result
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)

Syntax


Result = ENVITask('BuildObjectDetectionRasterFromVector')

Input parameters (Set, Get): ENHANCE_DISPLAY, INPUT_RASTER, INPUT_VECTOR, OUTPUT_RASTER_URI, VISUAL_RGB

Output parameters (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.

Input Parameters


ENHANCE_DISPLAY (optional)

Specify whether to apply an additional small stretch to the processed data to suppress noise and enhance feature visibility. The optional stretch is effective for improving visual clarity in imagery acquired from aerial platforms or sensors with higher noise profiles.

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_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.

VISUAL_RGB (optional)

Specify whether to encode the output raster as a three-band RGB composite (red, green, blue) for color image processing. This ensures consistent band selection from ENVI display types (such as RGB, CIR, and pan) and supports integration of diverse data sources (such as MSI, panchromatic, and VNIR) without band mismatch.

Output Parameters


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.

Methods


Execute

Parameter

ParameterNames

See ENVI Help for details on these ENVITask methods.

Properties


DESCRIPTION

DISPLAY_NAME

NAME

REVISION

TAGS

See the ENVITask topic in ENVI Help for details.

Version History


Deep Learning 2.0

Introduced

See Also


BuildObjectDetectionRasterFromAnnotation Task, BuildObjectDetectionRasterFromROI Task, BuildObjectDetectionRastersFromCOCO Task, ENVIDeepLearningObjectDetectionRaster, TrainDeepLearningObjectDetectionModel Task