ConcatenateImages

将相同大小的图像列表连接成单个多通道图像。

描述

将相同大小的图像列表连接成单个多通道图像。它读取输入图像列表(单通道或多通道)并生成单个多通道图像。频道顺序与列表相同。

参数

Input images list -il image1 image2... Mandatory
The list of images to concatenate, must have the same size.

Output Image -out image [dtype] Mandatory
The concatenated output image.

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

实例

从命令行执行以下操作:

otbcli_ConcatenateImages -il GomaAvant.png GomaApres.png -out otbConcatenateImages.tif

来自Python的评论:

import otbApplication

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

app.SetParameterStringList("il", ['GomaAvant.png', 'GomaApres.png'])
app.SetParameterString("out", "otbConcatenateImages.tif")

app.ExecuteAndWriteOutput()

局限性

所有输入图像的大小必须相同。

另请参阅