Escolar Documentos
Profissional Documentos
Cultura Documentos
ENVI uses a graphical user interface (GUI) to provide point-and-click access to image processing
functions. You select menu choices and functions using a three-button mouse.
• If you are using ENVI for Windows with a two-button mouse, you can simulate a "middle"
mouse button press by holding down the Control key and pressing the left mouse button.
Generalized raster data is stored as a binary stream of bytes in either Band Sequential (BSQ), Band
Interleaved by Pixel (BIP), or Band Interleaved by Line (BIL) format.
• BSQ is the simplest format, with each line of data followed immediately by the next line of
the same spectral band. BSQ format is optimal for spatial (X,Y) access to any part of a
single spectral band.
• BIP format provides optimal spectral processing performance. Images stored in BIP format
have the first pixel for all bands in sequential order, followed by the second pixel for all
bands, followed by the third pixel for all bands, etc., interleaved up to the number of pixels.
This format provides optimum performance for spectral (Z) access of the image data.
• BIL format provides a compromise in performance between spatial and spectral processing
and is the recommended file format for most ENVI processing tasks. Images stored in
2
format have the first line of the first band followed by the first line of the second band,
followed by the first line of the third band, interleaved up to the number of bands.
Subsequent lines for each band are interleaved in similar fashion.
ENVI supports a variety of data types: byte, integer, long integer, floating-point, double-precision
floating-point, complex, and double-precision complex.
The separate text header file provides information to ENVI about the dimensions of the image, any
embedded header that may be present, the data format, and other pertinent information. The header
file is normally created (with your input) the first time a particular data file is read by ENVI. You
can view and edit it at a later time using the Edit ENVI Header function under the ENVI File menu.
You can also generate ENVI header files outside ENVI, using a text editor, if desired.
You may have any number of displays open on the screen at any time. There are a wide variety of
other types of ENVI windows you may work with, including scatter plots, spectral profiles and
spectral
Figure 2: ENVI Main image display window with its own internal menus
4
Use the Available Bands List to load both color and gray-
scale images into a display by starting a new display or
selecting the display number from the pulldown list of
displays, clicking on the appropriate radio button, then
selecting the desired bands from the list by clicking on the
band name(s)
The File button on the menu bar at the top of the dialog
provides access to file opening and closing, file information,
and the Cancel button. The Options button provides a
function to find the band closest to a specific wavelength,
allows toggling between full and shortened band names in
the list, setting display border sizes, and "folding" all of the
bands in a single open image into just the image name.
Folding the bands into single image names can also be
accomplished using the Fold button at the bottom of the
dialog.
Start ENVI
To open ENVI, select StartÎProgramsÎENVI 3.4ÎENVI.
The ENVI Main Menu appears when the program has successfully loaded and executed.
Note that on some platforms you must hold the left mouse button down to display the submenus
from the Main Menu.
• Select the file CAN_TMR.IMG from the list and click "OK".
The Available Bands List dialog will appear on your screen (Figure 3). This list allows you to select
spectral bands for display and processing.
Note that you have the choice of loading either a grayscale or an RGB color image.
• Select one of the bands listed at the top of the dialog by clicking on the band with the left
mouse button.
The band you have chosen is displayed in the field marked "Selected Band:".
• To dismiss the dialog, select "Cancel" from the pulldown File menu at the top of the dialog.
8
1. Move the cross-hair around the image (just as you move the zoom indicator box), to see how the
three image profile plots are updated to display data on the new location. The Mouse Button
Descriptions dialog can be used to guide your exploration of these windows.
2. Close the profile plots by selecting FileÎCancel from within each plot window.
9
A dialog that allows you to change the contrast stretch of the displayed image appears (Figure 7).
Two histogram plots display the color or grayscale range of the input image (left) and the output
image after contrast stretching (right). Initially, the input and output histograms reflect the default
stretch applied to the data when the image was displayed.
• The Stretch_Type pulldown menu at the top of the histogram has a variety of contrast-stretching
options. Try applying the following methods described below and observe the results in the
Main window.
• Also, try selecting both Zoom and Scroll from the Histogram_Source pulldown menu and note
the differences in the histograms and stretches.
10
Linear
When images are loaded into the Main window, a 2% linear contrast stretch is applied by default.
• Select EnhanceÎInteractive Contrast Stretching in the main display, then choose Linear
from the pulldown Stretch_Type menu item in the dialog
Note the dotted vertical lines in the input histogram plot--these bars can be repositioned to control
the minimum and maximum value used in the contrast stretch.
• Position the mouse cursor on the red bar and hold down the left mouse button, then drag the
bar from side to side.
Numbers above the plot display the current data value, the number of pixels and the percentage of
pixels that have that value, and the cumulative percentage of pixels with values less than or equal to
the current value.
1. Try positioning the left bar so that approximately 5% of the pixels are selected, and the right
bar so that approximately 95% of the pixels are selected.
2. If OptionsÎAuto Apply On is selected, the stretch will be applied automatically. Otherwise,
click "Apply" to apply the stretch shown in the output histogram plot to the image in the
Main window.
3. You can also position the bars by entering minimum and maximum values in the fields next
to the "Apply" button at the top of the dialog. You can enter either data values or percentages.
4. Enter "4%" in the left box and "96%" in the right box (press Enter after typing each value)
and click "Apply".
The left and right bars will be adjusted and the two text entries updated to display the data values at
4% and 96%, respectively.
Equalize
1. Select Stretch_TypeÎEqualization and note the change in the "Output Histogram" display.
2. If OptionsÎAuto Apply On is selected, the stretch will automatically be applied. Otherwise,
click "Apply" to apply the stretch shown in the output histogram plot to the image in the
Main window.
Gaussian
1. Select Stretch_TypeÎGaussian.
2. Set the Standard Deviation by selecting Options ÎSet Gaussian Stdv.
3. If OptionsÎAuto Apply On is selected, the stretch will automatically be applied. Otherwise,
click "Apply" to apply the stretch shown in the output histogram plot to the image in the
Main window.
4. Click "Cancel" to close the contrast stretching dialog.
11
A dialog will appear that lets you choose two image bands to compare.
2. Select one band for the X axis and another band for the Y axis and click "OK."
You can also use the scatter plot to highlight specific data values in the Main window.
• Place the mouse cursor in the scatter plot window and click and drag with the middle mouse
button.
A ten-pixel-square box will appear in red on the plot. Pixels with the values contained in the box are
highlighted on the image in the Main window as "Image Dancing Pixels".
Choose a Filter
1. Select EnhanceÎFilter and choose the desired filter type from the pulldown filter menu to
apply a filter to the displayed image.
2. Try the different sharpening, smoothing, median, and edge detection filters on the displayed
image.
Display A Second Image and Apply Filter
• Select "New Display" from the Display # button at the bottom of the Available Bands List
dialog to create a second display group, select an image band, and click "Load Band" to load
the image into the second display. Choose FunctionsÎDisplay EnhancementsÎFilter and
select a filter different from that applied to image #1 from the pulldown filter menu.
Dynamic Overlays
ENVI's Multiple Dynamic Overlay feature allows you to dynamically superimpose parts of one or
more linked images onto the other image. Dynamic overlays are turned on automatically when you
link two displays.
• To use the overlay, position the mouse cursor anywhere in either Main window and hold
down and drag with the left mouse button.
A small portion of the linked image will be superimposed on the current image window. The
overlay will appear in either the Main window or the Zoom window.
• To change the size of the overlay area, hold down the middle mouse button and drag the
overlay area until it is the desired size.
13
Select further border points in sequence by clicking the left button again, and close the polygon by
clicking the right mouse button.The middle mouse button deletes the most recent point, or (if you
have closed the polygon) the entire polygon.
When you have finished defining an ROI, it is shown in the dialog's list of Available Regions, with
the name, region color, and number of pixels enclosed (Figure 10).
ROIs can also be defined as polylines or as a collection of individual pixels by selecting the desired
ROI type from the ROI_Type pulldown menu. See the ENVI User's Guide or the hypertext online
help for further discussion of these types of ROI.
• Once you have created the ROI definitions, you can erase them from the display (leaving the
definition in the list) by selecting the ROI from the list and clicking on the "Erase" button.
• Clicking on the "Stats" button allows you to view statistics about the ROI you select.
• Clicking the "Delete" button permanently deletes ROI definitions from the list.
• The other buttons and options under the pulldown menus at the top of the ROI Definitions
dialog let you calculate ROI means, save your ROI definitions, load saved definitions, or
display or delete all the definitions in the list.
Region Of Interest definitions are retained in memory after the ROI Definition dialog is closed,
unless you explicitly delete them. This means the ROIs are available to other ENVI functions even
if they are not displayed.
This allows you to use the scroll and zoom features in your display without losing your annotations.
• To return to the annotation function, select the toggle button for the window you are
annotating.
Leave your annotation on the Main window image as you complete this tutorial.
1. To overlay grid lines on your image, select OverlayÎGrid Lines in the Main display
window.
2. You can adjust the grid lines by setting the line thickness and color and the grid spacing
using the Options pulldown menu.
• When you have added a satisfactory grid, click "Apply" in the Grid Line Parameters dialog.
• Select 24-Bit color or 8-Bit grayscale output, graphics options (including annotation and
gridlines), and borders.
17
If you have left your annotated and gridded color image on the display, both the annotation and grid
lines will be automatically listed in the graphics options.
You can also select other annotation files to be "burned in" to the output image.