i.points.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. <h2>DESCRIPTION</h2>
  2. <em>i.points</em> is an
  3. <a href="imagery.html">imagery</a> function that enables
  4. the user to mark points on a (raster) image to be rectified
  5. and then input the geographic coordinates of each point for
  6. calculation of a coordinate transformation matrix.
  7. <em>i.points</em> must be followed by use of the GRASS
  8. program <em><a href="i.rectify.html">i.rectify</a></em>, which
  9. rectifies the image using the transformation matrix
  10. coefficients calculated by <em>i.points</em>.
  11. <p>
  12. <em>Rectification</em> is the mapping (transformation) of
  13. an image from one coordinate system to another. The
  14. geometry of an image extracted into a GRASS LOCATION having
  15. an x,y coordinate system is not planimetric. To create a
  16. planimetric image, that is, to convert the x,y coordinate
  17. system into a standard coordinate system (for example, the
  18. UTM coordinate system or the State Plane coordinate
  19. system), points from a map having the standard coordinates
  20. must be associated with the same points on the image to be
  21. rectified. <em>i.points</em> enables the user to mark
  22. points on an image and input the standard coordinates for
  23. that point. <em>i.points</em> then calculates a least
  24. squares regression using the two coordinate systems (x,y
  25. and standard) for the marked points. A matrix containing
  26. transformation coefficients is the output file for
  27. <em>i.points</em>.
  28. <p>During the process of marking points and entering map
  29. coordinates, the user can compute the RMS (root mean
  30. square) error for each point entered. <em>i.points</em>
  31. does this by calculating the transformation equation (the
  32. same one that is calculated in the GRASS program <em>
  33. <a href="i.rectify.html">i.rectify</a></em>), and then
  34. plugging these results into an equation for RMS error.
  35. <p><em>i.points</em> offers a zoom option to locate precisely
  36. the point to be marked on an image. This program also
  37. offers the user the option of acquiring standard
  38. coordinates for a marked point from a map layer in the
  39. target data base.
  40. <p><em><a href="i.target.html">i.target</a></em> must be
  41. run before running <em>i.points</em> to enable the PLOT
  42. RASTER option to be used and to identify a target data base
  43. LOCATION_NAME and MAPSET for the rectified image. To run
  44. <em>i.points</em>, a graphics monitor is required.
  45. <p>The procedure for marking points, entering coordinates, and
  46. calculating RMS error is described below.
  47. <p>The first prompt in the program asks the user for the
  48. <a href="i.group.html">imagery group</a> to be
  49. registered. Note that if
  50. <em><a href="i.target.html">i.target</a></em> is not run
  51. before <em>i.points</em>, the <em>i.points</em> program
  52. will display the following error message:
  53. <pre>
  54. ERROR: Target information for group [spot] missing
  55. Please run i.target for group [spot]
  56. </pre>
  57. After entering the group to be registered the terminal screen
  58. displays the message:
  59. <pre>
  60. Use mouse now...
  61. </pre>
  62. The graphics monitor displays the following screen:
  63. <pre>
  64. ______________________________________________________________
  65. | imagery filename (mag) | target filename (mag) |
  66. |_________________________________|___________________________|
  67. | | |
  68. | | |
  69. | | |
  70. | | |
  71. | | |
  72. | | |
  73. | | |
  74. |_________________________________|___________________________|
  75. | | |
  76. | | |
  77. | | |
  78. | | |
  79. | | |
  80. | | |
  81. | | |
  82. |_________________________________|___________________________|
  83. | QUIT ZOOM PLOT RASTER ANALYZE| |
  84. |_________________________________|___________________________|
  85. </pre>
  86. A pop-down menu like that shown below will be superimposed on the
  87. left half of the screen:
  88. <pre>
  89. __________________________________
  90. | Double click on raster map layer|
  91. | to be plotted |
  92. | Double click here to cancel |
  93. |_________________________________|
  94. ____________________
  95. | Mapset demo |
  96. |___________________|
  97. | spotclass| spot.1|
  98. |__________|________|
  99. | composite| spot.2|
  100. |__________|________|
  101. | spot.3 | |
  102. |__________|________|
  103. </pre>
  104. Any single raster map layer in the
  105. <a href="i.group.html">imagery group</a> may be used on
  106. which to mark points, and the user can mark points on more
  107. than one raster map layer in the
  108. <a href="i.group.html">imagery group</a> to accumulate the
  109. suggested minimum number of 12 points. Any raster map
  110. layer in the <a href="i.group.html">imagery group</a>
  111. can be rectified (using
  112. <em><a href="i.rectify.html">i.rectify</a></em>) based on the
  113. transformation matrix computed from these points.
  114. <p>
  115. The imagery file chosen by
  116. the user is displayed in the upper left quadrant of the
  117. screen.
  118. <h3>ZOOM</h3>
  119. To magnify the displayed file, the user must
  120. place the mouse cross hairs on the word ZOOM. The following menu
  121. will then be displayed at the bottom of the screen:
  122. <pre>
  123. ____________________________________________
  124. | Cancel| Box| Point| Select type of ZOOM|
  125. |_______|_____|_______|_____________________|
  126. </pre>
  127. The user has the option of identifying the zoom region
  128. either by using the mouse to make a box, or by using the
  129. mouse to mark the two diagonal points of the desired
  130. region. The terminal screen will display a mouse button
  131. menu to guide the user in identifying the corner points of
  132. the region.
  133. <h3>MARKING POINTS</h3>
  134. To mark the points on the image that correspond to the
  135. points on a standard coordinate system map, the user must
  136. place the mouse cross hairs on the corresponding location
  137. on the image to be marked and press the left hand button on
  138. the mouse. A diamond shaped symbol will be marked on the
  139. image. The user's terminal will display the following
  140. menu:
  141. <pre>
  142. ___________________________________________________________
  143. | Point 1 marked on the image at| |
  144. | East: 1023.77 | |
  145. | North: -164.41 | |
  146. | | |
  147. | | |
  148. | | |
  149. | | |
  150. | | |
  151. |__________________________________________________________|
  152. | Enter coordinates as east north: |
  153. |__________________________________________________________|
  154. </pre>
  155. The user then enters the easting and northing (separated by
  156. a space) for the point marked on the image. If the user
  157. wishes not to enter a coordinate, he or she may simply hit
  158. RETURN to return control to the mouse; the marked point
  159. then disappears.
  160. <h3>PLOT RASTER</h3>
  161. In addition to acquiring reference points from a standard
  162. map, the user has the option of acquiring the reference
  163. points from a raster map layer in the target data base
  164. LOCATION_NAME. The data base raster map layer is displayed
  165. by placing the mouse cross hairs on the words PLOT RASTER.
  166. The following line is then displayed at the bottom of the
  167. graphics monitor:
  168. <pre>
  169. ________________________________________________
  170. | Cancel| Indicate which side should be plotted|
  171. |_______|_______________________________________|
  172. </pre>
  173. Which side of the graphics monitor is to be plotted
  174. is indicated by placing the mouse cross hairs on the
  175. half of the graphics monitor screen that the user would like to use,
  176. and pressing the left mouse button. The following pop-down
  177. menu will be superimposed on the half of the screen that was chosen:
  178. <pre>
  179. _________________________________________
  180. | Double click on raster (cell) map layer|
  181. | to be plotted |
  182. | Double click here to cancel |
  183. |________________________________________|
  184. ______________________________
  185. | Mapset demo |
  186. |_____________________________|
  187. | tm.rectified | |
  188. |______________|______________|
  189. | tm.classified| |
  190. |_____________________________|
  191. | Mapset PERMANENT |
  192. |_____________________________|
  193. | elevation | geology |
  194. |______________|______________|
  195. | slope | soils |
  196. |______________|______________|
  197. | aspect | |
  198. |______________|______________|
  199. | roads | |
  200. |______________|______________|
  201. </pre>
  202. After the raster map layer is displayed the following message appears
  203. at the bottom of the graphics monitor:
  204. <pre>
  205. ______________________________________
  206. | input method --&gt;| keyboard| screen|
  207. |_________________|__________|________|
  208. </pre>
  209. If the user wishes to use the plotted raster map layer only
  210. as a comparative reference, then the keyboard can be chosen
  211. as the means to input coordinates corresponding to the
  212. marked points on the image. This is done by placing the
  213. mouse cross hairs on the word KEYBOARD and pressing the
  214. left button on the mouse.
  215. <p>
  216. If the user selects the SCREEN option, then points marked
  217. on the image will automatically be associated with the
  218. coordinates from the corresponding points on the target
  219. data base map layer. In this option, when the user marks a
  220. point on the image, the following menu is displayed at the
  221. terminal:
  222. <pre>
  223. ___________________________________________________________
  224. | Point 5 marked on the image at| |
  225. | East: 1023.77 | |
  226. | North: -164.41 | |
  227. | | |
  228. | | |
  229. | Point located at | |
  230. | East: 679132.57 | |
  231. | North: 4351080.67 | |
  232. | | |
  233. | | |
  234. | | |
  235. | | |
  236. | | |
  237. |__________________________________________________________|
  238. | use mouse now... |
  239. |__________________________________________________________|
  240. </pre>
  241. The user then uses the mouse to mark a corresponding point
  242. on the displayed image from the target data base. The
  243. coordinates for the target data base map layer are
  244. automatically saved as the coordinates corresponding to the
  245. marked point on the image.
  246. <h3>ANALYZE</h3>
  247. After a number of points have been marked (4 to 7), the
  248. user can check the RMS error of the points marked on the
  249. image. This is done by placing the mouse cross hairs on
  250. the word ANALYZE at the bottom of the graphics monitor. An
  251. error report resembling that shown below is superimposed on
  252. the graphics monitor:
  253. <pre>
  254. ______________________________________________________________________
  255. | error image target |
  256. |# row col target east north east north |
  257. |____________________________________________________________________|
  258. |1 0.0 -0.9 1.0 1048.5 -144.8 679132.5 4351080.6|
  259. |2 0.4 1.0 1.3 2153.1 -567.2 684314.7 4399001.4|
  260. |3 -1.2 -0.5 .6 1452.8 -476.5 567841.4 3457682.8|
  261. |4 1.1 0.5 1.3 1034.0 -109.2 677573.8 4352626.4|
  262. |5 -2.7 14.0 14.2 1048.6 -144.9 679132.6 4351080.7|
  263. | |
  264. |____________________________________________________________________|
  265. | overall rms error: 4.46 |
  266. |____________________________________________________________________|
  267. </pre>
  268. The following menu then appears at the bottom of the graphics monitor:
  269. <pre>
  270. ____________________________________________________________________
  271. | DONE| PRINT FILE| Double click on point to be included/excluded|
  272. |_____|____________|________________________________________________|
  273. </pre>
  274. The RMS error for the image is given under the column
  275. TITLEd "error" and subTITLEd "row" and "col". In the above
  276. report, point number 1 is 0.0 rows and -0.9 columns from
  277. the predicted location calculated from the transformation
  278. equation. The RMS error for the target raster map layer is
  279. listed under the heading "target". This is the RMS error
  280. for the east and north coordinates of the target map layer,
  281. but it is presented in the table using one general value.
  282. The overall RMS error is displayed at the bottom of the
  283. screen in meters. Points that create high RMS error are
  284. displayed in red on the graphics monitor (represented here
  285. in italics).
  286. <p>The location of the point marked on the
  287. <a href="i.group.html">imagery group</a> file is given
  288. under the heading "image" and the subheadings "east" and
  289. "north". The location of the point in the target data base
  290. is given under the heading "target" and the subheadings
  291. "east" and "north". If the user would like to exclude or
  292. include a point, this can be accomplished by placing the
  293. mouse cross hairs on the point number to be included (if
  294. the point is absent) or excluded (if the point is
  295. displayed) and pressing the left button on the mouse
  296. twice. When a point is excluded, it is not afterwards
  297. included in the calculation of the RMS error, or included
  298. in the final transformation matrix. However, it can be
  299. retrieved within <em>i.points</em> at any time by double
  300. clicking with the mouse as described above.
  301. <h3>QUIT</h3>
  302. To end the <em>i.points</em> program place the mouse cross
  303. hairs on the word QUIT; the marked points (including
  304. coordinates) will be saved.
  305. <h2>NOTES</h2>
  306. A good rule of thumb is to mark at least 12 to 15 points
  307. which are evenly distributed over the entire
  308. <a href="i.group.html">imagery group</a> file in order to
  309. obtain an accurate transformation equation for the
  310. rectification process. The RMS error may increase with
  311. more points added, but the transformation equation will be
  312. more accurate.
  313. <p>An RMS error of less than or equal to approximately one
  314. resolution unit (pixel or cell) for the image being
  315. rectified is generally considered acceptable.
  316. <p>In order to use a digitizer with <em>i.points</em>, at
  317. least one digitizer driver besides "none" (the on-screen
  318. digitizer) must be available in the digitcap file.
  319. <p>This program is interactive.
  320. <h2>SEE ALSO</h2>
  321. The GRASS 4 <em>
  322. <a href="http://grass.itc.it/gdp/imagery/grass4_image_processing.pdf">Image
  323. Processing manual</a></em>
  324. <p><em>
  325. <a href="g.mapsets.html">g.mapsets</a><br>
  326. <a href="i.group.html">i.group</a><br>
  327. <a href="i.rectify.html">i.rectify</a><br>
  328. <a href="i.target.html">i.target</a><br>
  329. <a href="i.vpoints.html">i.vpoints</a>
  330. </em><br>
  331. <em><a href="gm_georect.html">gis.m: GEORECTIFY TOOL</a></em>
  332. <h2>AUTHOR</h2>
  333. Michael Shapiro,
  334. U.S.Army Construction Engineering Research Laboratory
  335. <p><i>Last changed: $Date$</i>