|
ENVI User's Guide: Map Tools |
|
Use Registration to reference images to geographic coordinates and/or correct them to match base image geometry. You can select ground control points (GCPs) interactively from Image windows and/or Vector windows. ENVI performs warping using polynomial functions; Delaunay triangulation; or rotation, scaling, and translation (RST). Resampling methods include nearest neighbor, bilinear, and cubic convolution. Comparison of base and warped images using ENVI's multiple Dynamic Overlay capabilities allows quick assessment of registration accuracy. For step-by-step image registration instructions, see the "Image Georeferencing and Registration" ENVI Tutorial.
Use Select GCPs: Image to Image to interactively select ground control points (GCP or Tie Points) to use in image-to-image registration. Use the Zoom windows of two displayed images (image-to-image registration requires that two images be displayed) to select the GCPs. When selecting GCPs, you can select sub-pixel (fractional) coordinates. When enough points to define a warp polynomial are selected, GCP locations in the warp image can be predicted. You can save and restore GCPs to/from files and you can change the color labels and ordering of the GCP markers. See Warping and Resampling Image-to-Image for descriptions of the warping methods.
Single band or multiband images can be warped. The GCP selection tool allows prototyping and testing of different GCPs and warp options.
| Tip To rotate or flip images prior to registration, use Basic Tools Rotate/Flip Images (see Rotating Images). |
Registration
Select GCPs: Image to Image. The Image to Image Registration dialog appears.
| Tip See the "Image Georeferencing and Registration" ENVI Tutorial for step-by-step descriptions of image registration. |
Identify Ground Control Points (GCPs) in the two displayed images by locating pixels in the Zoom windows. Pixel information is loaded into the Ground Points Selection dialog. The upper-left of a pixel is the position of the whole number coordinates and the X and Y values increase to the right and bottom of the pixel, respectively. The pixel fraction available in the Zoom window is proportional to the zoom factor. For example, at a zoom of 4x, the pixels are divided into 4 sub-areas. At a zoom factor of 10x, positioning is possible to 1/10th pixel. The GCP marker is placed showing the subpixel position in the Zoom window. Subpixel locations are supplied to provide higher accuracy in selecting GCPs.
The coordinates of the selected location (in both images) display in the Ground Control Points Selection dialog, in sample and line order in the fields labeled Base X, Y and Warp X, Y, respectively. Positioning in the Zoom window provides subpixel coordinates so floating point coordinate values are shown in the dialog.
| Note Select Tools Pixel Locator from the Image window menu bar to select pixel positions. Provide whole number GCP coordinates by clicking the Export button (see Using the Pixel Locator). |
To view the list of GCPs, click Show List. The Image to Image GCP List appears with the GCPs listed in a table. For a description of the GCP List, see Using the Image to Image GCP List.
When the GCPs are added to the list, a marker is placed in the Image displays of both the base and warp images. The GCP marker in the Image is the identifying number of the GCP displayed next to an encircled crosshair.
The marker indicates the selected pixel (or subpixel location). The center of the marker (located under the crosshair) indicates the actual GCP location.
When four or more GCPs are selected, the predicted X, Y coordinates for the selected warp, the X and Y error, and the RMS error are listed in the GCP List table.
| Tip For the best results, try to minimize the RMS error by refining the positions of the pixels with the largest errors or by removing them (see Minimizing RMS Error). Errors can be reduced by using more points. If you only have a few points, place them near the image corners or widely scattered in the image. |
The number of GCPs selected displays in the Ground Control Points Selection dialog. After a number of GCPs sufficient enough to conduct a 1st degree polynomial warp are selected, the total RMS error displays in the Ground Control Points Selection dialog and the RMS error for each point is listed in the Image to Image GCP List table.
The degree of polynomial used for calculating the error displays in the Degree box in the Selection dialog and can be changed when a sufficient number of GCPs are selected.
| Tip To see which points have the highest RMS errors, select Options Order Points by Error in the Ground Control Points Selection dialog. The points in the CGP List are reordered so that those with the highest errors appear at the top of the list. |
Use the Image to Image GCP List to edit and update positions, turn points on and off, delete selected points, and predict point locations.
To display the Image to Image GCP List, click Show List in the Ground Control Points Selection dialog.
To hide the Image to Image GCP List:
To center the Zoom window over any of the selected GCPs, click on the desired GCP in the Image to Image GCP List and click Goto, or click on the GCP number in the Image to Image GCP List.
The marker outlining the selected GCP is positioned at the center of the Zoom window for both the base and warp images.
To have GCPs selectively ignored during registration, click on the point to ignore and click On/Off.
The RMS error and the spatial transformation are recalculated without using the selected points. The + next the GCP number changes into a - in the Image to Image GCP List and the color of the GCP marker changes.
To turn the GCP on again, click on the point in the list and click On/Off again.
You can edit the location of a GCP by changing the X and/or Y values in the Image to Image GCP List, or by interactively selecting new locations in the Zoom windows.
To change a GCP from the Image to Image GCP List:
The changes are reflected in the Image to Image GCP List and in the base and warp images.
| Note If several GCPs have already been selected, a significant delay may occur while the GCPs are redrawn and the error is recalculated. |
To interactively move a GCP:
The location of the GCP is replaced with the new pixel positions in the Image to Image GCP List. The Zoom windows for both images are centered over the new location.
To permanently remove any single control point from the list in the Image to Image GCP List, click on the GCP to remove and click Delete.
Use the Options menu in the Ground Control Points Selection dialog to warp from the currently displayed band or to warp from a file. You can also select image-to-map type warping if your base image is georeferenced. This allows you to change the output pixel size and projection type of the warped image.
The Registration Parameters dialog appears. The details of the various warp options available in ENVI are discussed in Warping and Resampling Image-to-Image and Warping and Resampling Image-to-Map.
Use the Options menu in the Ground Control Points Selection dialog to control the ground control points labels, colors, and ordering; to reverse the base and warp images; and to set other preferences.
To reverse the positions of the base and warp GCPs, select Options
Reverse Base/Warp.
For 1st order polynomials, you have the option of selecting RST (Rotation, Scaling, and Translation) calculation of errors, in the Ground Control Points Selection dialog, select Options
1st Degree (RST Only). A check mark next to the menu option indicates it is enabled.
To predict the location of a GCP in the warp image based on the warping determined by the current GCPs and the selected polynomial degree:
To have the GCP location in the warp image predicted automatically:
Auto Predict. A check mark next to the menu option indicates it is enabled.
When you adjust the pixel location using the Zoom window or the Zoom box in the Image window, the Zoom box and crosshairs of the warp Zoom window move to the predicted pixel location.
To turn the GCP labels off or on, select Options
Label Points. A check mark next to the menu option indicates it is enabled.
To select whether the GCP pairs display in the list by their GCP ID# or by RMS Error, select Options
Order Points. A check mark next to the menu option indicates ordering by RMS error is enabled. No check mark indicates the list order is by GCP ID#
Set Point Colors. The GCP Colors dialog appears.
GCP ID order is the order in which they were selected. RMS error order lists the GCP with the highest error first.
To delete all of the GCPs listed in the Image to Image GCP List, select Options
Clear All Points.
Image coregistration is the process of geometrically aligning two or more images so that corresponding pixels representing the same objects may be integrated or fused. Automatically Coregister Images describes how to perform image coregistration.
Use the File menu in the Ground Control Points Selection dialog to save and restore ground control points files.
Save GCPs to ASCII.
.pts extension or use the Choose button to select an output filename.
To save the polynomial coefficients to an ASCII file:
The ASCII file contains the polynomial degree and polynomial coefficients P and Q, where:

