Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
eyes:logics:script [2017/06/12 13:16]
sfiedle [Concept]
eyes:logics:script [2017/06/12 16:14] (current)
sfiedle [Usage]
Line 1: Line 1:
 ====== Script ====== ====== Script ======
-THIS position should be used for brief introduction (max 2 sentences!) ​of the logic, stating WHAT and WHY it is doing something.+The Script uses [[https://​www.lua.org/​manual/​5.1/​index.html#​index|Lua 5.1]] in order to read or modify header values of images. CCC values of stack of images can be read by the Script ​and used as weighting factors in a different logic
  
 ===== Usage ===== ===== Usage =====
-Here, a general/​generic description of HOW the logic is USED should be given. Try to be as general as possible, but also mention prerequisites,​ restrictions,​ advantages, requirements which are specific of this logic. Basically everything ​the user needs to know to successfully use this logic.+The Script needs to be combined with the element [[eyes:​logics:​variable|]]
  
 +At first a Variable is set up with the certain data type. In order to access a single image in a cow workflow the script needs to call the cow.io[#​number of the image in the IO]. Then to read a header value of that image the script needs to be expanded by the name of the header in quotation marks ["​image header values name"​].
 +
 +
 +**cow.VariableName = cow.io[#​number of the image in the IO]["​image header values name"​]** ​
 ===== Example ==== ===== Example ====
 {{ :​eyes:​logics:​scriptcall.png |}} {{ :​eyes:​logics:​scriptcall.png |}}
Line 20: Line 24:
  
 ===== Concept ===== ===== Concept =====
-The Script ​statement ​works with Lua. [[https://​www.lua.org/​pil/contents.html|Programming in Lua (First Edition)]]+The Script ​elements ​works with[[https://​www.lua.org/​manual/​5.1/​index.html#​index|Lua 5.1 Reference Manual]]. 
 +In the following link all [[https://​www.lua.org/​manual/5.1/index.html#index|Lua functions]] are listed at the end of the page.