Copy and replace pixels

Disponible avec une licence Image Analyst.

Le groupe Capture (Capturer) contient les outils Copy Region (Copier la région) Copier la région et Replace Region (Remplacer la région) Remplacer la région. Ces outils visent à copier ou remplacer les pixels du même jeu de données ou d’un jeu de données différent dans la carte. Si vous utilisez un autre jeu de données dans la carte, définissez la couche de carte à utiliser en la sélectionnant dans la liste déroulante Source Layer (Couche source) ; la couche doit avoir la même profondeur de bit que le raster en cours de mise à jour. La couche cible correspond toujours au jeu de données raster que vous mettez à jour.

Both Copy Region and Replace Region are tools you can use to improve problematic areas in your imagery, such as areas obscured by clouds. You can replace the clouds with another area that is not cloudy. This replacement region can come from another image overlapping the area, or another area within the same image. While copying a region, and the active region is still in preview mode, you can use the yellow handle in the middle of the region to move it to the appropriate location.

For the best results, the replacement region should be of similar radiometry and seasonality. If the result of your replaced multispectral or panchromatic region does not look seamless, you can use color matching and blending techniques to make the region look seamless. Color matching adjusts the color of the new region to match the base imagery, while blending feathers the pixels along the perimeter of the region. While the region is active and in preview mode, you can use shortcut keys to color match and blend the region into the base imagery. You can only choose one type of color matching method at a time, and additionally you can choose to blend the pixels along the edges. When the preview is acceptable, you can double-click anywhere in the map to update the region.

Color correction shortcut keys for multispectral and panchromatic imagery

ShortcutColor matchingBlending

Spacebar

None

Yes

Shift

Color match, using all the pixels in the region to compute the match.

No

Shift + Space

Color match, using all the pixels in the region to compute the match.

Yes

Shift + S

Color match, using only the pixels along the perimeter of the region to compute the match.

No

Shift + S + Space

Color match, using only the pixels along the perimeter of the region to compute the match.

Yes

Remarque :

These keyboard shortcuts cannot be used for elevation data or thematic data.

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

L’éditeur de pixel ne peut mettre à jour qu’une couche à la fois par vue cartographique. La couche contextuelle utilisée pour démarrer la session Éditeur de pixel est la seule couche qui peut être mise à jour dans cette vue cartographique. Pour mettre à jour une autre couche dans la carte, vous devez fermer l’éditeur de pixel, sélectionner l’autre couche dans la fenêtre Contents (Contenu), puis rouvrir l’éditeur de pixel pour agir sur cette couche.

  1. In the Contents pane, highlight the raster layer you want to edit.
  2. Cliquez sur l’onglet Imagery (Imagerie).
  3. Cliquez sur le bouton Pixel Editor (Éditeur de pixel) Lancer l’éditeur de pixel.

Copy a region

Now that the Pixel Editor session has started, you can copy a region and paste it in a new location. For example, you 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 Définir une nouvelle région.
  3. Click the drop-down arrow below Region, and choose Polygon Construire un polygone.
  4. Draw a polygon around an existing housing development. You 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 Copier la région.

    If a region is not selected when you choose Copy Region, 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. While the region is still in preview mode, you can choose to color correct or blend the region. Keep the shortcut keys held down to preview the color correction results.

    Color matching and blending are only available for multispectral and panchromatic imagery.

  9. If you are satisfied with the placement and current color of the region, double-click the display while still holding the shortcut keys, to accept the update. Notice that a copy of the selected region is pasted into the location where the vacant lot used to be.

    Copied region

Save your edits

Pour réintégrer les modifications dans la source de données, vous devez les enregistrer.

  1. Dans le groupe Save (Enregistrer), cliquez sur le bouton Save (Enregistrer) Enregistrer.

    Pour enregistrer vos mises à jour sans affecter les données source, enregistrez-les dans un nouveau fichier. Dans le groupe Save (Enregistrer), cliquez sur le bouton Save As (Enregistrer sous) Enregistrer sous, puis spécifiez un emplacement et un nom de fichier pour le nouveau fichier.

  2. Cliquez sur Close Pixel Editor (Fermer l’éditeur de pixels) Fermer dans le groupe Close (Fermer) lorsque vous avez terminé de modifier le jeu de données raster.

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 these three steps:

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

Start a Pixel Editor session

L’éditeur de pixel ne peut mettre à jour qu’une couche à la fois par vue cartographique. La couche contextuelle utilisée pour démarrer la session Éditeur de pixel est la seule couche qui peut être mise à jour dans cette vue cartographique. Pour mettre à jour une autre couche dans la carte, vous devez fermer l’éditeur de pixel, sélectionner l’autre couche dans la fenêtre Contents (Contenu), puis rouvrir l’éditeur de pixel pour agir sur cette couche.

  1. In the Contents pane, highlight the raster layer you want to edit.
  2. Cliquez sur l’onglet Imagery (Imagerie).
  3. Cliquez sur le bouton Pixel Editor (Éditeur de pixel) Lancer l’éditeur de pixel.

Replace a region

Now that the Pixel Editor session is activated, you can replace the cloudy region. In this scenario, you have an overlapping raster that you 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 Définir une nouvelle région.
  3. Click the drop-down arrow below Region, and choose Polygon Construire un polygone.
  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 Remplacer la région.

    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, you want to use the exact same location, but using the other layer in your Contents pane.
  8. While the region is still in preview mode, you can choose to color correct or blend the region. Keep the shortcut keys held down to preview the color correction results. You can choose only one color matching technique at a time.

    Color matching and blending are only available for multispectral and panchromatic imagery.

  9. If you are satisfied with the placement and current color of the region, double-click the display while still holding the shortcut keys, to accept the update.

    Result of Replace

Save your edits

Pour réintégrer les modifications dans la source de données, vous devez les enregistrer.

  1. Dans le groupe Save (Enregistrer), cliquez sur le bouton Save (Enregistrer) Enregistrer.

    Pour enregistrer vos mises à jour sans affecter les données source, enregistrez-les dans un nouveau fichier. Dans le groupe Save (Enregistrer), cliquez sur le bouton Save As (Enregistrer sous) Enregistrer sous, puis spécifiez un emplacement et un nom de fichier pour le nouveau fichier.

  2. Cliquez sur Close Pixel Editor (Fermer l’éditeur de pixels) Fermer dans le groupe Close (Fermer) lorsque vous avez terminé de modifier le jeu de données raster.

Rubriques connexes


Dans cette rubrique
  1. Copy a region
  2. Replace a region