全息锐化

执行P+XS全色锐化

描述

此应用程序执行P+XS全色锐化。 全息锐化 是将高分辨率全色和低分辨率多光谱图像合并以创建单个高分辨率彩色图像的过程。应用中可用的算法有:RCS、贝叶斯融合和局部均值与方差匹配(LMVM)。

参数

Input PAN Image -inp image Mandatory
输入全色图像。
Input XS Image -inxs image Mandatory
输入XS图像。

Output image -out image [dtype] Mandatory
Output image.

Algorithm -method [rcs|lmvm|bayes] Default value: rcs
Selection of the pan-sharpening method.

  • RCS
    Simple RCS Pan sharpening operation.
  • LMVM
    Local Mean and Variance Matching (LMVM) Pan sharpening.
  • Bayesian
    Bayesian fusion.

LMVM选项

X radius -method.lmvm.radiusx int Default value: 3
Set the x radius of the sliding window.

Y radius -method.lmvm.radiusy int Default value: 3
Set the y radius of the sliding window.

贝叶斯期权

Weight -method.bayes.lambda float Default value: 0.9999
Set the weighting value.

S coefficient -method.bayes.s float Default value: 1
Set the S coefficient.


Available RAM (MB) -ram int Default value: 256
Available memory for processing (in MB).

实例

从命令行执行以下操作:

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

来自Python的评论:

import otbApplication

app = otbApplication.Registry.CreateApplication("Pansharpening")

app.SetParameterString("inp", "QB_Toulouse_Ortho_PAN.tif")
app.SetParameterString("inxs", "QB_Toulouse_Ortho_XS.tif")
app.SetParameterString("out", "Pansharpening.tif")
app.SetParameterOutputImagePixelType("out", 3)

app.ExecuteAndWriteOutput()