Session 02 Introductrion To ENVI
Session 02 Introductrion To ENVI
In order to run this tutorial, you must have ENVI installed on your computer.
File Description
can_tmr.img Cañon City, CO, TM Data
can_tmr.hdr ENVI Header for Above
The File menu at the top of the Available Bands List dialog provides access to file
opening and closing, file information, and canceling the Available Bands List. The Options menu provides a way to find
the band closest to a specific wavelength, shows the currently displayed bands, allows toggling between full and
shortened band names in the list, and provides the capability to fold all of the bands in a single open image into just the
1
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
image name. Folding and unfolding the bands into single image names or lists of bands can also be accomplished by
clicking on the + (plus) or – (minus) symbols to the left of the filename in the Available Bands List.
Right-clicking in the Available Bands List displays a menu with access to different functions. The right-click menu
selections will differ depending on what item is currently selected in the Available Bands List.
1. Select TM Band 4. The band you have chosen is displayed in the field marked Selected Band.
2. Click the Gray Scale radio button then click Load Band to load the image into a new display. Band 4 will be
loaded as a gray scale image.
Generalized raster data are 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 BIL 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.
2
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
Image window
You can choose which combinations of windows appear on the screen by right-clicking on any image window to display
the right-click menu and selecting a style from the Display Window Style submenu. Use the ENVI main menu bar
File Æ Preferences Æ Display Defaults tab to change the default settings for which windows you wish to display and
where you wish to position them.
You may have many display groups open on the screen at any time. A wide variety of other types of ENVI windows may
also be displayed, such as scatter plots, spectral profiles, spectral plots, and vector windows.
All windows can be resized by grabbing and dragging a window corner with the left mouse button.
1. Resize the Image window to be as large as possible (until the Scroll window disappears).
2. Now, make the Image window smaller than the full extent of the image data (the Scroll window will reappear).
3. Resize the Zoom window and notice how the outlining box changes in the Image window.
3
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
Zoom Box
The Display group menu bar provides access to many ENVI features related to the images in the display group. By
default, it appears at the top of the Image window. If you have chosen to display only the Scroll and Zoom windows or
just the Zoom window, the menu bar will appear at the top of the Zoom window.
The Zoom box (the colored box in the Image window) indicates the region that is displayed in the Zoom window.
1. Place the mouse cursor in the Zoom box in the Image window, hold down the left mouse button, and move the
mouse. The Zoom window is updated automatically when the mouse button is released.
2. Place the cursor anywhere in the Image window (outside of the Zoom box) and click the left mouse button to
move the magnified area instantly. If you click, hold, and drag the left mouse button in this fashion, the Zoom
window is updated as you drag.
3. Click once in the Zoom box in the Image window and use the arrow keys on your keyboard to move the box. To
move several pixels at a time, hold down the Shift key while using the arrow keys.
You can choose to have scroll bars displayed in the Image window. These scroll bars provide a way to move through the
Scroll window, allowing you to select which portion of the image appears in the Image window.
1. Right-click in the Image window and select Toggle Æ Display Scroll Bars.
2. To have scroll bars appear in the Image window by default, use the ENVI main menu bar to select the File Æ
Preferences Æ Display Defaults tab. Set the Image Window Scroll Bars toggle to Yes.
4
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
Subsampling Factor
Image Box
1. Place the mouse cursor inside the Image box, hold down the left mouse button, drag to the desired location, and
release to reposition the portion of the image shown in the Image window. The Image window is updated
automatically when the mouse button is released.
2. Click anywhere within the Scroll window using the left mouse button to instantly move the selected Image
window area. If you click, hold, and drag the left mouse button in this fashion, the Image window will be updated
as you drag (the speed depends on your computer resources).
3. Click in the Image box and press the arrow keys on your keyboard. To move the image in larger increments, hold
down the Shift key while using the arrow keys.
Zoom Level
Zoom controls
There are three Zoom controls (red by default) in the lower left corner of the Zoom window. These control the zoom
factor and the crosshair cursor in both the Zoom and Image windows.
1. Place the mouse cursor in the Zoom window and click the left mouse button to reposition the magnified area
(displayed in the Zoom box in the Image window) by centering the zoomed area on the selected pixel.
2. Click and hold the left mouse button in the Zoom window while dragging. This causes the Zoom window to pan
within the Image window.
5
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
3. Click the left mouse button on the graphic in the lower left corner of the Zoom window to zoom out by a factor
of 1.
4. Using a three button mouse, click the middle mouse button on the graphic to zoom out by a factor of 2.
5. Click the right mouse button on the graphic to return the Zoom window to the default zoom factor.
6. Click the left mouse button on the graphic to zoom in by a factor of 1.
7. Click the middle mouse button on the graphic to zoom in by a factor of 2.
8. Click the right mouse button on the graphic to return the Zoom window to the default zoom factor.
9. Click the left mouse button on the graphic to toggle the crosshair cursor in the Zoom window on or off.
10. Click the middle mouse button on the graphic to toggle the crosshair cursor in the Image window on or off.
11. Click the right mouse button on the graphic to toggle the Zoom box in the Image window on or off.
12. The Zoom window can also have optional scroll bars, which provide an alternate method for moving through the
Zoom window. Right-click in the Zoom window and select Toggle Æ Zoom Scroll Bars. To have scroll bars
appear on the Zoom window by default, use the ENVI main menu bar to select the File Æ Preferences Æ
Display Defaults tab. Set the Zoom window Scroll Bars toggle to Yes.
When the Mouse Button Descriptions dialog is open, the mouse button assignments for each ENVI display or graphics
window are shown in the dialog when the cursor is poised over a display group window. In the dialog, MB1 is the left
mouse button, MB2 is the middle mouse button, and MB3 is the right mouse button.
6
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
7
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
You can also use the scatter plot to highlight specific data values in the Image window.
1. Place the mouse cursor in the Scatter Plot window and click and drag with the middle mouse button. Pixel values
contained in a ten-pixel by ten-pixel box surrounding the crosshair will be highlighted in red on the scatter plot
Pixels with the values contained in the box are highlighted in the Image window and appear to dance.
2. From the Scatter Plot menu bar, select File Æ Cancel to close the Scatter Plot window.
Dynamic Overlays
ENVI’s multiple dynamic overlay feature allows you to dynamically superimpose parts of one or more linked images onto
another image. Dynamic overlays are turned on automatically when you link two displays, and may appear in either the
Image window or the Zoom window.
1. Click the left mouse button in one of the Image windows to see the image displays overlaid on one another.
2. To create a smaller overlay area, position the mouse cursor anywhere in either Image window (or Zoom window)
and hold down and drag with the middle mouse button. Upon button release, the smaller overlay area is set
and a small portion of the linked image will be superimposed on the current Image window.
3. Click the left mouse button in the Image window and drag the small overlay window around the image to see the
overlay effects.
4. Resize the overlay area at by clicking and dragging the middle mouse button until the overlay area is the desired
size.
8
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
9
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
5. You can continue to change the annotation’s properties and position by changing the fields in the dialog box or
dragging the text or symbol while holding down the left mouse button. When you are satisfied with the
annotation, click the right mouse button to fix the annotation in position.
6. You can save your image annotation by selecting File Æ Save Annotation from the Annotation Text dialog
menu bar. If you do not save your annotation in a file, it will be lost when you close the Annotation Text dialog
(you will be prompted to save the annotation if you close without first saving). You can also restore saved
annotation files by selecting File Æ Restore Annotation from the Annotation Text dialog menu bar.
10
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
7. To edit an annotation element that has already been set in the image, select Object Æ Selection/Edit from the
Annotation Text dialog menu bar.
8. Draw a box around the annotation you wish to edit by clicking and dragging with the left mouse button. When
the handle reappears, click and drag the handle and annotation to move and configure the item just as you would
a new annotation.
9. To suspend annotation operations and return to normal ENVI functionality temporarily, select the Off radio
button at the top of the Annotation Text dialog. 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 radio button in the
Annotation Text dialog for the window you are annotating.
10. Leave your annotation on the Image window as you complete this tutorial.
11
ENVI Tutorial: Introduction to ENVI
Tutorial: Introduction to ENVI
2. Select 24-Bit Color or 8-bit (gray scale) output.
3. Click the Change Graphic Overlay Selections button to select graphics options (including annotation and
gridlines)
4. Set border options.
5. Select output to Memory or File using the desired radio button. If output to File is selected, enter an output
filename.
6. If you select other graphics file formats from the Output File Type drop-down which, by default is set to ENVI,
your choices will be slightly different.
7. Click OK to save the image. This process saves the current display values for the image, not the actual data
values.
Exiting ENVI
End the ENVI session by selecting File Æ Exit from the ENVI main menu, then click OK to terminate ENVI when
prompted.
12
ENVI Tutorial: Introduction to ENVI