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
Last revision Both sides next revision
eyes:logics:script [2017/06/12 13:11]
sfiedle [Example]
eyes:logics:script [2017/06/12 16:03]
sfiedle [Script]
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 typ. 
 +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
 +
 +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 12: Line 16:
 |< 100% 30% >| |< 100% 30% >|
 ^ Input   ^ Description ^ ^ Input   ^ Description ^
-| FirstInput ​ | Input Description 1 +| FirstInput ​ | Input to be modified by the script ​
-| SecondInput | Input Description 2 | +
-| //​ThirdInput// ​ | Input Description 3: Optional Input in Italic |+
  
 |< 100% 30% >| |< 100% 30% >|
 ^ Output ​  ^ Description ^ ^ Output ​  ^ Description ^
-| FirstOutput | Output ​Description ​|+| FirstOutput | Output|
  
 ===== Concept ===== ===== Concept =====
-In this paragraph, the "HOW a logic works under the hood" and WHY someone should use it can be elaborated ​with higher detailDescribes a scenario in an image processing workflow where this logic can be used to solve the resulting problemAlso, wikipages, publications or anything else describing ​the theory behind an algorithm should be linked here, if applicable.+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.