ExpressionParameter in OTB Applications
BandMath expression are now treated a plain strings in commandline and gui for otb applications. This has a big advantage in part of implementation. On the side gui, it would be nice to have a user-friendly expression builder.
QGIS already have an expression builder and is available as parameter type in processing. As we treat expression parameter as
ParameterType_String
nothing is possible to do now.
Tasks in the increasing order or complexity.
- Add
ParameterType_Expr
- Change parameter type to ParameterType_Expr in
BandMath(X)
and other apps such asSegmentation
- Teach ParameterType_Expr to take qgis expression string and transform to math parsers's syntax
Here is a mock of interface for those who like to dive into this topic. see if you can find fancy "E" in the AlgorithmDialog for 'expression' parameter.