From e3ce462b50c03235f18542e7cd37e38c9a53e3a6 Mon Sep 17 00:00:00 2001 From: Aurelien Bricier <aurelien.bricier@c-s.fr> Date: Fri, 20 Aug 2010 11:20:43 +0200 Subject: [PATCH] DOC: added documentation to NaryParserImageFilter --- Code/BasicFilters/otbNaryParserImageFilter.h | 27 ++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/Code/BasicFilters/otbNaryParserImageFilter.h b/Code/BasicFilters/otbNaryParserImageFilter.h index e3b02cec1d..2211a0be95 100644 --- a/Code/BasicFilters/otbNaryParserImageFilter.h +++ b/Code/BasicFilters/otbNaryParserImageFilter.h @@ -32,10 +32,33 @@ namespace otb { /** \class NaryParserImageFilter * \brief Performs a mathematical operation on the input images - * according to the formula specified by the user + * according to the formula specified by the user. + * + * This filter is based on the math parser library muParser. + * The built in function and operator list is available at: + * http://muparser.sourceforge.net/mup_features.html#idDef2 + * + * OTB specific additional functions : + * ndvi(r, niri) + * + * OTB specific additional contants : + * e - log2e - log10e - ln2 - ln10 - pi - euler * + * In order to use this filter, at least one input image is to be + * set. A associated variable name can be spécified or not by using + * the corresponding SetNthInput method. For the nth input image, if + * no associated variable name has been spefified, a default variable + * name is given by concatenating the letter "b" (for band) and the + * coresponding n. + * Next step is to set the expression according to the variable + * names. For example, in the default case with three input images the + * following expression is valid : + * "ndvi(b1,b2)*b3" + * * \sa Parser - * + * + * \ingroup Streamed + * \ingroup Threaded */ template< class TImage > -- GitLab