|
ENVI User's Guide: Map Tools |
|
Use mosaicking to overlay two or more images that have overlapping areas (typically georeferenced) or to put together a variety of non-overlapping images and/or plots for presentation output (typically pixel-based). Individual bands, entire files, and multi-resolution georeferenced images can be mosaicked. You can use your mouse or pixel- or map-based coordinates to place images in mosaics and you can apply a feathering technique to blend image boundaries. You can save the mosaicked images as a virtual mosaic to avoid having to save an additional copy of the data to a disk file. Mosaic templates can also be saved and restored for other input files.
Select Map
Mosaicking
Pixel Based. The Pixel-Based Mosaic window appears.
Use the Import menu to choose input bands for the mosaic.
Import Files or Import
Import Files and Edit Properties. Use the second option if you want to enter a background see-through value, perform feathering, position the image on input, select which bands will appear in the mosaic display, or perform color balancing.
| Note Individual bands or entire files can be mosaicked. |
To select individual bands, click the Select By arrow toggle button in the Mosaic Input File dialog to select Band.
![]() |
| Note The background value mask is built from the first band used in the file. If a pixel in the first band used contains this background value, then that pixel will be masked out for all bands in the mosaicking process. |
The coordinates for the upper-left corner of the input image are listed in the X0 Y0 text boxes at the bottom of the Pixel Based Image Mosaicking dialog. Images with x start and y start values in their headers are automatically placed in the mosaic with the defined offset. Select from the following options:
The number of the currently selected image is shown in the text box labeled #. Any changes to the X0, and Y0 fields will be applied to this item.
Position Entries into Grid. The Position Images dialog appears. Enter the number of grid columns and rows, enter the number of border pixels to place around the images and enter the number of separation pixels to place between the images. Click OK and the mosaic image will be resized to fit the grid.
Center Entries.
Positioning Lock On. Now click and drag the images to the desired position.Use Color Balancing to match the statistics from one image to another (or many others) to balance the data range between different images. Gains and offsets are calculated from the fixed image and applied to the adjusted images so the adjusted images end up with the same statistical range. Gains and offsets are calculated individually for each band in the file. The statistics can be obtained from entire images or only from overlapping areas. To apply color balancing to a mosaic do the following.
| Note If you have data values to ignore, you must set a Data value to ignore value in the Edit Entry dialog so they will not be included in the calculated statistics. |
Apply to apply the color balancing and mosaicking.
| Note Color balancing cannot be done when using virtual mosaics. |
| Note The background value mask is built from the first band used in the file. If a pixel in the first band used contains this background value, then that pixel will be masked out for all bands in the mosaicking process. |
The resulting color balanced mosaic will appear in the Available Bands List.
Use the mosaicking right-click menus to change the image layer levels, edit image parameters or to remove an image from the mosaic.
| Note Right-click in the part of the mosaic window without an image to display a menu containing the Import and Options menu items. |
To bring an image to the front of all other images in the mosaic:
| Note If the image is already on top, this Raise Image to Top option will not be available. You can raise or lower an image one level by selecting Raise Image One Position or Lower Image One Position from the right-click menu. |
To edit the background see-through value, feathering parameters, positioning, or displayed band:
To remove an image from the mosaic:
Use the Options menu to change mosaic size, select positioning options, turn on/off the image frame graphics, and to clear all the entries.
To enter a new size, in pixels, for the mosaic:
To place the images into a grid, center the images, or lock the image positions so they can be moved as a group, see Positioning Images.
To turn on/off the thumbnail images displayed in the mosaic window, select Options
Use Thumbnail Images menu item.
To turn the colored graphic frames around the images in the mosaic off or on, select Options
Image Frames.
To clear all the entries from the mosaic, select Options
Clear All Entries.
It is not necessary to save the mosaic to an output file unless feathering or color balancing was used. Instead, you can save the mosaic to a virtual mosaic. ENVI uses a virtual mosaic file (saved mosaic template) like an image file. When a virtual mosaic template file is opened, ENVI opens the individual image files that make up the mosaic and puts them together on-the-fly. ENVI cannot do feathering or color balancing on-the-fly, however. The mosaic template file can be displayed in ENVI and annotated, stretched, etc., like any other image. Using a virtual mosaic prevents having multiple files containing the same images and therefore saves disk space.
The template file is a virtual mosaic file in ASCII format. It contains the mosaic size, filenames, bands used, data dimensions, and mosaic information. The Info field has the X and Y offsets, edge feathering distance, cutline feathering distance, and data value to ignore.
The mosaic template file appears in the Available Bands List and can be used as input for processing with other functions.
| Note The template file can be edited, using any text editor, to change the file or the bands used in the mosaic. |
Restore Template.
mos filename to load into the mosaic.
Replace the files with new images by using Options
Replace Entry or edit the filenames in the ASCII .mos file (see Creating Virtual Mosaics).
To open a virtual mosaic (saved template):
The virtual mosaic file and the files that make up the virtual mosaic are listed in the Available Bands List.
Use Apply to build a mosaic after all of the images for the mosaic are positioned. Building the mosaic outputs the mosaic to a file.
| Note It is not necessary to build the mosaic to an output file unless feathering or color balancing was used. The mosaic can be saved as a virtual mosaic to save time and disk space (see Creating Virtual Mosaics). |
Apply. The Mosaic Parameters dialog appears:
| Note The background value mask is built from the first band used in the file. If a pixel in the first band used contains this background value, then that pixel will be masked out for all bands in the mosaicking process. |
A status window displays the percent complete while the mosaic is being built. The mosaic name appears in the Available Bands List upon completion.
To close the Pixel Based Mosaic dialog, select File
Cancel.
Use Georeferenced Mosaicking to automatically overlay multiple georeferenced images. You can mosaic multi-resolution georeferenced images, apply feathering and color balancing to the images, and import georeferenced images and non-georeferenced images into the same mosaic.
![]() |
Use the Import menu to select input files for the mosaic. The first image imported into the mosaic must be a georeferenced image. The mosaic size will be set to the georeferenced image size.
Import Files or Import
Import Files and Edit Properties. Use the second option if you wish to enter a transparent background value, perform feathering, select which bands will appear in the mosaic display, or to perform color balancing.
| Note The background value mask is built from the first band used in the file. If a pixel in the first band used contains this background value, then that pixel will be masked out for all bands in the mosaicking process. |
| Note Individual bands or entire files can be mosaicked. |
To select individual bands click the Select By arrow toggle button in the Mosaic Input File dialog to select Band.
When you select the first input file for the mosaic, a thumbnail image will appear and the mosaic size is set.
| Note The background value mask is built from the first band used in the file. If a pixel in the first band used contains this background value, then that pixel will be masked out for all bands in the mosaicking process. |
Georeferenced images are automatically positioned within the output mosaic according to their geographic coordinates. New images are placed in front of the other images and the mosaic size is automatically adjusted to accommodate the new images. If a properly georeferenced image is imported with map coordinates that lay outside the current map extent of the mosaic, the mosaic size is automatically changed to include the new image location.
For multi-resolution mosaicking, the output pixel size is entered on output and ENVI automatically resamples the lower resolution images to match.
| Note You cannot adjust the mosaic positions of georeferenced images. |
Use the mosaicking right-click menus to change the image layer levels, edit image parameters or to remove an image from the mosaic.
| Tip Right-click in the part of the mosaic window without an image to access the Import and Options menus. |
Use the Options menu to change the base projection, turn on/off the thumbnail images, turn on/off the colored image frame graphics, and to clear all the entries.
| Note The other unavailable options on this menu are used only in Pixel Based Mosaicking. |
To change the base projection of the images, select Options
Change Base Projection. Select the new projection and enter the necessary parameters (for more information, see Selecting Map Projection Types).
To turn on/off the thumbnail images displayed in the mosaic window, select Options
Use Thumbnail Images menu item.
To turn off or on the graphic frames around the images in the mosaic, select Options
Image Frames.
To clear all the entries from the mosaic, select Options
Clear All Entries.
It is not necessary to save the mosaic to an output file unless feathering, multi-resolution data, or color balancing were used. Instead, you can save the mosaic to a virtual mosaic. ENVI uses a virtual mosaic file (saved mosaic template) like an image file. When a virtual mosaic template file is opened, ENVI opens the individual image files that make up the mosaic and puts them together on-the-fly. ENVI cannot do feathering, multi-resolution resampling, or color balancing on-the-fly, however. The mosaic template file can be displayed in ENVI and annotated, stretched, etc., like any other image. Using a virtual mosaic prevents having multiple files containing the same images and therefore saves disk space.
The template file is a virtual mosaic file in ASCII format. It contains the mosaic size, filenames, bands used, data dimensions, and mosaic information. The Info field has the X and Y offsets, edge feathering distance, cutline feathering distance, and data value to ignore.
The virtual mosaic option appears in the Available Bands List and can be used as input for processing with other functions.
To open a virtual mosaic (saved template):
The virtual mosaic file and the files that make up the virtual mosaic are listed in the Available Bands List.
Use Apply to build a mosaic after all of the images for the mosaic are positioned. Building the mosaic outputs the mosaic to a file.
| Note It is not necessary to save the mosaic to an output file unless feathering, multiresolution data, or color balancing were used. The mosaic can be saved as a virtual mosaic file to save time and disk space (see Creating Virtual Mosaics). |
Apply. The Mosaic Parameters dialog appears with the output pixel size defaulted to the highest resolution of input images. ENVI automatically resamples lower resolution images to match. Non-georeferenced images in the mosaic are not resampled.
To change the output pixel size, enter the desired size in map units (i.e. meters, degrees, etc.) in the appropriate text boxes.
| Note The background value mask is built from the first band used in the file. If a pixel in the first band used contains this background value, then that pixel will be masked out for all bands in the mosaicking process. |
A status window showing the percent complete appears while the mosaic is being built. The mosaic name will appear in the Available Bands List when completed.
To exit the Georeferenced Image Mosaicking dialog, select File
Cancel.
Use Feathering to blend the edges of overlapping areas in input images for pixel-based and georeferenced mosaicking. The two types of feathering in ENVI are edge feathering and cutline feathering.
| Tip To use feathering when mosaicking images, import the bottom image without feathering. Import the overlapping images with edge or cutline feathering as desired. |
Use edge feathering to blend the edge of a top image with the bottom image based on a specified blending distance (see Figure 10-3). The distance specified is used to create a linear ramp that averages the two images across that distance. For example, if the specified distance is 20 pixels, 0% of the top image is used in the blending at its edge and 100% of the bottom image is used to make the output image. At the specified distance (20 pixels) into the image from the edge, 100% of the top image is used to make the output image and 0% of the bottom image is used. 50% of each image is used to make the output at 10 pixels in from the edge.
Use Cutline feathering to blend the boundary between two overlapping images based on a user-defined cutline. A specified blending distance is used to blend the images along the cutline (see ).
| Note Cutlines must be defined using the annotation tools prior to mosaicking. The annotation file must contain a polyline defining the cutline that is drawn from edge-to-edge and a symbol placed in the region of the image that will be cut off (see Annotating Images). |
The distance specified is used to create a linear ramp that averages the two images across that distance from the cutline outwards. For example, if the specified distance is 20 pixels, 100% of the top image is used in the blending at the cutline and 0% of the bottom image is used to make the output image. At the specified distance (20 pixels) out from the cutline, 0% of the top image is used to make the output image and 100% of the bottom image is used. 50% of each image is used to make the output at 10 pixels out from the cutline.
Import Files and Edit Properties or right-click on the image and select Edit Entry.
The cutline will appear as a graphic overlaid on the image.
Large QuickBird datasets are split into tiles. A QuickBird tile file (.til) is usually provided as a descriptive header for these tiles. The tile file contains information about the number of tiles, the name of each tile, and their spatial relationship to one another. ENVI uses this file to access the tiles and automatically create a virtual mosaic of the entire dataset. The resulting dataset can then be used as a single entity within ENVI.
To read a QuickBird tile file and automatically create a virtual mosaic of its tiles, use the steps in Opening Mosaic Tiled QuickBird Files.
ENVI Online Help (August 12, 2005)