This is an old revision of the document!


Script

The Script can be used to read or modify header values of images. CCC values of a stack of images can be read by the Script and used as weighting factors in a different logic.

The script needs to be combined with the element 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”]

Input Description
FirstInput Input to be modified by the script
Output Description
FirstOutput Output

The Script statement works with Lua. Programming in Lua (First Edition)