Concatenate a list of images of the same size into a single multi-channel image.
Concatenate a list of images of the same size into a single multi-channel image. It reads the input image list (single or multi-channel) and generates a single multi-channel image. The channel order is the same as the list.
This application has several output images and supports “multi-writing”. Instead of computing and writing each image independently, the streamed image blocks are written in a synchronous way for each output. The output images will be computed strip by strip, using the available RAM to compute the strip size, and a user defined streaming mode can be specified using the streaming extended filenames (type, mode and value). Note that multi-writing can be disabled using the multi-write extended filename option: &multiwrite=false, in this case the output images will be written one by one. Note that multi-writing is not supported for MPI writers.
Input images list
-il image1 image2... Mandatory
The list of images to concatenate, must have the same size.
-out image [dtype] Mandatory
The concatenated output image.
Available RAM (MB)
-ram int Default value: 256
Available memory for processing (in MB).
From the command-line:
otbcli_ConcatenateImages -il GomaAvant.png GomaApres.png -out otbConcatenateImages.tif
import otbApplication app = otbApplication.Registry.CreateApplication("ConcatenateImages") app.SetParameterStringList("il", ['GomaAvant.png', 'GomaApres.png']) app.SetParameterString("out", "otbConcatenateImages.tif") app.ExecuteAndWriteOutput()
All input images must have the same size.