TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class Tinman.Image.Function

Short Name:
  • class Function
Derived From:
Fields:

Transform linear pixel values using a custom function.

The given function is evaluated on linear pixel values, that is after raw pixels have been translated to normalized pixel values (see Image.Range) and after gamma correction has been applied (see Gamma). The expression may use all members of the default Tinman script. The following arguments are available to the function expression:

Fields

The following table lists all fields of this config type.

Field Type Constraint Default
required image Image
# != null
 

The source image.

required function string
# != null
 

A function expression (see ConfigScript expr rule) that consumes input linear pixel values in the range [0..1] and returns output linear pixel value in the range [0..1]. Output values are clamped (including infinities), not-a-number output values produce void pixels.

optional channel Channel  
Intensity

The pixel channel the function shall be applied to. If Channel.Void, no transformation will be performed.

external info Image.Info    

Contains information about the image data source, including image format and embedded georeferencing information.