4.4.1 Bundle to perfect sensor

Perform P+XS pansharpening

Detailed description

This application performs P+XS pansharpening. The default mode use Pan and XS sensor models to estimate the transformation to superimpose XS over Pan before the fusion (”default mode”). The application provides also a PHR mode for Pleiades images which does not use sensor models as Pan and XS products are already coregistered but only estimate an affine transformation to superimpose XS over the Pan.Note that this option is automatically activated in case Pleiades images are detected as input.

Parameters

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





Parameter key

Parameter type

Parameter description




inp

Input image

Input PAN Image

inxs

Input image

Input XS Image

elev

Group

Elevation management

elev.dem

Directory

DEM directory

elev.geoid

Input File name

Geoid File

elev.default

Float

Default elevation

mode

Choices

Mode

mode default

Choice

Default mode

mode phr

Choice

Pleiades mode

lms

Float

Spacing of the deformation field

out

Output image

Output image

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











Table 4.46: Parameters table for Bundle to perfect sensor.

Input PAN Image Input panchromatic image.

Input XS Image Input XS image.

Elevation management This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff. DownloadSRTMTiles application could be a useful tool to list/download tiles related to a product.

Mode Superimposition mode Available choices are:

Spacing of the deformation field Spacing of the deformation field. Default is 10 times the PAN image spacing.

Output image Output image.

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_BundleToPerfectSensor -inp QB_Toulouse_Ortho_PAN.tif -inxs QB_Toulouse_Ortho_XS.tif -out BundleToPerfectSensor.png uchar

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 BundleToPerfectSensor application 
BundleToPerfectSensor = otbApplication.Registry.CreateApplication("BundleToPerfectSensor") 
 
# The following lines set all the application parameters: 
BundleToPerfectSensor.SetParameterString("inp", "QB_Toulouse_Ortho_PAN.tif") 
 
BundleToPerfectSensor.SetParameterString("inxs", "QB_Toulouse_Ortho_XS.tif") 
 
BundleToPerfectSensor.SetParameterString("out", "BundleToPerfectSensor.png") 
BundleToPerfectSensor.SetParameterOutputImagePixelType("out", 1) 
 
# The following line execute the application 
BundleToPerfectSensor.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.