Resampling Using ArcView Image Analysis

 

Resampling on the Fly

 

  1. If necessary, start ArcView GIS and load the ArcView Image Analysis Extension.
  2. Open a new view and click the Add Theme Button.
  3. Navigate to the avtutor directory. Double click on the ia_data directory under the avtutor directory.
  4. Click on the Data Source types drop-down list and choose Feature Data Source.
  5. Double click seattle.shp to add it to the view.

 

Customizing the View:

 

  1. Double click the title of the Seattle.shp theme to access the Legend Editor.
  2. Double click the line symbol to access the Pen Palette. Click the Size drop-down list and choose 1.
  3. Click the Color Palette button . Choose bright orange from the Color Palette. Close the Color Palette.
  4. In the Legend Editor, click Apply. Close the Legend Editor.
  5. Click the check box for the Seattle.shp theme to draw it in the view.


 

 

 

 


Add an Image File to Your View

 

  1. Click on the Add Theme button.
  2. Navigate to the avtutor directory. Double click on the ia_data directory under the avtutor directory.
  3. Click the Data Source Types drop-down list and choose Image Analysis Data Source.
  4. Double click seattle_photo.tif to add it to the view.
  5. If the Calculate Pyramid Layers dialog appears, click YES to calculate pyramid layers. In the event this dialog does not appear, it is because the image has previously built pyramid layers.
  6. Drag Seattle_photo.tif theme below the Seattle.shp theme in the Table of Contents.
  7. Make the Seattle_photo.tif theme active and click the check box to draw it in the view.

 

After you click the check box for the Seattle_photo.tif theme, you’ll notice that it does not draw in the view. This is your first indication that the image and the feature theme need to be aligned.

 


  1. Click the Zoom to Full Extent Button.

 

 

 


  1. Move your mouse over the lower portion of the view (the location of the Image Analysis theme). Notice that the coordinates are small because images, before rectification, are usually not in a map coordinate system. If you move the mouse over the upper portion of the view (the location of the feature theme), the coordinates are large. You will use the Align tool to make the image and the feature theme draw in roughly the same area in the view.

 

Using the Align tool to Resample on the Fly

 

  1. Make sure the Seattle_photo.tif is active in the view.
  2. From the view’s toolbar, click the Align Tool .

 


 

 


Creating Control Points

 

Once you have clicked the Align tool the image and the feature theme are both drawn in the view, you are ready to start collecting control point pairs. Control points are distinctive landmarks and road intersections that can easily be identified on both the feature theme and image views. The locations of the control points allow the ArcView Image Analysis extension to align the two themes. Once each control point pair, or link, is selected, you get immediate visual feedback to validate your choice.

 

 

 

 

 


 

 


  1. Move your cursor over the area indicated with the circle in the previous illustration.

  2. Click the right mouse button and select Zoom to Image Resolution. The area you clicked is centered in the view.

 


  1. Click on the intersection of the streets in the Seattle_photo.tif theme. The point in the image is the From point. Move your cursor and notice a rubber-banding line indicating you are going to collect the To point next.
  2. Click the same intersection in the Seattle.shp theme. It is slightly to the right of the intersection in the image. This is the To point. After you click the To point, the image shifts to make the From and To points align.

 


 


  1. Click the right mouse button and choose Zoom to Active Theme(s). This will allow you to see the entire image so the next set of control points can be identified.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

 

 


Second Control Point Pare

 

 

  1. Make sure that the image, the Seattle_photo.tif theme, is active in the view.
  2. Move your cursor over the area indicated with the circle in the previous illustration.
  3. Click the right mouse button and select Zoom to Image Resolution.


 


  1. Using the illustration of the image and the feature theme as a guide, click the intersection of the freeway ramps and surface streets in the Seattle_photo.tif theme. This is a From point.
  2. Click the same intersection in the Seattle.shp theme to create a To point.


 

 



  1. Click the right mouse button and choose Zoom to Active Theme(s) to prepare for the identification of the third control point pair.

Create Third Control Point

 

  1. Make sure that the image, the Seattle_photo.tif theme, is active in the view.
  2. Move your cursor over the area indicated with the circle in the previous illustration. You will see a street with a noticeable bend.
  3. Click the right mouse button and select Zoom to Image Resolution.

 

 

  1. Using the illustration of the image and the feature theme as a guide, click on the intersection in the seattle_photo.tif theme to create a From point.
  2. Click the same intersection in the Seattle.shp theme to create a To Point.

 


 


 


Create the Forth Control Point Pair

 


1.  Make sure that the image, the Seattle_photo.tif theme, is active in the view.

  1. Move your cursor over the area indicated with the circle in the previous illustration. In the Feature theme, you can see a city block shaped like an upside-down and backwards “L”.
  1. Click the right mouse button and select Zoom to Image Resolution. The area you click is centered in the view.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  1. Using the illustration of the image and the feature theme as a guide, click the intersection of the road to the right of the large building in the Seattle_photo.tif theme. This creates a From point.
  2. Using the illustration of the image and the feature theme as a guide, click the same intersection in the Seattle.shp theme. This creates a To Point.

 

 

Once a least four control point pairs are collected, the RMS error is displayed in the status area of the ArcView GIS window. An RMS error , or root mean square error, is the distance measured in pixels between the input location (From point) and the rectified location (To point), after having applied the current transformation. The lower the RMS error during rectification, the more closely the feature theme and the image align.

 

  1. Notice the RMS error reported in the status area of the ArcView GIS window. In this example, the RMS error is 3.96. Yours will likely be different, based on the exact placement of your control points.
  2. Click the right mouse button and choose Zoom to Active Theme(s) to view the feature theme and image now that it is aligned.

 

 

 

Save Control Points to a New Image

 

The ArcView Image Analysis extension gives you the option of saving the control points as a shapefile. You are going to save the control points you created in this part of the exercise. You are also going to create a copy of the original image with the correct alignment. The process is called resampling. That means that the original image, Seattle_photo.tif, will not be changed.

 

  1. Make sure Seattle_photo.tif theme is active in the view.
  2. From the Theme menu, choose Save Image As.
  3. In the Save Control Points dialog box, click Yes to save the control points as a Shapefile.
  4. In the Save Control Points dialog, navigate to the directory where you want to save the control points. Type the name “seattle_cp.shp”, and click OK.
  5. In the Add the View dialog, click Yes to add the control point shapefile to the view.
  6. In the Save As dialog that appears, navigate to the directory where you want to save a copy of the rectified image.
  7. Click the List Files of the Type drop-down list and choose IMAGINE Image.
  8. In the File Name text box, type the name “seattlealign.img”, and click OK.

 

The resampling process takes a few moments. You can watch the progress bar in the status area of the ArcView GIS Window.

9. In the Add View Dialog, click Yes to add the resampled image to the view.