>  Docs Center  >  ENVI API  >  Image Threshold Procedure
ENVI

Image Threshold Procedure

Image Threshold Procedure

A copy of this file is also available in the \examples\tasks\baseclassexample folder of the ENVI installation path.

PRO ENVIImageThresholdExample, INPUT_RASTER=inputRaster, $
                              OUTPUT_RASTER=outputRaster, $
                              OUTPUT_URI=outputRasterURI, $
                              _REF_EXTRA=refExtra
  COMPILE_OPT IDL2, hidden
   
  ; Get the data to process
  inputData = inputRaster.GetData()
   
  ; Run IMAGE_THRESHOLD
  outputData = IMAGE_THRESHOLD(inputData, _EXTRA=refExtra)
   
  ; Create output raster with result
  outputRaster = ENVIRaster(outputData, URI=outputRasterURI)
  outputRaster.Save
   
END



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us