i.class is an interactive program that allows the user to outline a region on the screen and calculate the spectral signature based on the cells that are within that region. During this process the user will be shown a histogram of the region for each image band. The user can also display the cells of the image bands which fall within a user-specified number of standard deviations from the means in the spectral signature. By doing this, the user can see how much of the image is likely to be put into the class associated with the current signature.
The spectral signatures that result are composed of region means and covariance matrices. These region means and covariance matrices are used in the second pass (i.maxlik) to classify the image.
Alternatively, the spectral signatures generated by i.class can
be used for seed means for the clusters in the
LOCATION: location SUPERVISED CLASSIFIER MAPSET: demo Please select the group and subgroup to be analyzed GROUP: spot_______ (list will show available groups) SUBGROUP: 123________ (list will show available subgroups) AFTER COMPLETING ALL ANSWERS, HITTO CONTINUE (OR TO CANCEL)
The group should contain the
After the first screen, the program asks the user for the name of the
resulting signature file. The signature file is both the output file for
i.class and the required input file for the GRASS
program
i.maxlik.
It contains the region means and
covariance matrices that are used to classify an image in
i.maxlik.
After entering the resulting signature file name, the user
is asked to enter the name of a seed signature file. This
is optional. A "seed" signature file is a previously
created signature file. Such a seed signature file may be
the result of an earlier run of i.class. The seed
signature file is copied into the new resulting signature
file before any new signatures are added by
i.class. In this way, you can collect the work
from several sessions with i.class into one
signature file.
Next, the user is asked to enter the name of the raster map
to be displayed during the process of outlining regions.
Typically, the user will want to enter the name of a color
composite previously created by
i.composite.
However, the user can enter the name of any existing raster
map. This leaves the potential for using a raster map not
directly derived from the image as a backdrop on which the
user can outline the classes of interest.
At this point the i.class graphics screen will be
drawn on the graphics monitor and the user will be directed
to use the mouse. From this point on the user will
primarily work with the mouse, selecting options from the
menus and outlining regions on the screen. The only time
that the user will need to return to the text terminal is
to enter names for the signatures created.
To outline the rectangular region simply use any mouse button to anchor
the first corner of the border and then use any button to choose the
other corner.
Note that the number in parentheses on this
selection is the current number of standard deviations.
Note that the color in parentheses on this selection is the current
color for display.
The cell values in the image bands cannot fall outside of
the range of 0 to 255. i.class will report an
error if they do.
i.class, like some of the other
i.group
must be run before i.class to create an
The user can perform a supervised image classification by
running i.class followed by
i.maxlik.
The user can perform an unsupervised classification
by running
i.class is interactive and requires no command
line arguments. The user must be running a graphics
display monitor
(see d.mon)
to run this program.
d.frame,
d.mon,
g.region,
i.cca,
i.cluster,
i.composite,
i.group,
i.maxlik,
r.mapcalc,
r.mask
THE DISPLAY FRAMES
The display frame layout that i.class uses is
represented below for reference.
+----------------------------+-----------------------------+
| | |
| | Map Display Frame |
| | |
| | |
| Histogram Display | |
| Frame | |
| | |
| | |
| | |
| +-----------------------------+
| | |
| | Zoom Display Frame |
| | |
| | |
| | |
| | |
| | |
| | |
+----------------------------+-----------------------------+
| Menu Frame |
+----------------------------------------------------------+
THE MENUS
All of the menus in the i.class program are
displayed across the bottom of the graphics monitor in the
Menu Frame. To select an option from one of these menus,
simply place the cursor over your selection and press any
button on the mouse. Each of the menus is discussed in the
following paragraphs.
The Command Menu
The Command Menu includes the following selections:
The Region Menu
The Region Menu contains the following selections:
The Redisplay Map Menu
The Redisplay Map Menu has the following selections, which are useful
to redraw the raster maps displayed in the Map and Zoom Display Frames.
The Analyze Region Menu
The Analyze Region Menu contains the
Signature Menu, which
allows the user to set the number of standard deviations
and the display color, and then to display (as an overlay)
the cells that match the signature within the number of
standard deviations specified. Note that once the matching
cells are displayed, the Map Display Frame must be
redisplayed to see only the original raster map again. The
following selections are available on the Signature Menu:
NOTES
i.class uses the current MASK to generate the
overlay for cells that match a signature. As a result, if
a MASK already exists it will be removed during the
execution of this program.
SEE ALSO
GRASS Tutorial: Image Processing
AUTHOR
David Satnik,
Central Washington University