4.1.2 Images Concatenation

Concatenate a list of images of the same size into a single multi-channel one.

Detailed description

This application performs images channels concatenation. It will walk the input image list (single or multi-channel) and generates a single multi-channel image. The channel order is the one of the list.

Parameters

This section describes in details the parameters available for this application. Table 4.4, page 421 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is ConcatenateImages.





Parameter key

Parameter type

Parameter description




il

Input image list

Input images list

out

Output image

Output Image

ram

Int

Available RAM (Mb)

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.4: Parameters table for Images Concatenation.

Example

To run this example in command-line, use the following:

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

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the ConcatenateImages application 
ConcatenateImages = otbApplication.Registry.CreateApplication("ConcatenateImages") 
 
# The following lines set all the application parameters: 
ConcatenateImages.SetParameterStringList("il", ['GomaAvant.png', 'GomaApres.png']) 
 
ConcatenateImages.SetParameterString("out", "otbConcatenateImages.tif") 
 
# The following line execute the application 
ConcatenateImages.ExecuteAndWriteOutput()

Limitations

All input images must have the same size.

Authors

This application has been written by OTB-Team.

See also

These additional ressources can be useful for further information: