.TH i.maxlik 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBi.maxlik\fR\fR - Classifies the cell spectral reflectances in imagery data. .br Classification is based on the spectral signature information generated by either i.cluster, i.class, or i.gensig. .SH KEYWORDS imagery, classification, MLC .SH SYNOPSIS \fBi.maxlik\fR .br \fBi.maxlik help\fR .br \fBi.maxlik\fR [\-\fBq\fR] \fBgroup\fR=\fIname\fR \fBsubgroup\fR=\fIname\fR \fBsigfile\fR=\fIname\fR \fBclass\fR=\fIname\fR [\fBreject\fR=\fIname\fR] [\-\-\fBoverwrite\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-q\fR" 4m .br Run quietly .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBgroup\fR=\fIname\fR" 4m .br Name of input imagery group .IP "\fBsubgroup\fR=\fIname\fR" 4m .br Name of input imagery subgroup .IP "\fBsigfile\fR=\fIname\fR" 4m .br Name of file containing signatures .br Generated by either i.cluster, i.class, or i.gensig .IP "\fBclass\fR=\fIname\fR" 4m .br Name for raster map holding classification results .IP "\fBreject\fR=\fIname\fR" 4m .br Name for raster map holding reject threshold results .PP .SH DESCRIPTION \fIi.maxlik\fR is a maximum-likelihood discriminant analysis classifier. It can be used to perform the second step in either an unsupervised or a supervised image classification. .PP Either image classification methods are performed in two steps. The first step in an unsupervised image classification is performed by \fIi.cluster\fR; the first step in a supervised classification is executed by the GRASS program \fI i.class\fR. In both cases, the second step in the image classification procedure is performed by \fIi.maxlik\fR. .PP In an unsupervised classification, the maximum-likelihood classifier uses the cluster means and covariance matrices from the \fIi.cluster\fR signature file to determine to which category (spectral class) each cell in the image has the highest probability of belonging. In a supervised image classification, the maximum-likelihood classifier uses the region means and covariance matrices from the spectral signature file generated by \fI i.class\fR, based on regions (groups of image pixels) chosen by the user, to determine to which category each cell in the image has the highest probability of belonging. .PP In either case, the raster map layer output by \fIi.maxlik\fR is a classified image in which each cell has been assigned to a spectral class (i.e., a category). The spectral classes (categories) can be related to specific land cover types on the ground. .PP The program will run non-interactively if the user specifies the names of raster map layers, i.e., group and subgroup names, seed signature file name, result classification file name, and any combination of non-required options in the command line, using the form \fBi.maxlik\fR[\fB-q\fR] \fBgroup=\fR\fIname\fR \fBsubgroup=\fR\fIname\fR \fBsigfile=\fR\fIname\fR \fBclass=\fR\fIname\fR [\fBreject=\fR\fIname\fR] .PP where each flag and options have the meanings stated below. .PP Alternatively, the user can simply type \fIi.maxlik\fR in the command line without program arguments. In this case the user will be prompted for the program parameter settings; the program will run foreground. .SH OPTIONS .SS Parameters: .IP "\fBgroup=\fR\fIname\fR .br The imagery group contains the subgroup to be classified. .IP "\fBsubgroup=\fR\fIname\fR .br The subgroup contains image files, which were used to create the signature file in the program \fIi.cluster\fR, \fIi.class\fR, or \fIi.gensig\fR to be classified. .IP "\fBsigfile=\fR\fIname\fR .br The name of the signatures to be used for the classification. The signature file contains the cluster and covariance matrices that were calculated by the GRASS program \fIi.cluster\fR (or the region means and covariance matrices generated by \fIi.class\fR, if the user runs a supervised classification). These spectral signatures are what determine the categories (classes) to which image pixels will be assigned during the classification process. .IP "\fBclass=\fR\fIname\fR .br The name of a raster map holds the classification results. This new raster map layer will contain categories that can be related to land cover categories on the ground. .IP "\fBreject=\fR\fIname\fR .br The optional name of a raster map holds the reject threshold results. This is the result of a chi square test on each discriminant result at various threshold levels of confidence to determine at what confidence level each cell classified (categorized). It is the reject threshold map layer, and contains the index to one calculated confidence level for each classified cell in the classified image. 16 confidence intervals are predefined, and the reject map is to be interpreted as 1 = keep and 16 = reject. One of the possible uses for this map layer is as a mask, to identify cells in the classified image that have a low probability (high reject index) of being assigned to the correct class. .PP .SH NOTES The maximum-likelihood classifier assumes that the spectral signatures for each class (category) in each band file are normally distributed (i.e., Gaussian in nature). Algorithms, such as \fIi.cluster\fR, \fIi.class\fR, or \fIi.gensig\fR, however, can create signatures that are not valid distributed (more likely with \fIi.class).\fR If this occurs, \fIi.maxlik\fR will reject them and display a warning message. .PP This program runs interactively if the user types \fIi.maxlik\fR only. If the user types \fIi.maxlik\fR along with all required options, it will overwrite the classified raster map without prompting if this map existed. .SH EXAMPLE Completion of the unsupervised classification of a LANDSAT subscene (VIZ, NIR, MIR channels) in North Carolina (see \fIi.cluster\fR manual page for the first part): \fC .DS .br i.maxlik group=my_lsat7_2002 subgroup=my_lsat7_2002 sigfile=sig_clust_lsat2002 \(rs .br class=lsat7_2002_clust_classes reject=lsat7_2002_clust_classes.rej .br .br # Visually check result .br d.mon x0 .br d.rast.leg lsat7_2002_clust_classes .br d.rast.leg lsat7_2002_clust_classes.rej .br .DE \fR .SH SEE ALSO The GRASS 4 \fI Image Processing manual\fR .PP \fI i.class, i.cluster, i.gensig, i.group, r.kappa \fR .SH AUTHORS Michael Shapiro, U.S.Army Construction Engineering Research Laboratory .br Tao Wen, University of Illinois at Urbana-Champaign, Illinois .PP \fILast changed: $Date: 2012-12-19 23:16:40 +0100 (Wed, 19 Dec 2012) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team