Where x¢and y¢ are the locations in the base image, x and y are the locations in the warp image, N is the polynomial degree, and P and Q are the polynomial coefficients. The P and Q polynomial coefficients matrices are written to the file by rows, one element per line. For example, a 2 x 2 matrix of P and Q would be written in the following format:
P[0, 0] Q[0, 0]
P[0, 1] Q[0, 1]
P[1, 0] Q[1, 0]
P[1, 1] Q[1, 1]
To exit the Ground Control Points Selection dialog, select File
Cancel.
| Note If the current points have not been saved to a file, a prompt appears. |
Use Select GCPs: Image-to-Map to select ground control points (GCPs) for image-to-map registration. Use the Zoom window (image-to-map registration requires that at least one image displays) to select GCPs. When selecting GCPs, you can select subpixel coordinates. Choose to enter corresponding map coordinates manually, from a vector window, from a base image, or from GPS link. When enough points to define a warp polynomial are selected, GCP locations in the warp image can be predicted. GCPs can be saved and restored to/from files and the color labels and ordering of the GCP markers can be changed. See Warping and Resampling for descriptions of the warping methods.
Registration
Select GCPs: Image to Map. The Image to Map Registration dialog appears.
| Tip See the "Image Georeferencing and Registration" ENVI Tutorial for additional step-by-step descriptions of image registration. |
The procedure for selecting Ground Control Points (or Tie Points) is similar to that for image-to-image registration (see Image-to-Image Ground Control Points).
The coordinates of the selected location appear in the Ground Control Points Selection dialog in the fields labeled Image X and Image Y. Subpixel coordinates are supplied to provide higher accuracy in selecting GCPs (see Collecting Ground Control Points (Image-to-Image)).
| Note Select Tools Pixel Locator from the Image window menu bar to select the pixel positions and provide whole number GCP coordinates by clicking Export (see Using the Pixel Locator). |
| Note Use negative (-) longitude for the western hemisphere and negative (-) latitude for the southern hemisphere. |
The corresponding map projection coordinates are calculated automatically.
To view the Image to Map GCP List, click Show List.
The Image to Map GCP List appears with the GCPs listed in a table. For a description of the Image to Map GCP List, see Using the Image to Map GCP List.
When a GCP is added, a marker is placed in the image. The GCP marker in the image is the identifying number of the GCP displayed next to an encircled crosshair. The marker indicates the selected pixel (or subpixel location); the center of the marker (located under the crosshair) indicates the actual GCP location.
| Note When GCPs are selected from a vector window, a marker is also placed in the vector window. The marker is the identifying number of the GCP displayed with a +. |
When enough points are entered, the predicted X,Y coordinates for the selected warp, the X, Y error, and the RMS error are listed in the Image to Map GCP List.
The number of GCPs selected displays in the Ground Control Points Selection dialog. When a sufficient number of GCPs are selected to conduct a 1st degree polynomial warp, the total RMS error is also displayed.
| Tip For the best registration, try to minimize the RMS error by refining the positions of the pixels with the largest errors or by removing them (see Minimizing RMS Error). Errors can be reduced by using more points. If you only have a few points, place them near the image corners or widely scatter them in the image. |
For details about editing, predicting, and positioning GCPs, see GCP Options. For details about managing GCPs, see Managing GCPs.
If you have two files containing the same scene and one of the files contains map coordinate data, you can use that file as a base image and add Ground Control Points to the image that is not georereferenced.
Registration
Select GCPs: Image to Map. The Image to Map Registration dialog appears.
The coordinates of the selected location display in the Pixel Locator dialog, in sample and line order. Positioning in the Zoom window provides subpixel coordinates so floating point coordinate values are shown in the dialog.
If you have a vector file for the area to map-register, you can extract the map coordinates directly from the vector data and load them into the Ground Control Points Selection dialog.
To save the GCP points and all the associated information and attributes as an ENVI vector file, in the Available Vectors List, select the new registration's GCP vector layer, and select File
Save Memory Layers to File.
To use the GCPs to perform a standard registration, select either Options
Warp Displayed Band or Options
Warp File in the Ground Control Points selection dialog. The Registration Parameters dialog appears. For details, see Warping and Resampling Image-to-Map.
Using the Image to Map GCP List is similar to using the Image to Image GCP List. See Using the Image to Image GCP List
See GCP Options for details on the Ground Control Points Selection dialog options.
ENVI Online Help (August 12, 2005)