i.vpoints.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <h2>DESCRIPTION</h2>
  2. This program enables the user to identify coordinate pairs of points from a
  3. vector map or keyboard entry and corresponding points in an image to be
  4. rectified. The map coordinate values of each point are used to calculate a
  5. transformation matrix. The operator may then use the
  6. <em><a href="i.rectify.html">i.rectify</a></em> program to rectify the image using
  7. the transformation matrix coefficients calculated from the control point
  8. file created in <em>i.vpoints</em>. The
  9. <em> <a href="i.rectify.html">i.rectify</a></em> program performs a first, second or
  10. third order transformation of the image.
  11. <p>The first step is to display the unrectified image and
  12. corresponding vector map data. The operator would then
  13. mark corresponding control point locations on the image and
  14. map. To identify the precise location of a point to be
  15. marked, <em>i.vpoints</em> has a zoom option. In addition to
  16. marking control points on an image to be rectified and
  17. inputting their world coordinate values using the
  18. keyboard, <em>i.vpoints</em> has the option to simultaneously
  19. display vector map data available in the targeted database,
  20. and identify on the vector map the location of the
  21. corresponding marked points. When this option is chosen,
  22. the coordinate values are input automatically. Any GRASS
  23. map layer or vector map in the targeted database LOCATION
  24. can be displayed using <em>i.vpoints</em>. The <em>i.vpoints</em> program
  25. also has the capability of overlaying (i.e., warping) the
  26. vector data onto the raster image to visually check the
  27. accuracy of the registration based on the current set of
  28. active control points. During the process of marking
  29. points and entering map coordinates, the user can compute
  30. the RMS (root mean square) error for each point entered.
  31. The <em>i.vpoints</em> program does this by calculating a
  32. transformation equation (the same one that is calculated in
  33. the GRASS program
  34. <a href="i.rectify.html">i.rectify</a>
  35. 2). Coefficients are
  36. computed for the equation. The coefficients are then used in the
  37. equation along with the x,y coordinates of the marked points. The
  38. results are plugged into an equation for RMS error. The
  39. interpretation of RMS error is described in the ANALYZE subsection.
  40. <p>The procedures for marking control points (registration
  41. points), displaying vector map layers, overlaying vector maps onto
  42. the raster image, and calculating RMS error are described in the
  43. following sections .
  44. <p>To enter the program (the <em>i.vpoints</em> program requires the use of a
  45. graphics monitor) type <em>i.vpoints</em>:
  46. <dl>
  47. <dd><b>i.vpoints</b>
  48. </dl>
  49. The first prompt in the program asks for the imagery group to
  50. be registered . . .
  51. <pre>
  52. Enter imagery group to be registered
  53. Enter 'list' for a list of existing imagery groups
  54. Enter 'list -f' for a verbose listing
  55. Hit RETURN to cancel request
  56. &gt;
  57. </pre>
  58. For example,
  59. <dl>
  60. <dd>&gt;<b>list</b>
  61. </dl>
  62. might produce the following response:
  63. <pre>
  64. &lt;list&gt;
  65. Available groups
  66. - - - - - - - - - - - - - - - - - - - - - - - - - -
  67. test
  68. - - - - - - - - - - - - - - - - - - - - - - - - - -
  69. hit RETURN to continue --&gt;
  70. </pre>
  71. whereas,
  72. <dl>
  73. <dd>&gt;<b>list -f</b>
  74. </dl>
  75. might produce the following response
  76. <pre>
  77. Available groups
  78. - - - - - - - - - - - - - - - - - - - - - - - - - -
  79. test
  80. photo in PERMANENT
  81. res2 in tifftest
  82. - - - - - - - - - - - - - - - - - - - - - - - - - -
  83. hit RETURN to continue --&gt;
  84. </pre>
  85. The imagery group entered above should contain the files
  86. that you wish to rectify. After entering the group to be
  87. registered, the terminal screen displays the message:
  88. <pre>
  89. &gt;test
  90. &lt;test&gt;
  91. Use mouse now . . .
  92. </pre>
  93. And the color graphics monitor displays the following
  94. screen:
  95. <p> Any single file in the imagery group may be used to mark
  96. points, and points can be marked on more than one file in the
  97. imagery group to accumulate the suggested minimum number of points
  98. (3 for a 1st order transformation, 6 for a 2nd order, and 10 for a
  99. 3rd order). Any file in the imagery group can be subsequently
  100. rectified (using <em><a href="i.rectify.html">i.rectify</a></em>)
  101. based on the transformation matrix computed from these points.
  102. <p> The chosen file is displayed in the upper left quadrant of the
  103. monitor at a default magnification based on the extent of the
  104. current active window.
  105. <p>
  106. <b>RASTER IMAGE</b>
  107. <p> The raster image option on the menu at the bottom of the
  108. window allows the user to display any single file in the imagery
  109. group in the upper right quadrant of the window screen. The option
  110. provides the same file selection pick list as is presented when you
  111. first enter the <em>i.vpoints</em> program. When you select this option,
  112. the program will erase the data contained in all of the four
  113. quadrant windows and will reinitialize all program values.
  114. <p>
  115. <b>VECTOR MAPS</b>
  116. <p> The vector maps option on the menu at the bottom of the screen
  117. allows the user to display vector map data in the upper right
  118. quadrant of the screen. After selecting the vector map layer to
  119. display, a menu selection bar appears along the bottom on the
  120. screen. This pick list is used to select the line color (blue,
  121. gray, green, red, white, or yellow) for the selected vector data
  122. layer.
  123. <p><b>Refresh</b>
  124. <p> The refresh option on the main menu allows the user to
  125. "refresh" or re-draw the displayed vector data. This function will
  126. erase all outlines showing the limits of previously zoomed areas.
  127. A "yes/no" roompt will appear:
  128. <pre>
  129. Refresh Map ? NO YES
  130. </pre>
  131. <p><b>Zoom</b>
  132. <p> To enlarge a raster or vector image, place the mouse cross
  133. hairs on the word zoom on the main menu and press the left button.
  134. The following menu will be displayed at the bottom. of the screen:
  135. <pre>
  136. CANCEL BOX POINT Select type of zoom
  137. </pre>
  138. You have the option to identify the map extent of the zoom window
  139. using either the mouse to define a box, or the mouse to mark a
  140. center point from which to enlarge the image. The box option first
  141. prompts you to identify a starting corner for the zoom region and
  142. then allows you to define the area to be zoomed using a rubber band
  143. box. The prompts appear as follows...
  144. <pre>
  145. CANCEL Mark the first corner of region
  146. CANCEL Define the region
  147. </pre>
  148. After marking the first corner of the region to be enlarged, hold
  149. down the left button and move the mouse to change the size and
  150. shape of the rubber band box. After defining the area to be
  151. enlarged, press the right button to accept it.
  152. <p>
  153. The point method for enlarging an image will display a mouse menu
  154. to guide you in selecting the appropriate enlargement. To enlarge
  155. or reduce the magnification factor, place the cursor on the "+" or
  156. "-" box and press the left button on the mouse.
  157. <p><p>You may zoom either the raster or the vector display.
  158. <p>Upon accepting the new region limits, the raster or vector data are
  159. redisplayed in either the lower left (raster) or lower right
  160. (vector) windows.
  161. <p>The extent of the zoomed area is outlined on the unzoomed image in
  162. the main window area.
  163. <p> While the main menu is displayed, you can mark
  164. corrosponding control points on the raster and vector
  165. images or enter map coordinates from the keyboard. If you
  166. are using coordinates taken from a reference map, circle
  167. these points and then use whatever means you have available
  168. to identify as precisely as possible the coordinate values
  169. for these points. Digitizing software is recommended,
  170. especially <a href="wxGUI.vdigit.html">wxGUI vector digitizer</a>. Once you have
  171. determined the standard coordinates (for example, UTM's) of
  172. each circled point, you are ready to mark the points on the
  173. displayed image.
  174. <p> To mark the points on the image, that correspond to the points
  175. on the standard coordinate map, place the mouse cross hairs on the
  176. point on the image to be marked (you will probably have to ZOOM to
  177. find the exact spot) and press the left hand button on the mouse.
  178. A diamond shaped symbol will be marked on the image. The text
  179. monitor will display the following screen:
  180. <pre>
  181. Point 1 marked on the image at
  182. East: 1023.77
  183. North: -164.41
  184. Enter coordinates as east north:
  185. </pre>
  186. <b>Analyze</b>
  187. <p>
  188. After a number of points have been marked (a minimum of 4 for
  189. a 1st order transformation, 7 for a 2nd order, and 11 for a 3rd
  190. order), the RMS error of the points marked on the image can be
  191. checked. This is done by placing the cross hairs on the word
  192. ANALYZE on the main menu at the bottom of the monitor. The
  193. following error report is superimposed on the monitor:
  194. <pre>
  195. error image target
  196. # col row target east north east north
  197. 1 -0.9 0.0 1.0 1048.5 -144.8 679132.5 4351080.6
  198. 2 1.0 0.4 1.3 2153.1 -567.2 684314.7 4399001.4
  199. .
  200. .
  201. .
  202. Overall rms error 76.85
  203. </pre>
  204. The RMS error for the image being rectified is recorded under
  205. the column "error" and subTITLEd "row' and "col". In the above
  206. report, the marked point number 1 is 0.0 rows and -0.9 columns from
  207. the predicted location calculated by the transformation equation.
  208. The RMS error for the target database map is recorded under
  209. the heading "error" and the subheading "target". This is the RMS
  210. error for the east and the north coordinate values of the target
  211. map, but it is represented in the table using one general value.
  212. The overall RMS error for the image is displayed at the bottom
  213. of the screen in meters. Points that generate a high RMS error are
  214. displayed in red on the monitor.
  215. The x,y coordinate values of the point marked on the image
  216. being rectified are recorded under the heading "image" and the
  217. subheadings "east" and "north".
  218. The standard coordinate values of the point in the target
  219. database are recorded under the heading "target" and the
  220. subheadings "east" and "north".
  221. If the user would like to exclude or include a point, this can
  222. be accomplished by placing the mouse cross hairs on the point
  223. number to be included (if the point is absent) or excluded (if the
  224. point is displayed) and then pressing the left button on the mouse
  225. twice. When a point is excluded, it is not included in the
  226. calculation of the RMS error, or included in the final
  227. transformation matrix. However, it can be retrieved within
  228. <em>i.vpoints</em> at any time by double clicking with the mouse as
  229. described above.
  230. <p>The following menu appears at the bottom of the monitor:
  231. <pre>
  232. DONE PRINT FILE OVERLAY DELETE ON Transformation -
  233. -&gt; 1st ORDER Double click on point to be DELETED
  234. </pre>
  235. Selecting DELETE ON will toggle the option to DELETE OFF, the
  236. toggle option is used to allow the user to physically remove a
  237. control point from the POINTS file instead of just flagging it as
  238. an non-active reference point.
  239. <p><b>Overlay</b>
  240. <p>Overlay allows the user to overlay the vector map(s) onto the
  241. raster image. Overlay can be used to warp (register) and display
  242. the selected vector map data on top of the raster image contained
  243. in the upper left window of the color screen. An inverse
  244. coordinate transformation is performed using the currently active
  245. order of transformation (i.e., first, second, or third).
  246. <pre>
  247. Overlay vectors on raster image NO YES
  248. </pre>
  249. By selecting the 1st ORDER option, the user may select the order of
  250. transformation desired:
  251. <pre>
  252. Select order of transformation --&gt; 1st Order 2nd Order 3rd Order
  253. </pre>
  254. The program will immediately recalculate the RMSE and the number of
  255. points required.
  256. <p><b>Quit</b>
  257. <p> To exit the <em>i.vpoints</em> program, place the mouse cross hairs on
  258. the word QUIT at the bottom of the monitor and all of the marked
  259. points (including coordinates) will be saved.
  260. <h2>SEE ALSO</h2>
  261. The GRASS 4 <em>
  262. <a href="http://grass.itc.it/gdp/imagery/grass4_image_processing.pdf">Image
  263. Processing manual</a></em>
  264. <p><em>
  265. <a href="g.mapsets.html">g.mapsets</a><br>
  266. <a href="i.group.html">i.group</a><br>
  267. <a href="i.points.html">i.points</a><br>
  268. <a href="i.rectify.html">i.rectify</a><br>
  269. <a href="i.target.html">i.target</a>
  270. </em><br>
  271. <em><a href="gm_georect.html">gis.m: GEORECTIFY TOOL</a></em>
  272. <h2>AUTHOR</h2>
  273. William R. Enslin, Michigan State University Center for Remote Sensing<br>
  274. Radim Blazek (update to GRASS 5.7)<br>
  275. Hamish Bowman (finish GRASS 6 porting)
  276. <p><i>Last changed: $Date$</i>