Skip To Content

Replace pixels

Mit der Image Analyst-Lizenz verfügbar.

The Capture group has two tools: Copy Region kopieren and Replace Region ersetzen. Copy allows you to specify an area in the region in which you want to copy the pixels, and then dynamically move and apply it to a different area. Replace allows you to specify a region that you want replaced, and lets you dynamically drag the working region to another area to be used to fill it. Both of these tools work on pixels from the current layer being edited, or you can choose another raster layer to work with in the map by specifying the Source Layer.

Both Copy and Replace are tools you can use to improve problematic areas in your imagery, such as clouds. You can replace the clouds with the same polygon shape of another area in the image that is not cloudy. If you have two or more overlapping images, you can use another layer to replace the clouds, such as the same location collected on a clear day.

Copy a region

The Copy tool allows you to copy a region from a raster layer, and paste that region onto a different raster dataset that you want to edit. For example, you may want to copy an existing neighborhood to replace a neighborhood obscured by clouds. This is similar to a copy and paste operation using a block of pixels.

The workflow follows these three steps:

  1. Start a Pixel Editor session.
  2. Copy and replace a region.
  3. Save your edits.

Start a Pixel Editor session

Pixel Editor can only edit one layer at a time per map view. The contextual layer used to start the pixel editor session will be the only layer that can be edited in that map view. If you want to edit another layer in the map, you must first close the Pixel Editor, select the other layer in the Contents pane, then open the Pixel Editor to operate on that layer.

  1. In the Contents pane, highlight the raster layer you want to edit.
  2. Click the Imagery tab.
  3. Click the Pixel Editor button Pixeleditor starten.

Copy a region

Now that the Pixel Editor session has started, we can copy a region and paste it in a new location. For example, we will use an existing housing development, and use that block of pixels on a vacant lot to visualize what the new lot will look like.

  1. Zoom in to the area where you want to copy a region of data.
  2. On the Pixel Editor tab, click the drop-down arrow below Region Mode, and choose New Neue Region definieren.
  3. Click the drop-down arrow below Region, and choose Polygon Polygon skizzieren.
  4. Draw a polygon around an existing housing development. We will be copying that region to the vacant lot to the northwest.

    Select a region

  5. Make sure that the Source Layer is on the correct layer, which is the current layer being edited.
  6. Click the drop-down arrow below Capture, and choose Copy Region kopieren.

    If a region is not selected when you choose Copy, you can create a polygon region.

  7. In the middle of the copied polygon, a small yellow circle will appear in the center of the polygon. Click and hold your mouse button on the circle, and drag it to the area in the map where you want to place it.

    Move region

    Drag the yellow circle to move the copied region to another location.

  8. If you are satisfied with the placement of the region, click anywhere on the map display to accept the update. Notice that the exact copy of the selected region is pasted into the location where the vacant lot used to be.

    Copied region

Save your edits

To commit your edits back to the data source, you must save your edits.

  1. On the Save group, click the Save button Speichern.

    To save your edits without affecting the source data, save to a new file. In the Save group, click the Save As Speichern unter button, and specify a location and file name for the new file.

  2. If you are done editing the raster dataset, click Close Pixel Editor Schließen on the Close group.

Replace a region

The Replace tool allows you to cover a region with another block of pixels. It is similar to Copy, except you first choose the region you want to replace. This is useful to replace a region that you want to improve. For example, you may want to replace an area of cloud cover.

The workflow follows the three steps below:

  1. Start a Pixel Editor session.
  2. Replace a region.
  3. Save your edits.

Start a Pixel Editor session

Pixel Editor can only edit one layer at a time per map view. The contextual layer used to start the pixel editor session will be the only layer that can be edited in that map view. If you want to edit another layer in the map, you must first close the Pixel Editor, select the other layer in the Contents pane, then open the Pixel Editor to operate on that layer.

  1. In the Contents pane, highlight the raster layer you want to edit.
  2. Click the Imagery tab.
  3. Click the Pixel Editor button Pixeleditor starten.

Replace a region

Now that the Pixel Editor session is activated, you can replace the cloudy region. In this scenario, we have an overlapping raster that we will use to replace the clouds.

  1. Zoom in to the area where you want to copy a region of data.
  2. On the Pixel Editor tab, click the drop-down arrow below Region Mode, and choose New Neue Region definieren.
  3. Click the drop-down arrow below Region, and choose Polygon Polygon skizzieren.
  4. Draw a polygon around the cloudy area.

    Region around the clouds

  5. Make sure that your Source Layer is on the correct layer, which is the layer that you are not editing.

    Source Layer drop-down list

  6. Click the drop-down arrow below Capture, and choose Replace Region ersetzen.

    If there is no selected region when you choose Replace, you can create a polygon region.

  7. In the middle of the copied polygon, a small yellow circle appears in the center. Click and hold your mouse button on the circle, and drag it to an area on the image where you want to capture the replacement pixels. In this case, we want to use the exact same location, but using the other layer in your Contents pane.
  8. When you are satisfied with the placement of the region, click anywhere on the map display to accept the update.

    Result of Replace

Save your edits

To commit your edits back to the data source, you must save your edits.

  1. On the Save group, click the Save button Speichern.

    To save your edits without affecting the source data, save to a new file. In the Save group, click the Save As Speichern unter button, and specify a location and file name for the new file.

  2. If you are done editing the raster dataset, click Close Pixel Editor Schließen on the Close group.

Verwandte Themen