Image Display and Enhancement using ENVI 5.2

Prof. P. Lewis & Dr. M. Disney

Remote Sensing Unit

Dept. Geography

UCL

Aims

After completing this practical, you should have a reasonable idea of a range of basic functions within an image processing software, envi. You should also have started to make some sense of how the theory you are learning in the lectures can be used to manipulate image data.

Contents

Data

The datasets you need for this practical are available from:

You should download these data and put them in a directory (folder) that you will remember!

The data you will be using are:

  • six wavebands of a Landsat TM image over Greater London, imaged on May 28th 1989. The data were obtained from the GLCF which maintains a large database of (freely available) Landsat and other imagery. The data are at an original pixel spacing of 28.5 m, but have been resampled to a 25 m grid here. The data are in a Transverse Mercator projection with OSGB 1936 datum.

  • six wavebands (nominally the same wavelengths) of a Landsat ETM image with 25 m spatial resolution, covering the same spatial extent. These data were obtained on June 19th 2000. The data were obtained from Landmap which contains a database available to Universities and other users through an Athens login (done via the institution you are at).

The wavebands are:

1 2 3 4 5 6
450-520 nm 520-600 nm 630-690 nm 760-900 nm 1550-1750 nm 2080-2350 nm

The extent of the imagery is (Lat/Lon):

$$ 51^o 43' 9.23'' North, 0^o 36' 18.37'' West $$

to

$$ 51^o 16' 29.32'' North, 0^o 27' 24.60'' East $$

1. Introduction

In this section, we will learn how to do a one time setup of the ENVI preferences and to load a false colour composite image.

The purpose of this practical is for you to gain experience in image display and enhancement of EO data. The session will be normally run as two two hour supervised practical. You may not complete all tasks in detail in that time, so once you get the hang of how to use the tool, move on to the next section and return later to think more about the remote sensing.

If you are doing this exercise in the departmental UNIX lab, you will be using a UNIX workstation, and may find knowledge of some basic Unix useful. These notes are not intended to be a comprehensive introduction to ENVI functionality. They serve as an introduction to remote sensing and image processing, presuming no prior knowedge. Further information on envi tools and fuctions can be found in the on-line help pages.

If you have started up ENVI and the license server is functioning correctly, you should initially see the following (large) window (ENVI 5.2).

The top bar has various menu items:

The first time you use the tool, you may find it convenient to update the default data location.

You can access this via the File->Preferences menu.

Typically, we will want to change the Input Directory and Output Directory to where you are currently working,

e.g. /Users/plewis/geog2021/data on a Mac, or /home/ucfalew/DATA/geog2021/data or similar on the UCL system.

Make a note of where your image data are, so that you can find them the next time!

You should now be able to open an image dataset (do not select the HDR files as these are header files).

Opening an image file should result in the Data Manager being opened:

From which you can select one or more 'bands' to open and assign to the red, green and blue colour guns.

This example should load a False Colour Composite of the image dataset.

2. Exploration

In this section, we use various tools for exploring the image.

  • Once you have loaded an image, explore how to pan and zoom around the image
  • Whilst doing this, examine some of the features you see in the image:
    • Find the crosshairs (and/or cursor value) icon on the tool bar, and explore the geographical coordinates and the digital number (DN) in the three wavebands you are examining.
      • how could you check that the geographic coordinates seem sensible?
      • try to relate the visual cues you see in the data to the DN values being shown
      • use these ideas to interpret 'colour' as displayed in the image
        • e.g. what does the 'red' colour mean and why is it so?
  • Find out how to Change RGB bands ... for the image you are viewing and use this to display e.g. a real colour composite.
    • Try some different band combinations and make sure you can interpret the colour you see
    • What happens if you put the same band onto R G and B? why?
  • Explore using the brightness and contrast sliders
    • try to understand why the operation produces the results you get

Make sure you make notes of what you have done and how you have done it so you can recall this later.

3. Spectral Features

In this section, we will learn how to consider spectral features and perform contrast enhancement.

Clearly, we can 'recognise' much information in the image from spatial context.

But there are other ways we can visualise the data to aid our interpretation.

For example, if we select the Custom stretch button:

then we obtain a histogram view of the data, within which we can apply a contrast stretch by 'moving' the upper and lower thresholds.

For greyscale:

or three band colour:

This can be useful both for performing a contrast stretch

experiment with this so that you understand what the linear contrast enhancement is doing to the image DN You may find it useful to save some historgrams and images and put these in your notes.

It is also of value in visualising the features of the histogram. The histogram shows the frequency of occurrence of the different DNs in the image. For example in the image above, we can describe the blue waveband histogram (shown in blue) as having two clear peaks and a long positive tail. The two peaks are most likely indicative of different land cover classes. The fact that there is a long positive tail may show a third 'bright' class present.

explore the histograms shown by some of the wavebands you have access to here

