.TH i.gensig 1grass "" "GRASS 8.3.2" "GRASS GIS User's Manual" .SH NAME \fI\fBi.gensig\fR\fR \- Generates statistics for i.maxlik from raster map. .SH KEYWORDS imagery, classification, supervised classification, Maximum Likelihood Classification, MLC, signatures .SH SYNOPSIS \fBi.gensig\fR .br \fBi.gensig \-\-help\fR .br \fBi.gensig\fR \fBtrainingmap\fR=\fIname\fR \fBgroup\fR=\fIname\fR \fBsubgroup\fR=\fIname\fR \fBsignaturefile\fR=\fIname\fR [\-\-\fBoverwrite\fR] [\-\-\fBhelp\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] [\-\-\fBui\fR] .SS Flags: .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-help\fR" 4m .br Print usage summary .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .IP "\fB\-\-ui\fR" 4m .br Force launching GUI dialog .SS Parameters: .IP "\fBtrainingmap\fR=\fIname\fR \fB[required]\fR" 4m .br Ground truth training map .IP "\fBgroup\fR=\fIname\fR \fB[required]\fR" 4m .br Name of input imagery group .IP "\fBsubgroup\fR=\fIname\fR \fB[required]\fR" 4m .br Name of input imagery subgroup .IP "\fBsignaturefile\fR=\fIname\fR \fB[required]\fR" 4m .br Name for output file containing result signatures .SH DESCRIPTION \fIi.gensig\fR is a non\-interactive method for generating input into \fIi.maxlik\fR. It can be used as the first pass in the GRASS two\-pass classification process (instead of \fIi.cluster\fR or \fIg.gui.iclass)\fR. It reads a raster map layer, called the training map, which has some of the pixels or regions already classified. \fIi.gensig\fR will then extract spectral signatures from an image based on the classification of the pixels in the training map and make these signatures available to \fIi.maxlik\fR. .PP The user would then execute the GRASS program \fIi.maxlik\fR to actually create the final classified map. .PP All raster maps used to generate signature file can have semantic label set. Use \fIr.support\fR to set semantic labels of each member of the imagery group. Signatures generated for one scene are suitable for classification of other scenes as long as they consist of same raster bands (semantic labels match). .SH OPTIONS .SS Parameters .IP "\fBtrainingmap=\fR\fIname\fR " 4m .br ground truth training map .PP This map must be prepared by the user in advance using vector or raster digitizer. Of course other methods could be devised by the user for creating this training map \- \fIi.gensig\fR makes no assumption about the origin of this map layer. It simply creates signatures for the classes defined in the training map for the image to be classified (the image is specified in other options \- see below). The \fIwxGUI vector digitizer\fR can be used for interactively creating the training map. .IP "\fBgroup=\fR\fIname\fR " 4m .br imagery group .PP This is the name of the group that contains the band files which comprise the image to be analyzed. The \fI i.group \fR command is used to construct groups of raster layers which comprise an image. .PP .IP "\fBsubgroup=\fR\fIname\fR " 4m .br subgroup containing image files .PP This names the subgroup within the group that selects a subset of the bands to be analyzed. The \fI i.group \fR command is also used to prepare this subgroup. The subgroup mechanism allows the user to select a subset of all the band files that form an image. .IP "\fBsignaturefile=\fR\fIname\fR " 4m .br resultant signature file .PP This is the resultant signature file (containing the means and covariance matrices) for each class in the training map that is associated with the band files in the subgroup select (see above). Resultant singature file can be used with any other imagery group as long as semantic labels match. .SH NOTES The structure of the SIG files generated by \fIi.gensig\fR is as follows (ASCII file, used internally by \fIi.maxlik\fR): .br \fINote: the line numbers are not present in the file but have been added here for explanation only\fR: .PP SIG file \(dqlsat7_2000_gensig\(dq: .br .nf \fC 1 1 2 # 3 Semantic_label1 4 #water 5 4186 6 67.9508 48.7346 37.8915 15.3129 13.8473 12.0855 7 1.74334 8 0.439504 2.07267 9 0.662523 1.63501 4.21189 10 0.530339 2.40757 5.52857 22.433 11 0.561184 2.30762 5.18846 20.5364 20.4926 12 0.393218 1.2184 2.63628 9.61528 9.36025 5.85314 \fR .fi .RS 4n .IP \(bu 4n Line 1: version number (currently always 1) .IP \(bu 4n Line 2: text label .IP \(bu 4n Line 3: Space separated list of semantic labels .IP \(bu 4n Line 4: text label of class .IP \(bu 4n Line 5: number of points in class .IP \(bu 4n Line 6: mean values per band of the class .IP \(bu 4n Line 7\-12: (semi)\-matrix of band\-band covariance .RE .SH SEE ALSO \fI r.support, g.gui.iclass, i.group, i.cca, i.maxlik, i.smap, r.info, r.univar, wxGUI vector digitizer \fR .SH AUTHORS Michael Shapiro, U.S.Army Construction Engineering Research Laboratory .br Semantic label support: Maris Nartiss, University of Latvia .SH SOURCE CODE .PP Available at: i.gensig source code (history) .PP Accessed: Friday Mar 08 07:35:24 2024 .PP Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index .PP © 2003\-2024 GRASS Development Team, GRASS GIS 8.3.2 Reference Manual