Perform a mathematical operation on monoband images
This application performs a mathematical operation on monoband images.Mathematical formula
interpretation is done via MuParser libraries.
For MuParser version superior to 2.0 uses ’&&’ and ’——’ logical operators, and ternary operator
’boolean_expression ? if_true : if_false’
For older version of MuParser (prior to v2) use ’and’ and ’or’ logical operators, and ternary operator ’if(; ;
)’.
The list of features and operators is available on MuParser website: http://muparser.sourceforge.net/
This section describes in details the parameters available for this application. Table 4.160, page 823 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is BandMath.
Parameter key | Parameter type |
Parameter description |
il | Input image list |
Input image list |
out | Output image |
Output Image |
ram | Int |
Available RAM (Mb) |
exp | String |
Expression |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters file |
Save otb application to xml file |
|
||
|
||
|
||
|
||
|
To run this example in command-line, use the following:
To run this example from Python, use the following code snippet:
None
This application has been written by OTB-Team.