X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



3870 Rate this article:
No rating

ENVI Classic: Save Interpolated Image Displayed in Zoom Window



There are times when ENVI users would like to be able to save the Zoom window image with one of the interpolation methods applied. Currently, there is no interactive way to do this. When the zoom image is saved via File -> Save Zoom As -> Image File, only the standard (non-interpolated) zoom image is saved. This Tech Tip will outline workaround methods to achieve the desired results.

The first workaround for customers on the Windows platform involves just creating a screen capture of the window and pasting it into another document. This is somewhat cumbersome, at best, and doesn't work for UNIX users.

The second solution is more elegant and functional. The user function called "save_zoom_to _generic_formats.pro" will accomplish this by allowing outputs in the following formats: TIFF, BMP, JPEG and PNG. The code for this user function is available from the Exelis VIS User-Contributed Library:

http://www.exelisvis.com/UserCommunity/CodeLibrary.aspx

This program uses the IDL routine "TVRD" to grab a screenshot of the display area for the selected ENVI Zoom window *exactly* as it currently appears. Most of the time this results in a What-You-See-Is-What-You-Get image output to the selected generic format image file. Consequently, any overlays, zoom graphics, crosshairs, annotations, etc. currently visible within the Zoom window will be output to the image file on disk. For example, the Zoom window graphics boxes in the lower-left hand corner will be output in their current color unless you turn them off by right-clicking within the Zoom window and from the context menu select "Toggle > Zoom Graphics Off". Furthermore, there can be problems using TVRD when backing store is provided by the window system (from the ENVI main menu "File > Preferences > Display Defaults > Display Retain Value" is set to 1). Having ENVI provide the backing store (set Display Retain Value to 2) ensures that the window contents will be read properly. In addition, there can be issues reading from an iconified or hidden window on X Windows display devices. For more information consult the "Unexpected Results Using TVRD with X Windows" section of the Reference Guide entry for the TVRD routine in the IDL documentation.

Usage:
This program must be called directly from an interactive session of ENVI as an"ENVI User Function". The most logical way to add this program to an ENVI installation is by editing the "display.men" ASCII text file, in the menu directory under the ENVI installation, and inserting a menu selection item line in the following manner:
    1 {Save Zoom As}
      2 {Image File...} {output zoom} {disp_event}
      2 {Generic Format...} {} {save_zoom_to_generic_formats} *** add this line




                         
Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »