Split a N multiband image into N images.


This application splits a N-bands image into N mono-band images. The output images filename will be generated from the output parameter. Thus, if the input image has 2 channels, and the user has set as output parameter, outimage.tif, the generated images will be outimage_0.tif and outimage_1.tif.


Input Image -in image Mandatory
Input multiband image filename.

Output Image -out image [dtype] Mandatory
The output filename will be used to get the prefix an the extension of the output written’s image. For example with outimage.tif as output filename, the generated images will had an indice (corresponding at each bands) between the prefix and the extension, such as: outimage_0.tif and outimage_1.tif (if 2 bands).

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


From the command-line:

otbcli_SplitImage -in VegetationIndex.hd -out splitImage.tif

From Python:

import otbApplication

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

app.SetParameterString("in", "VegetationIndex.hd")
app.SetParameterString("out", "splitImage.tif")


See also