Skip to content
Snippets Groups Projects
Commit a13ff1f2 authored by Mickael Savinaud's avatar Mickael Savinaud
Browse files

COMP: fix compilation of BandMath example according to the version of muparser

parent 3922f575
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,13 @@ int main( int argc, char* argv[])
// Software Guide : BeginCodeSnippet
filter->SetExpression("if((b4-b3)/(b4+b3) > 0.4, 255, 0)");
#ifdef OTB_MUPARSER_HAS_CXX_LOGICAL_OPERATORS
filter->SetExpression("((b4-b3)/(b4+b3) > 0.4) ? 255 : 0");
#else
filter->SetExpression("if((b4-b3)/(b4+b3) > 0.4, 255, 0)");
#endif
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment