@@ -125,19 +107,7 @@ int main(int argc, char* argv[])
...
@@ -125,19 +107,7 @@ int main(int argc, char* argv[])
writer->Update();
writer->Update();
// The muParser library also provides the possibility to extend existing built-in functions. For example,
// The muParser library also provides the possibility to extend existing built-in functions. For example,
// you can use the OTB expression "ndvi(b3, b4)" with the filter. In this instance, the mathematical expression would be
// you can use the OTB expression "ndvi(b3, b4)" with the filter. In this instance, the mathematical expression would be "if(ndvi(b3, b4)>0.4, 255, 0)", which would return the same result.
// \textit{if($ndvi(b3, b4)>0.4$, 255, 0)}, which would return the same result.
// Figure~\ref{fig:BandMathImageFilter} shows the result of the threshold applied to the NDVI index