Workshop1 Envi: Visualisation and Exploration of Landsat8 Image BY Hedia Chakroun 2ghe - Software Installation
Workshop1 Envi: Visualisation and Exploration of Landsat8 Image BY Hedia Chakroun 2ghe - Software Installation
BY
HEDIA CHAKROUN
2GHE
-----------------------------------------------------------
Software installation
Version Envi 4.5
Installer le logiciel Envi
Question on licence : Answer No , then click on Finish
Copy : D:\LOGICIELS\ENVI4.7\License.dat
C:\Program Files (x86)\ITT\License
WARNING : this workshop has been adapted by H. Chakroun from the original
ENVI labs by P. Haverkamp & S. Hogan ( University of California Davis)
of bytes in either Band Sequential (BSQ), Band Interleaved by Pixel (BIP), or Band
Interleaved by Line (BIL) format.
- ENVI also supports a variety of data types: byte, integer, unsigned integer, long
integer, unsigned long integer, floating-point, double-precision floating-point,
complex, double-precision complex, 64-bit integer, and unsigned 64-bit integer.
- 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 (sometimes with your
input) the first time a particular data file is read by ENVI. You can view and edit it at a
later time by selecting File → Edit ENVI Header from the ENVI main menu bar, or by
right-clicking on a file in the Available Bands List and selecting Edit Header. You
can also generate ENVI header files outside ENVI, using a text editor.
2. Open the multispectral Landsat 8 (OLI) data file of Beni Khalled Cap Bon
region in Tunisia.
The Available Bands List is a special ENVI dialog containing a list of all the available image bands in
all open files, as well as any associated map information. You can use the Available Bands List to load
both color and grayscale images into a display by starting a new display or selecting the display number
from the Display #N button menu at the bottom of the dialog, clicking on the Gray Scale or RGB radio
button, then selecting the desired bands from the list by clicking on the band names.
3
The Scroll window displays the entire image at reduced resolution (subsampled). The
subsampling factor is listed in parentheses in the window Title Bar at the top of the image.
The highlighted scroll control box (red by default) indicates the area shown at full
resolution in the Main Image window.
The Pixel Locator allows exact positioning of the cursor. You can manually enter a
sample and line location to position the cursor in the center of the Zoom window. If an
image contains georeferenced data, you can optionally locate pixels using map
coordinates.
- From the Image window menu bar, select Tools → Pixel Locator
- Place the cursor in any of the three windows of the image display group and click
the left mouse button.
- Click the toggle button next to the projection field to toggle between true map
coordinates and latitude/longitude geographic coordinates. You can also choose
to change the selected projection by clicking the Change Proj button.
- From the Pixel Locator dialog menu bar, select File → Cancel to close the Pixel
Locator dialog.
8
4. Click on the Display # button at the bottom of the Available Bands List to open a New
Display in which to load the RGB image.
5. Click Load RGB to load the image into a Main Image window.
- Display the green, red and infra-red bands in RGB mode to obtain a colour composition
- Vegetated surfaces appear blue because of the high radiance of vegetation in B5
- If we display B5 in Green color, the vegetated areas will appear green). This is a false
color image.
11
E. Filters analysis
1- Loading one band in grey scale mode
2- Filter Convolution and Morphology
3- Apply the different following filters and interpret their effects on the image
F. NDVI calculation
1- Use the function: Transform NDVI
2- Choose the Red and the Infra Red band and calculate he NDVI image (NDVI)
3- Use “Color Mapping” and “Histogram” to display vegetation in green and other
classes (water and soil) in white
BY
HEDIA CHAKROUN
2GHE
-----------------------------------------------------------
Overview of the Workshop
This workshop provides basic information about georeferencing maps in ENVI. It covers
step-by-step procedures for successful registration. It is designed to provide a starting
point to users trying to conduct image registration. It assumes that you are already
familiar with general image and maps registration and resampling concepts.
If this does not work, then, edit the map_proj.txt file and add this line:
4, 6378206.4, 6356583.8, 36.000000, 9.900000, 500000.00, 300000.00, 37.550269,
34.416775, Carthage, Tunisia con conf
2- Click OK to start the registration. This opens the Ground Control Points Selection
dialog Individual ground control points (GCPs) are added by entering the
coordinate of the first point (420000, 420000) and positioning the cursor position
in the two zoom images to the same ground location.
16
Enter the 9 following points and position the cursor for each point to get its image
coordinates.
RMS calculation
17
Press “Show List” button to verify the RMS error based on the GCP :
After you are done selecting the 9 pairs, click on individual GCPs in the Image to Map
GCP List dialog and examine the actual and predicted coordinates, and the RMS error.
Resize the dialog to observe the total RMS Error listed in the Ground Control Points
Selection dialog. In the GCP list you can order points by error (Options→Order Points
by Error) to see which GCPs are contributing the most to your RMSE.
Warp map
In the GCP window: Options Warp File
Choose parameters of warping as follows:
BY
HEDIA CHAKROUN
2GHE
-----------------------------------------------------------
WARNING : this workshop has been adapted by H. Chakroun from the original
ENVI labs by P. Haverkamp & S. Hogan ( University of California Davis)
B. Unsupervised Classification
Start ENVI‘s unsupervised classification routines from the ENVI main menu, by
choosing: Classification → Unsupervised → K-Means or IsoData.
K-Means
Unsupervised classifications use statistical techniques to group n-dimensional data into
their natural spectral classes. The K-Means unsupervised classifier uses a cluster
analysis approach which requires the analyst to select the number of clusters to be
located in the data. The classifier arbitrarily locates this number of cluster centers, then
iteratively repositions them until optimal spectral separability is achieved.
2. From the Main Image display menu, select Tools → Link → Link Display1 and Display2
click OK in the dialog to link the images.
3. Compare the K-Means classification result to the color composite image.
4. Try to identify the land cover associated with each class and write this down.
5. When finished, select Tools→ Link → Unlink Display to remove the link and dynamic
overlay.
24
6. Use Tools Color mapping class color mapping, give appropriate names and
colors to the classes:
Water, Vegetation, Soil, Urban
8. Repeat classification K-means by setting the class number to 5 and the iteration
number to 5. Name the result : BK_KMEANS_5C_5IT
25