| 1 | <h2>DESCRIPTION</h2> |
| 2 | |
| 3 | <em>i.ortho.rectify</em> rectifies an image by using the image to photo |
| 4 | coordinate transformation matrix created by <a href="g.gui.photo2image.html">g.gui.photo2image</a> |
| 5 | and the rectification parameters created by <a href="g.gui.image2target.html">g.gui.image2target</a>. |
| 6 | Rectification is the process by which the geometry of an image is made |
| 7 | planimetric. This is accomplished by mapping an image from one coordinate |
| 8 | system to another. In <em>i.ortho.rectify</em> the parameters computed by |
| 9 | <a href="g.gui.photo2image.html">g.gui.photo2image</a> and |
| 10 | <a href="g.gui.image2target.html">g.gui.image2target</a> are used in equations to |
| 11 | convert x,y image coordinates to standard map coordinates for each pixel in |
| 12 | the image. The result is an image with a standard map coordinate system, |
| 13 | compensated for relief distortions and photographic tilt. Upon completion of |
| 14 | the program the rectified image is deposited in a previously targeted GRASS |
| 15 | project (location). |
| 16 | <p> |
| 17 | Images can be resampled with various different interpolation methods: |
| 18 | nearest neighbor assignment, bilinear and bicubic interpolation. The |
| 19 | bilinear and bicubic interpolation methods are also available with a |
| 20 | fallback option. These methods "fall back" to simpler interpolation |
| 21 | methods along NULL borders. That is, from bicubic to bilinear to nearest. |
| 22 | <p> |
| 23 | The process may take an hour or more depending on the size of the image, |
| 24 | the speed of the computer, the number files, and the size and resolution |
| 25 | of the selected window. |
| 26 | <p> |
| 27 | The rectified image will be located in the target project when the program |
| 28 | is completed. The original unrectified files are not modified or removed. |
| 29 | <p> |
| 30 | The optional <em>angle</em> output holds the camera angle in degrees to |
| 31 | the local surface, considering local slope and aspect. A value of 90 |
| 32 | degrees indicates that the camera angle was orthogonal to the local |
| 33 | surface, a value of 0 degrees indicates that the camera angle was |
| 34 | parallel to the local surface and negative values indicate that the |
| 35 | surface was invisible to the camera. As a rule of thumb, values below 30 |
| 36 | degrees indicate problem areas where the orthorectified output will |
| 37 | appear blurred. Because terrain shadowing effects are not considered, |
| 38 | areas with high camera angles may also appear blurred if they are located |
| 39 | (viewed from the camera position) behind mountain ridges or peaks. |
| 40 | <p> |
| 41 | <em>i.ortho.rectify</em> can be run directly, specifying options in the |
| 42 | command line or the GUI, or it can be invoked as OPTION 8 through |
| 43 | <a href="i.ortho.photo.html">i.ortho.photo</a>. If invoked though |
| 44 | <a href="i.ortho.photo.html">i.ortho.photo</a>, an interactive terminal |
| 45 | is used to determine the options. |
| 46 | |
| 47 | <h4>Interactive mode</h4> |
| 48 | <p> You are first asked if all images within the imagery group should |
| 49 | be rectified. If this option is not chosen, you are asked to specify for |
| 50 | each image within the imagery group whether it should be rectified or not. |
| 51 | <p> |
| 52 | More than one file may be rectified at a time. Each file |
| 53 | should have a unique output file name. The next prompt asks you for an |
| 54 | extension to be appended to the rectified images. |
| 55 | <p> |
| 56 | The next prompt will ask you whether a camera angle map should be |
| 57 | produced and if yes, what should be its name. |
| 58 | <p> |
| 59 | After that you are asked if overwriting existing maps in the target |
| 60 | project and mapset should be allowed. |
| 61 | <p> |
| 62 | The next prompt asks you to select one of two windows: |
| 63 | <p> |
| 64 | <pre> |
| 65 | Please select one of the following options |
| 66 | 1. Use the current window in the target project |
| 67 | 2. Determine the smallest window which covers the image |
| 68 | > |
| 69 | </pre> |
| 70 | <p> |
| 71 | If you choose option 2, you can also specify a desired target resolution. |
| 72 | <p> |
| 73 | <em>i.ortho.rectify</em> will only rectify that portion of the |
| 74 | image that occurs within the chosen window. Only that portion will be |
| 75 | relocated in the target database. It is therefore important to check the |
| 76 | current window in the target project if choice number one is selected. |
| 77 | <p> |
| 78 | Next you are asked to select an interpolation method. |
| 79 | <pre> |
| 80 | Please select one of the following interpolation methods |
| 81 | 1. nearest neighbor |
| 82 | 2. bilinear |
| 83 | 3. bicubic |
| 84 | 4. bilinear with fallback |
| 85 | 5. bicubic with fallback |
| 86 | > |
| 87 | </pre> |
| 88 | <p> |
| 89 | The last prompt will ask you about the amount of memory to be used by |
| 90 | <em>i.ortho.rectify</em>. |
| 91 | |
| 92 | <h2>SEE ALSO</h2> |
| 93 | |
| 94 | <em> |
| 95 | <a href="i.ortho.photo.html">i.ortho.photo</a>, |
| 96 | <a href="i.ortho.camera.html">i.ortho.camera</a>, |
| 97 | <a href="g.gui.photo2image.html">g.gui.photo2image</a>, |
| 98 | <a href="g.gui.image2target.html">g.gui.image2target</a>, |
| 99 | <a href="i.ortho.init.html">i.ortho.init</a>, |
| 100 | <a href="i.rectify.html">i.rectify</a> |
| 101 | </em> |
| 102 | |
| 103 | |
| 104 | <h2>AUTHORS</h2> |
| 105 | |
| 106 | Mike Baba, DBA Systems, Inc.<br> |
| 107 | Updated rectification and elevation map to FP 1/2002 Markus Neteler<br> |
| 108 | Bugfixes and enhancements 12/2010 Markus Metz |