As you do this, think about the relationship between the informations shown in the image and that in the histogram.

  • How could you try to use the histogram to perform a classification on the image into different land cover classes?
  • What issues might you come across?
  • Do some bands show better separatbility than others? if so, which (and why?)
  • A histogram is a useful way of summarising the information in an image. In fact, we will often use even simpler descriptors to decsribe a frequency distribution such as this, one example being the mean and standard deviation. Would it be a good idea to describe these histograms in this way? If not, why not?

One way of extending our view of such summary data is to use a scatter plot (often called a 'feature space' plot).

locate the scatter plot button, and display a scatter plot with the red waveband on the x axis and the NIR on the y axis

You should see that you are able to define ('draw') regions onto the scatter plot, and the pixels within this specified region are then displayed in the defined colour on the image:

You should spend some time exploring this for different wavebands, as this concept forms the basis of many remote sensing algorithms (particularly those for classification)

As you do this, think about how the scatter plot and histogram information are related and also think about how you might get the computer to describe the regions you have drawn in the feature space plot.

Think also about how using only one or two wavebands may be a limiting factor in classification (i.e. there is often information in other bands that may allow separability).

4. Spectral Profiles

In this section, we will learn how to do plot spectral profiles.

Although we can display (up to) three bands of information in a colour composite, we often wish to know more information.

The various Display->Profiles tools can help in this regard as we can look at the DN in all wavebands (for a particular pixel).

The following show some example spectral profiles:

See if you can navigate your way to these locations and/or work out what 'material' is shown by the spectral profile.

5. Enhancement

In this section, we will learn how to perform a variety of enhancement tasks.

We have seen that ENVI has simple image display enhancement capabilities such as 'brightness' and 'contrast' variation via contrtol sliders.

These are often useful first pass enhancement tools to enable you to more readily visualise features in the image.

Several 'automated' or semi-automated approaches also exist that may provide a useful enhancement under certain conditions.

These are available via a menu as:

For example,histogram equalisation is generally a useful visual enhancement method:

Explore the impact of various enhancement operations

You may find it easiest to do this using a 'greyscale' representation (so there is just a single waveband to think about).

Think about how the different enhancements relate to the information in the histogram.

In particular, explore how you can use image enhancement to more readily differentiate different DN levels in a particular area of the image (e.g. the river)

Another form of enhancement is to make use of colour to differentiate different DNs. We call such an enhancement 'pseudocolour' (note that this is very different to false colour or real colour: make sure you understand the distinction).

To examine this idea, load a greyscale image of the ETM dataset.

Then change the colour table, for exaple to 'rainbow':

You should be able to use the histogram custom stretch facility to expand or compress the colour range or use different 'colours' to examine particular features in more detail (e.g. paths in parks, or features in the river).

That said, analysis using greyscale is often easier to interpret, with appropriate enhancement:

6. Comparing Images

In this section, we will examine some tools to use when comparing images.

Often, we wish to compare features from more than one image (e.g. Landsat images taken over an interval of time).

There are several tools for exploring this in ENVI.

First, remove the current loaded images from ENVI (Note down how you do this!), then load two dataset ETM-190600 and TM-280589 as fasle colour composites.

One immediately obvious thing you can do is simply toggle each dataset 'on and 'off once it is loaded (using the dataset check box).

You can use tools we have seen above, such as the scatterplot to visualise the scatter between the two datasets:

You can also very usefully 'draw' on this scatterplot to identify interesting features:

Transparency

Another option is to use the transparency slider to give different 'weights' of the two datasets. This might be useful, for instance to spot features that have changed between the two image dates:

Swipe and Flicker

Sometimes it is useful to 'flicker' between the various images or swipe one over the other to spot features of (change) interest.

These can be done using the appropriate buttons on the command bar:

Views

One other option is to change the number of 'views' on the screen display:

This will create new 'views':

And you can drag and drop loaded datasets to the particular view you want.

Use these various comparison tools to highlight areas of difference between the two images

7. More Exploring

Some other interesting options to explore:

Annotation

On the control bar, you should see options for annotating the image. Experiment with annotating the image for a few features and work out how to save a 'picture' of what you have done (e.g. File -> Chip view to-> File ...):

Google Earth

If you have tools such as Google Earth set up on the computer you are using, try File->Chip view to->Google Earth

8. Summary

The main aim of this practical is to get you used to using the image processing software tool envi.

In this practical, we have loaded two Landsat images of London and used various tools within envi to visualise the data and their information content.

In particular, we have learned about:

  • Image Display
    • False Colour Composites
    • Real Colour Composites
    • Greyscale display
    • Pseudocolour
    • Spectral profiles
  • Feature Space
    • Histograms
    • Scatterplots
  • Enhancement
    • Linear contrast enhancement
    • Histogram equalisation

[top] [Introduction] [Exploration] [Spectral Features] [Spectral Profiles] [Enhancement] [Comparing Images] [More Exploring] [Summary]