This task builds a new deep learning label raster using a subset of existing labels in another raster. This is useful for removing confusing classes or reusing already-labeled data for a new project.

Example


; Start the application
e = ENVI()
 
; Open an input file
File = Filepath('qb_boulder_msi', Subdir=['data'], $
  Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
 
; Get the task from the catalog of ENVITasks
Task = ENVITask('SubsetLabelRaster')
 
; Define inputs
Task.INPUT_RASTER = Raster
 
; 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)
Layer.QUICK_STRETCH = 'linear'

Syntax


Result = ENVITask('SubsetLabelRaster')

Input parameters (Set, Get): INPUT_RASTER, OUTPUT_LABELS, OUTPUT_RASTER_URI

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


INPUT_RASTER (required)

Specify the input raster.

OUTPUT_LABELS (required)

Specify a subset of existing labels from the INPUT_RASTER that will be applied to the OUTPUT_RASTER.

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.

Output Parameters


OUTPUT_RASTER

This is a reference to the output raster of filetype ENVI and byte data type.

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

Introduced

See Also


ENVIDeepLearningRaster