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.
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)
Task = ENVITask('SubsetLabelRaster')
Task.INPUT_RASTER = Raster
Task.Execute
e.Data.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Layer.QUICK_STRETCH = 'linear'
Syntax
Result = ENVITask('SubsetLabelRaster')
Input properties (Set, Get): INPUT_RASTER, OUTPUT_LABELS, 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.
OUTPUT_LABELS (required)
Specify a subset of existing labels from the INPUT_RASTER that will be applied to the OUTPUT_RASTER.
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI and byte data type.
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
Deep Learning 2.2
|
Introduced |
See Also
ENVIDeepLearningRaster