| 1 | <h2>DESCRIPTION</h2> |
| 2 | |
| 3 | <em>i.gensig</em> |
| 4 | is a non-interactive method for generating input into |
| 5 | <em><a href="i.maxlik.html">i.maxlik</a></em>. |
| 6 | It can be used as the first pass in the GRASS two-pass |
| 7 | classification process (instead of |
| 8 | <em><a href="i.cluster.html">i.cluster</a></em> |
| 9 | or |
| 10 | <em><a href="g.gui.iclass.html">g.gui.iclass</a>)</em>. |
| 11 | |
| 12 | It reads a raster map layer, called the training map, which |
| 13 | has some of the pixels or regions already classified. |
| 14 | <em>i.gensig</em> will then extract spectral signatures |
| 15 | from an image based on the classification of the pixels in |
| 16 | the training map and make these signatures available to |
| 17 | <em><a href="i.maxlik.html">i.maxlik</a></em>. |
| 18 | |
| 19 | <p> |
| 20 | The user would then execute the GRASS program |
| 21 | <em><a href="i.maxlik.html">i.maxlik</a></em> |
| 22 | to actually create the final classified map. |
| 23 | |
| 24 | <p> |
| 25 | This module generates signature files of type "sig". Use module |
| 26 | <a href="i.signatures.html">i.signatures</a> to manage generated signature files. |
| 27 | |
| 28 | <p> |
| 29 | All raster maps used to generate signature file can have semantic label |
| 30 | set. Use <em><a href="r.support.html">r.support</a></em> to set |
| 31 | semantic labels of each member of the imagery group. |
| 32 | Signatures generated for one scene are suitable for classification |
| 33 | of other scenes as long as they consist of same raster bands |
| 34 | (semantic labels match). |
| 35 | |
| 36 | <h2>OPTIONS</h2> |
| 37 | |
| 38 | <h3>Parameters</h3> |
| 39 | |
| 40 | <dl> |
| 41 | <dt><b>trainingmap=</b><em>name</em> |
| 42 | <dd>ground truth training map |
| 43 | <p> |
| 44 | This map must be prepared by the user in advance using vector or |
| 45 | raster digitizer. Of course other methods could be devised by the user |
| 46 | for creating this training map - <em>i.gensig</em> makes no assumption |
| 47 | about the origin of this map layer. It simply creates signatures for |
| 48 | the classes defined in the training map for the image to be classified |
| 49 | (the image is specified in other options - see below). The |
| 50 | <em><a href="wxGUI.vdigit.html">wxGUI vector digitizer</a></em> can be |
| 51 | used for interactively creating the training map. |
| 52 | |
| 53 | <dt><b>group=</b><em>name</em> |
| 54 | <dd>imagery group |
| 55 | <p> |
| 56 | This is the name of the group that contains the band files |
| 57 | which comprise the image to be analyzed. The <em> |
| 58 | <a href="i.group.html">i.group</a> </em> command is |
| 59 | used to construct groups of raster layers which comprise an |
| 60 | image. |
| 61 | |
| 62 | <p> |
| 63 | <dt><a name="subgroup"></a><b>subgroup=</b><em>name</em> |
| 64 | |
| 65 | <dd>subgroup containing image files |
| 66 | <p> |
| 67 | This names the subgroup within the group that selects a |
| 68 | subset of the bands to be analyzed. The <em> |
| 69 | <a href="i.group.html">i.group</a> </em> command is |
| 70 | also used to prepare this subgroup. The subgroup mechanism |
| 71 | allows the user to select a subset of all the band files |
| 72 | that form an image. |
| 73 | |
| 74 | |
| 75 | <dt><b>signaturefile=</b><em>name</em> |
| 76 | <dd>resultant signature file |
| 77 | <p> |
| 78 | This is the resultant signature file (containing the means |
| 79 | and covariance matrices) for each class in the training map |
| 80 | that is associated with the band files in the subgroup |
| 81 | select (see <a href="#subgroup">above</a>). Resultant signature file |
| 82 | can be used with any other imagery group as long as semantic labels |
| 83 | match. |
| 84 | </dl> |
| 85 | |
| 86 | <h2>NOTES</h2> |
| 87 | |
| 88 | The structure of the SIG files generated by <em>i.gensig</em> is |
| 89 | as follows (ASCII file, used internally by <em>i.maxlik</em>): |
| 90 | <br> |
| 91 | <i>Note: the line numbers are not present in the file but have been |
| 92 | added here for explanation only</i>: |
| 93 | <p> |
| 94 | SIG file "lsat7_2000_gensig": |
| 95 | <div class="code"><pre> |
| 96 | 1 1 |
| 97 | 2 # |
| 98 | 3 Semantic_label1 |
| 99 | 4 #water |
| 100 | 5 4186 |
| 101 | 6 67.9508 48.7346 37.8915 15.3129 13.8473 12.0855 |
| 102 | 7 1.74334 |
| 103 | 8 0.439504 2.07267 |
| 104 | 9 0.662523 1.63501 4.21189 |
| 105 | 10 0.530339 2.40757 5.52857 22.433 |
| 106 | 11 0.561184 2.30762 5.18846 20.5364 20.4926 |
| 107 | 12 0.393218 1.2184 2.63628 9.61528 9.36025 5.85314 |
| 108 | </pre></div> |
| 109 | |
| 110 | <ul> |
| 111 | <li> Line 1: version number (currently always 1)</li> |
| 112 | <li> Line 2: text label</li> |
| 113 | <li> Line 3: Space separated list of semantic labels</li> |
| 114 | <li> Line 4: text label of class</li> |
| 115 | <li> Line 5: number of points in class</li> |
| 116 | <li> Line 6: mean values per band of the class</li> |
| 117 | <li> Line 7-12: (semi)-matrix of band-band covariance</li> |
| 118 | </ul> |
| 119 | |
| 120 | <h2>SEE ALSO</h2> |
| 121 | |
| 122 | <em> |
| 123 | <a href="r.support.html">r.support</a>, |
| 124 | <a href="g.gui.iclass.html">g.gui.iclass</a>, |
| 125 | <a href="i.group.html">i.group</a>, |
| 126 | <a href="i.cca.html">i.cca</a>, |
| 127 | <a href="i.maxlik.html">i.maxlik</a>, |
| 128 | <a href="i.smap.html">i.smap</a>, |
| 129 | <a href="r.info.html">r.info</a>, |
| 130 | <a href="r.univar.html">r.univar</a>, |
| 131 | <a href="wxGUI.vdigit.html">wxGUI vector digitizer</a> |
| 132 | </em> |
| 133 | |
| 134 | <h2>AUTHORS</h2> |
| 135 | |
| 136 | Michael Shapiro, |
| 137 | U.S.Army Construction Engineering Research Laboratory |
| 138 | <br> |
| 139 | Semantic label support: Maris Nartiss, |
| 140 | University of Latvia |