Wiki

Clone wiki

BaristaSource / UserGuide / Pansharpen

**Pansharpening Functions in Barista

Pansharpening is a method of combining a high-resolution panchromatic image and a multispectral image of lower resolution to a multispectral image at the resolution of the panchromatic image. Barista offers two pansharpening functions:

  • Pansharpening of Orthorectified Images: The two images are supposed to be already orthorectified, they need not have the same resolution or cover an identical area in object space. However, only the overlapping area can be pan-sharpened. This method requires two (at least approimately) orthorectified images, a panchromatic image and a multispectral one.

  • Pansharpening of Original Images: The two images are supposed to be original images, they need not have the same resolution or cover an identical area in object space. However, only the overlapping area can be pan-sharpened. This method requires a DEM two original images, a panchromatic image and a multispectral one. At least for the panchromatic image, a current sensor model has to be available. Orthorectification and pansharpening will be carried out in one step.

Pansharpening of orthorectified images

By choosing the Pansharpening, Orthorectified Images function, the Pansharpening dialog for orthorectified images will be shown on the screen. The orthorectified images can have been generated using the orthoimage generation function or any other source. Generating a pansharpened image requires the selection of two input images:

  • Pan Image: In this field you can select any of the image nodes in the thumbnail view having only one band. By default, the first panchromatic image in the list of image nodes will be selected.

  • Multispectral Image: In this field you can select any of the image nodes in the thumbnail view having three or more bands. By default, the first multispectral image in the list of image nodes will be selected.

In the current version, the pan image and the multispectral image must have the same image depth (i.e., both must be either 8 bit or 16 bit images).

Grafik

Barista Pansharpening dialog for orthorectified images

Pansharpening will produce a pansharpened multispectral image having the extents and the resolution of the panchromatic image. The panchromatic image is read as it is. The multispectral image has to be resampled into the grid of the panchromatic image before the actual pansharpening can be carried out. This resampling process requires a transformation between the grids of the multispectral and the panchromatic images. The way this transformation is established can be selected in the Registration of Multispectral image group box. There are three options:

  • Like Pan: This option will only be accessible if the panchromatic and the multispectral image have exactly the same number of image rows and columns. In this case, no resampling is carried out, but both images are just read from file and used for pansharpening. For this option it is actually not necessary that the image be geocoded. That is, neither of them requires a TFW nodes. If the panchromatic image has a TFW nodes, it will be copied to a TFW node of the the pansharpened image; thus, the pansharpened image will be geocoded. If the panchromatic image has no TFW node, the pansharpened image will not have a TFW node, either. In this case, the pansharpened image will not be geocoded.

  • TFW: This option will only be accessible if both the panchromatic and the multispectral images have TFW nodes, i.e., if both images are geocoded. The pansharpened image will receive a TFW node identical to the one of the panchromatic image. For each pixel of the pansharpened image, the object coordinates are computed using the parameters of the TFW node of the panchromatic image, and the TFW node of the multispectral image is used to compute the position where the colour vector has to be interpolated in the multispectral image.

  • Automatic: This option is always accessible. It should be used when no TFW node is available for the multispectral image or if the co-registration of the two images is doubtful. If this option is chosen, the Automatic Registration button will become accessible. If this button is selected the Image Registration Dialog will be opened. Only if image registration has been successful, the OK button will become accessible. If the automatic option is used, a 2D transformation between the panchromatic and the multispectral images is determined automatically using image matching techniques.

If the registration option of the multispectral and the panchromatic images is either TFW or Automatic, the colour vector in the multispectral image has to be interpolated. The interpolation method can be selected in the Resampling Method group box. It can either be a bilinear or a bicubic interpolation. Bicubic interpolation is recommended for quality reasons, but it is also slower.

Two different algorithms can be used for pansharpening:

  • IHS: For pansharpening, an IHS (Intensity Hue Saturation) transformation will be applied to the multispectral image. The panchromatic image is then substituted for the intensity of the IHS image, and the inverse transformation is applied, resulting in the pan-sharpened image. The near infrared band will not be affected. This method is faster and might result in geometrically better image, but the colours will be distorted due to the fact that the panchromatic image also contains a portion of the infrared part of the spectrum.

  • PCA: For pansharpening, a PCA (Principal Component Analysis) will be applied to the multispectral image. From the eigenvalues and eigenvectors of the covariance matrix of the bands of the multispectral image, a rotation matrix is derived. The grey values of the multispectral image are transformed using that rotation matrix, and the grey values of the panchromatic image are substituted for the principal component of the transformed image (i.e. the component of the transformed grey values corresponding to the maximum eigenvalue of the covariance matrix). After that, the grey values are transformed back into the RGBN domain. This method will also change the near infrared band. It is somewhat slower than the IHS method and might result in geometrically more blurred images, but the colours will usually be less distorted.

The following parameters have to be provided for the IHS algorithm only:

  • Correct Infrared: If this check-box is selected, the numeric field next to it will be made available, where a correction value can be specified. Pansharpening usually works as follows: The RGB bands of the multispectral image are transformed to the Intentsity - Hue - Saturation (IHS) colour space, the panchromatic image is substituted for the Intensity band, and the inverse transformation is applied to obtain the pansharpened image.

For many satellites, the panchromatic image will contain a considerable portion of the infrared part of the spectrum. If a near infrared band is available (i.e. if the multispectral image has four bands), the intensity image I can be corrected using the (interpolated) near infrared value NIR:

I(corrected) = I - a * NIR

The value a can be selected in the numeric field. The default of 0.24 is appropriate for QuickBird images.

Output Image: Here you have to select the output image. Pressing this button will open an export image dialog, where you can select the filename, the output band configuration and the output format.

