MultiResolutionPyramid

建立图像的多分辨率金字塔。

描述

这个应用程序构建了输入图像的多分辨率金字塔。用户可以指定金字塔的级数和次采样系数。要加快此过程,您可以使用FAST方案选项

参数

Input Image -in image Mandatory

Output Image -out image [dtype] Mandatory
will be used to get the prefix and the extension of the images to write

Number Of Levels -level int Default value: 1
Number of levels in the pyramid (default is 1).

Subsampling factor -sfactor int Default value: 2
Subsampling factor between each level of the pyramid (default is 2).

Variance factor -vfactor float Default value: 0.6
Variance factor use in smoothing. It is multiplied by the subsampling factor of each level in the pyramid (default is 0.6).

Use Fast Scheme -fast bool Default value: false
If used, this option allows one to speed-up computation by iteratively subsampling previous level of pyramid instead of processing the full input.

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

实例

从命令行执行以下操作:

otbcli_MultiResolutionPyramid -in QB_Toulouse_Ortho_XS.tif -out multiResolutionImage.tif -level 1 -sfactor 2 -vfactor 0.6 -fast false

来自Python的评论:

import otbApplication

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

app.SetParameterString("in", "QB_Toulouse_Ortho_XS.tif")
app.SetParameterString("out", "multiResolutionImage.tif")
app.SetParameterInt("level", 1)
app.SetParameterInt("sfactor", 2)
app.SetParameterFloat("vfactor", 0.6)
app.SetParameterString("fast","false")

app.ExecuteAndWriteOutput()