ArcGIS Blog

Imagery & Remote Sensing

ArcMap

Raster Image Processing Tips and Tricks — Part 2: Mosaicking

By Allison Muise

This is the second in a series of blog posts that will cover some tips and tricks for performing the following operations on a series of aerial images using ArcGIS 10.0:

These images are from a project I recently completed looking at the structure of a seabird colony off the coast of Nova Scotia, Canada, and are representative of the less-than-ideal imagery many of us have to work with regularly. The final goal of the project was to produce a detailed classification of the island’s vegetation from a series of digital aerial photographs. The first step in this process, georeferencing the images, was covered in the previous post. Now those images must be combined into a single raster. In this post I am going to look at tips and tricks you can apply to improve the quality of your own mosaicked imagery.

When working with aerial imagery, it is rare that the feature(s) of interest will fit neatly inside a single image. Generally, several images will need to be mosaicked (“stitched together”)into a single combined image. ArcMap 10.0 offers many options for mosaicking raster images. For the purposes of this project, I selected the geoprocessing Data Management tool Mosaic tool, but I suggest reading the help topic What mosaicking tools are available in ArcGIS? for guidance in selecting the method that will work best for your project.

Stack your rasters

Making a good mosaic requires some planning. Opening all of your images in ArcMap and playing with their order can help you decide which images should overlay others. Take into consideration the colors, lighting, how the features changed as the images were recorded, and the accuracy of the georeferencing in different regions of the imagery. In this case, I have only two rasters, one which covers the southern portion of the island, and one which covers the north. By re-arranging their order I can see that, although the areas of overlap are obvious regardless of the order, the overlap will be easier to hide in the north due to the patterns observable on the beach.

Figure 1: The seam between the two images is quite obvious due to changes in lighting and image quality as well as discontinuities along the shore and vegetation.

Build new seams

Seams (areas where two overlapping images meet) that are obvious can be visually distracting, as well as disrupt classifications and other raster analyses. Color balancing can also be helpful when disguising seams caused by variation in the color, contrast and brightness of the images. Here the seam is obvious primarily due to discontinuities from warping in the images which was not resolved by georeferencing, so color balancing isn’t required for these particular images.

A simple way to conceal a seam is to move it somewhere else in the image where it will be less noticeable. Here, I created a polygon feature class and drew a polygon (a portion of which is shown in translucent orange in Figure 2) over the portions of the top image I wanted to keep. Rather than having straight edges which cut across features, the edges of the polygon gradually wind their way across the image following places of natural color and texture change such as edges of vegetation and patterns in the rocks on the beach. If both the top and bottom images are displayed, peeling back the top image with the Swipe tool on the Effects toolbar can help you find areas where the seam will be discrete. Once the polygon is drawn, the Extract by Mask tool will create a new raster from the areas of the image under the polygon. This extracted image will be used in the final mosaic rather than the original raster.

Figure 2: The orange polygon will be used to extract only the covered area from the raster for use in the mosaic.

Creating the mosaicked raster

Creating the mosaic itself is as simple as loading your rasters into the Mosaic tool in the correct order. Using the default mosaic type (“LAST”) the raster that is added first will appear at the back of the mosaic and the raster that is added last will appear on top. This is very important to keep in mind, especially if you have taken the time to manipulate where the seams will be in your images, so take care to add the output from Extract by Mask so it will appear at the top of the mosaic.

As a warning, this tool will permanently alter the specified target raster! To preserve the original images, either save a copy to another location, or use the Mosaic to New Raster tool. In this case I saved copies of the images as I needed to specify the background ‘no data’ values and this functionality is not available with the Mosaic to New Raster tool. Once again, I strongly recommend reading the help topic What mosaicking tools are available in ArcGIS? for each of the mosaic methods as each have different parameters and result in different outputs

Figure3: The final mosaic created with the re-shaped top image. While the seam is still noticeable in the water, it is nearly invisible where it crosses the land.

 

More Information

Learn more about Mosaics

Learn more about the Mosaic tool

Learn more about the Effects Toolbar

Learn more about the Extract By Mask tool

Thank you to the Applied Geomatics Research Group of Middleton, Nova Scotia, Canada for the imagery

Share this article