This task builds a raster than can be used for deep learning purposes, such as classification.
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('BuildDeepLearningRaster')
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('BuildDeepLearningRaster')
Input properties (Set, Get): INPUT_RASTER, INPUT_MODEL, MAX, MIN, 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_MODEL (optional)
Specify the TensorFlow model that will be used with this deep learning raster, to assist with band selection.
MAX (optional)
Specify the maximum value to be considered, also known as the white point. If the array has one value, it applies to all bands, otherwise it must have the same number of elements as the input raster has bands. If not set, the maximum value from INPUT_RASTER will be applied to all bands.
MIN (optional)
Specify the minimum value to be considered, also known as the black point. If the array has one value, it applies to all bands, otherwise it must have the same number of elements as the input raster has bands. If not set, the minimum value from INPUT_RASTER will be applied to all bands.
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 1.0
|
Introduced |
See Also
ENVIDeepLearningRaster