Refers to variables whose values persist throughout processing. You create an image-scope variable by declaring it within the init block.
See also pixel scope
A script element used to declare non-image variables that will have image scope. It takes the following form:
init {
foo = 0;
bar = 2 * M_PI + sqrt(42);
baz;
}
The init block is optional. When present, it must precede the body of the script and appear after the options block. There can only be one init block.
This is the default scope for non-image variables. Any value assigned to a pixel-scope variable is lost after each pixel is processed.
See also image scope.