# Pansharpening

## Brief Description

Perform P+XS pansharpening

## Tags

Geometry,Pansharpening

## Long 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

- [param] -inp <string> Input panchromatic image.. Mandatory: True. Default Value: ""
- [param] -inxs <string> Input XS image.. Mandatory: True. Default Value: ""
- [param] -out <string> Output image.. Mandatory: True. Default Value: ""
- [param] -ram <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"
[choice] -method Selection of the pan-sharpening method. rcs,lmvm,bayes. Mandatory: True. Default Value: "rcs"

- [group] -rcs

- [group] -lmvm

- [param] -method.lmvm.radiusx <int32> Set the x radius of the sliding window.. Mandatory: True. Default Value: "3"
- [param] -method.lmvm.radiusy <int32> Set the y radius of the sliding window.. Mandatory: True. Default Value: "3"

- [group] -bayes

- [param] -method.bayes.lambda <float> Set the weighting value.. Mandatory: True. Default Value: "0.9999"
- [param] -method.bayes.s <float> Set the S coefficient.. Mandatory: True. Default Value: "1"

## Limitations

None

## Authors

OTB-Team

## See Also

## Example of use

- inp: QB_Toulouse_Ortho_PAN.tif

- inxs: QB_Toulouse_Ortho_XS.tif

- out: Pansharpening.tif uint16