The pansharpening process started by pressing the OK button. The following actions will be taken:

  1. The program checks whether the image depths of the panchromatic and the multispectral images are identical. If this is not the case, an error message will be issued and pansharpening will be impossible.

  2. If the image depths are found to be compatible, the pansharpened image will be generated according to the algorithm selected.

  3. Once the pansharpened image has been generated, the pansharpened image will be converted into the desired image file format, and it will be imported into Barista as a new image node.

Pansharpening of original images

By choosing the Pansharpening, Original Images function, the Pansharpening dialog for original images will be shown on the screen. Generating a pansharpened image requires the selection of three input files:

  • Pan Image: In this field you can select any of the image nodes in the thumbnail view having only one band and having a current sensor model. By default, the first panchromatic image in the list of image nodes will be selected.

  • Multispectral Image: In this field you can select any of the image nodes in the thumbnail view having three or more bands. By default, the first multispectral image in the list of image nodes will be selected.

  • DEM: In this field you can select any of the DEM nodes in the thumbnail view. By default, the first DEM in the list of DEM nodes will be selected.

In the current version, the pan image and the multispectral image must have the same image depth (i.e., both must be either 8 bit or 16 bit images).

Grafik

Barista Pansharpening dialog for original images

The pansharpening function of original images will generate a geocoded and orthorectified pansharpened image. Unlike in the case of pansharpening of orthorectified images, orthorectification and pansharpening are carried out in one process. For that purpose, the extents and the resolution of the pansharpened image in object space have to be defined:

  • Orthoimage Extents: The extents of the pansharpened image have to be provided by the X and Y coordinates of the centres of the pixel at the lower left (south-western) and the upper right (north-eastern) corners of the pansharpened image to be generated. These coordinates have to be provided in the same coordinate system as the DEM. By default, the extents will be set to the extents of the previous orthophoto that has been generated using the same DEM; if the DEM is changed, the extents will be set to the extents of the new DEM. The pansharpened image will receive a TFW node with parameters corresponding to the upper left (north-western) corner and the resolution of the images.

Using the button Set Extents to Maximum will have set the extents to those of the DEM.

  • Ground resolution: Here you have to select the ground resolution (pixel size) of the pansharpened image to be generated in [m].

In the pansharpening process, the panchromatic image will be orthorectified using its current sensor model. For the orthorectification of the multispectral image, there are two options for orthorectification that can be selected in the Registration of Multispectral image group box:

  • Own: This option will only be accessible if the multispectral image has a current sensor model, too. The multispectral image is orthorectified independently from the panchromatic image using its own current sensor model.

  • Automatic: This option is always accessible. It must be used if the multispectral image does not have a current sensor model, and it is advisable to use it if the parameters of the current sensor model are doubtful. If this option is chosen, the Automatic Registration button will become accessible. If this button is selected the Image Registration Dialog will be opened. Only if image registration has been successful, the OK button will become accessible. If the automatic option is used, the a 2D transformation between the panchromatic and the multispectral images is determined automatically using image matching techniques, and this transformation will be used to resample the multispectral image into the grid of the panchromatic image.

In any case, the colour vector in the multispectral image and the intensity value of the panchromatic image have to be interpolated. The interpolation method can be selected in the Resampling Method group box. It can either be a bilinear or a bicubic interpolation. Bicubic interpolation is recommended for quality reasons, but it is also slower.

Two different algorithms can be used for pansharpening:

  • IHS: For pansharpening, an IHS (Intensity Hue Saturation) transformation will be applied to the multispectral image. The panchromatic image is then substituted for the intensity of the IHS image, and the inverse transformation is applied, resulting in the pan-sharpened image. The near infrared band will not be affected. This method is faster and might result in geometrically better image, but the colours will be distorted due to the fact that the panchromatic image also contains a portion of the infrared part of the spectrum.

  • PCA: For pansharpening, a PCA (Principal Component Analysis) will be applied to the multispectral image. From the eigenvalues and eigenvectors of the covariance matrix of the bands of the multispectral image, a rotation matrix is derived. The grey values of the multispectral image are transformed using that rotation matrix, and the grey values of the panchromatic image are substituted for the principal component of the transformed image (i.e. the component of the transformed grey values corresponding to the maximum eigenvalue of the covariance matrix). After that, the grey values are transformed back into the RGBN domain. This method will also change the near infrared band. It is somewhat slower than the IHS method and might result in geometrically more blurred images, but the colours will usually be less distorted.

The following parameters have to be provided for the IHS algorithm only:

  • Correct Infrared: If this check-box is selected, the numeric field next to it will be made available, where a correction value can be specified. Pansharpening usually works as follows: The RGB bands of the multispectral image are transformed to the Intentsity - Hue - Saturation (IHS) colour space, the panchromatic image is substituted for the Intensity band, and the inverse transformation is applied to obtain the pansharpened image.

For many satellites, the panchromatic image will contain a considerable portion of the infrared part of the spectrum. If a near infrared band is available (i.e. if the multispectral image has four bands), the intensity image I can be corrected using the (interpolated) near infrared value NIR:

I(corrected) = I - a * NIR

The value a can be selected in the numeric field. The default of 0.24 is appropriate for QuickBird images.

Output Image: Here you have to select the output image. Pressing this button will open an export image dialog, where you can select the filename, the output band configuration and the output format.

The pansharpening process started by pressing the OK button. The following actions will be taken:

  1. The program checks whether the image depths of the panchromatic and the multispectral images are identical. If this is not the case, an error message will be issued and pansharpening will be impossible.

  2. If the image depths are found to be compatible, the pansharpened image will be generated according to the algorithm selected.

  3. Once the pansharpened image has been generated, the pansharpened image will be converted into the desired image file format, and it will be imported into Barista as a new image node.

Back to the Menu Image Processing

Updated