5.4.9 Pansharpening

Perform P+XS pansharpening

Detailed description

This application performs P+XS pansharpening. Pansharpening is a process of merging high-resolution panchromatic and lower resolution multispectral imagery to create a single high-resolution color image. Algorithms available in the applications are: RCS, bayesian fusion and Local Mean and Variance Matching(LMVM).

Parameters

This section describes in details the parameters available for this application. Table 5.29, page 495 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is Pansharpening.




Parameter key

Parameter type

Parameter description




inp

Input image

Input PAN Image

inxs

Input image

Input XS Image

out

Output image

Output image

method

Choices

Algorithm

method rcs

Choice

RCS

method lmvm

Choice

LMVM

method bayes

Choice

Bayesian

method.lmvm.radiusx

Int

X radius

method.lmvm.radiusy

Int

Y radius

method.bayes.lambda

Float

Weight

method.bayes.s

Float

S coefficient

ram

Int

Available RAM (Mb)

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file








Figure 5.29: Parameters table for Pansharpening.

Input PAN Image Input panchromatic image.

Input XS Image Input XS image.

Output image Output image.

Algorithm Selection of the pan-sharpening method. Available choices are:

Available RAM (Mb) Available memory for processing (in MB)

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

To run this example in command-line, use the following:

otbcli_Pansharpening -inp QB_Toulouse_Ortho_PAN.tif -inxs QB_Toulouse_Ortho_XS.tif -out Pansharpening.tif uint16

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the Pansharpening application 
Pansharpening = otbApplication.Registry.CreateApplication("Pansharpening") 
 
# The following lines set all the application parameters: 
Pansharpening.SetParameterString("inp", "QB_Toulouse_Ortho_PAN.tif") 
 
Pansharpening.SetParameterString("inxs", "QB_Toulouse_Ortho_XS.tif") 
 
Pansharpening.SetParameterString("out", "Pansharpening.tif") 
Pansharpening.SetParameterOutputImagePixelType("out", 3) 
 
# The following line execute the application 
Pansharpening.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.