Link to the UNESCO-IOC website
Link to the Bilko website
Earth from space
Annual sea surface temperature

2.1 Creating a histogram of the whole image

Selecting the whole image   Creating a histogram   The histogram window

TUTORIAL

2. Histograms

to bottom of page next page

Images:

atsr199701.gif atsr199801.gif Description

Download images (195 K)

Useful information:

Image data: A grid of pixels

Histograms contains information about the distribution of pixel values within an image area. Creating histograms in Bilko involves two steps:

  1. Selecting the area to study, and
  2. opening a new histogram file (HISTOGRAM document) for this area.

Note: Histograms are also known as bar charts because they consist of a series of bars where each bar represents a range (or class)of data values (in 8-bit data each integer value has its own bar). The height of each bar is proportional to the frequency of the class it represents (i.e. proportional to the number of times a value in that range occurs within the image area selected).

Selecting the whole image

First activate the image you want to study, in this case atsr199701.gif. (If you have closed this, please open it again, as described in section 1.1). The easiest way to select the whole image is to use Select All. As with most actions in Bilko, there are a number of ways to do this:-

From the menu bar:
  - either click on Edit, then Select All on the drop down menu,
  - or hold down the [ALT] key and type [E], then type [A].
Keyboard shortcut:
  Hold down [CTRL] and type [A]   (shorthand [CTRL+A] ).

Note: You could click the box selector on the tool bar, point your mouse at the top left corner, and drag it to include the whole image, but it's easy to miss rows or columns along the edges, so the methods above are the ones we recommend.

Creating a histogram

Having made your selection, you can now open a new histogram doucment corresponding to this area.

From the menu bar:
  - either click on File, then New on the drop down menu,
  - or hold down the [ALT] key and type [F], then type [N].
Toolbar :
  Click on the New File Icon - Open file icon.
Keyboard shortcut:
  Hold down [CTRL] and type [N]   (shorthand [CTRL+N] ).

This opens te New dialog with HISTOGRAM documents highlighted. ( figure (5K)). Make sure the Apply Stretches box is unchecked before pressing OK to accept.

Note: If histogram is not one of the options listed in the New dialog, this is because no area was selected. Activate the image and try again, using [CTRL+A] to select the whole image.

The histogram window

A histogram window will appear. This shows the number of pixels in the selected image having a given pixel value (y-axis) versus the set of values (DN) that pixels can take (x-axis). You will probably notice that in this particular histogram the scaling of the y-axis scaling is not ideal (see figure (5K)), but makes it hard to see the frequency distribution of pixels with values of less than 255.
 

Answers:
(Resizable
pop-ups)

Answer 1

Question 1.
In the histogram there is a single bar at the data value 255. The height of this bar shows that there are nearly 120,000 pixels with this particular data value. What does this bar represent?

In the next section you will learn how to make sure the histogram gives a valid representation of the true data values in the selected image.

to top of page next page

 
Next: Dealing with missing data

  Link to ESA's Envisat website   Link to NOC's website