Skip to content
Snippets Groups Projects
Commit aa2d5dbd authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

Add doc on context

parent d78e3cb1
No related branches found
No related tags found
3 merge requests!648Ci rcjob,!621Release 7.0 (master),!580Refactoring of the BandMathX documentation, and fix OpticalCalibration documentation
Pipeline #2328 passed
......@@ -236,7 +236,10 @@ For instance:
.. math:: dotpr(kernel1,im1b1N3x5)
is correct provided that kernel1 and im1b1N3x5 have the same dimensions.
The function can take as many neighbourhoods as needed in inputs.
The function can take as many neighbourhoods as needed in inputs, the product is
distributed and will give a band for each new input.
.. math:: dotpr(a,b,c) = \{ dotpr(a,b) , dotpr(a,c) \}
**Function mean** This function allows to compute the mean value of a
given vector or neighborhood (the function can take as many inputs as
......
BandMathX Application
=====================
intro
Syntax presentation
Build-in function
Application: snow detection, vegetation detection, using threshold, ndvi and expression.
Use of matrix? band-pass filter?
Threshold
Syntax: first elements
----------------------
......@@ -198,7 +192,6 @@ For instance:
.. math:: dotpr(kernel1,im1b1N3x5)
is correct provided that kernel1 and im1b1N3x5 have the same dimensions.
The function can take as many neighbourhoods as needed in inputs.
**Function mean** This function allows to compute the mean value of a
given vector or neighborhood (the function can take as many inputs as
......@@ -323,3 +316,22 @@ Functions and operators summary:
+----------------+-------------------------------------------------------------------------------+
| vect2scal | one dimensional vector to scalar |
+----------------+-------------------------------------------------------------------------------+
Context and Constant
--------------------
Thanks to the `-incontext` one can pass constant value to the application in
order to use it in the expression. For the definition
of constants, the following pattern must be observed: #type name value.
For instance:
#F expo 1.1 #M kernel1 { 0.1 , 0.2 , 0.3 ; 0.4 , 0.5 , 0.6 ; 0.7 , 0.8 ,
0.9 ; 1 , 1.1 , 1.2 ; 1.3 , 1.4 , 1.5 }
As we can see, #I/#F allows the definition of an integer/float constant,
whereas #M allows the definition of a vector/matrix. It is also possible
to define expressions within the same txt file, with the pattern #E
expr. For instance:
#F expo 1.1 #M kernel1 { 0.1 , 0.2 , 0.3 ; 0.4 , 0.5 , 0.6 ; 0.7 , 0.8 ,
0.9 ; 1 , 1.1 , 1.2 ; 1.3 , 1.4 , 1.5 } #E dotpr(kernel1,im1b1N3x5)
\ No newline at end of file
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