Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
eyes:logics:calculate [2017/06/12 14:26] sfiedle [Usage] |
eyes:logics:calculate [2017/06/13 07:43] (current) sfiedle [Concept] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Calculate ====== | ====== Calculate ====== | ||
| - | The Calculate element can arithmetically manipulate [[eyes:logics:variable|Variables]], whereby the input images remain unmodified. | + | The Calculate element can arithmetically manipulate [[eyes:logics:variable|Variables]], whereby the I/O remains unmodified. |
| ===== Usage ===== | ===== Usage ===== | ||
| - | This flow control element can apply standard arithmetic onto a Variable. Furthermore, the modulo (%) and exponentiation (^) are implemented as well. | + | This Flow Control element can apply standard arithmetic onto a Variable. Furthermore, the modulo (%) and exponentiation (^) are implemented. |
| + | Important to remember is that a calculation of a Variable of type decimal and a Variable of type integer returns an integer Variable. | ||
| + | |||
| + | To edit the formula fill in the field in the Properties window. | ||
| ===== Example ==== | ===== Example ==== | ||
| - | Here, a very specific example should be given/described. In the future, this can be supported by screenshots etc.. For the moment, give an example easy enough for the user to understand, but specific enough to elaborate why a given parameter is a good set for this very situation. | + | === Addition === |
| + | {{ :eyes:logics:calc.png |}} | ||
| + | {{ :eyes:logics:calculationproperties.png?nolink |}} | ||
| + | |||
| + | === Different types of Variables === | ||
| + | {{ :eyes:logics:example3.png?nolink |}} | ||
| + | |||
| ===== Parameters and I/O ===== | ===== Parameters and I/O ===== | ||
| Line 20: | Line 30: | ||
| ===== Concept ===== | ===== Concept ===== | ||
| - | |||
| [[https://www.lua.org/pil/3.1.html|Arithmetic Operators in Lua]] | [[https://www.lua.org/pil/3.1.html|Arithmetic Operators in Lua]] | ||