InverseMNFTransform Task
This task transforms the bands from a previous Forward Minimum Noise Fraction to their original data space.
Example
; Start the application
e = ENVI()
; Open an input file from a previously-run ForwardMNFTransform. $
; Replace the filename and path below with your file.
File = Filepath('my_file.sta', Subdir=['mydir']
Raster = e.OpenRaster(File)
; Retrieve a statistics file from a previously-run ForwardMNFTransform $
; task of the above file. Replace the filename and path below with your $
; file.
StatsFile = Filepath(‘my_statsfile.sta', Subdir=['mydir'])
; Get the task from the catalog of ENVITasks
Task = ENVITask('InversMNFTransform')
; Define inputs
Task.INPUT_RASTER = Raster
Task.INPUT_STATS_FILE = StatsFile.sta
; Run the task
Task.Execute
; Get the data collection
dataColl = e.Data
; Add the output to the data collection
dataColl.Add, Task.OUTPUT_RASTER
; Display the result
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('InverseMNFTransform')
Input properties (Set, Get): INPUT_RASTER, INPUT_STATS_FILE, OUT_NCOMPONENTS, 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:
Properties
This task inherits the following properties from ENVITask:
This task also contains the following properties:
INPUT_RASTER (required)
Specify a raster on which to perform an MNF transform.
INPUT_STATS_FILE (optional)
Specify an input .sta
file from a previous Forward MNF Transform.
OUT_NCOMPONENTS (optional)
Provide the number of forward MNF components to use for the inverse transform. If left blank, all components are used.
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI.
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
ENVI 6.0 | Introduced |
API Version
4.2