Most of these functions correspond to the C math library equivalents, and are called on a per-pixel basis. Given the limited precision ofFractional and FixedPoint types, some operations must be used with care. (Values are automatically clamped to the legal range).
Absolute value.
Add two images.
b
second operand (ice.Image).
Add two images, but wrap the result so that it falls in the range 0-1. Something like a floating point modulo operation.
b
second operand (ice.Image).
x
Base (ice.Image).
Round up to nearest integer.
Cosine.
Hyperbolic cosine.
Divide one image by another: the image being operated upon is the numerator.
b
Denominator (ice.Image).
Inverse natural logarithm.
Round down to nearest integer.
Compute the hypotenuse of a triangle: the image being operated upon is the first operand.
b
Second side of the "triangle" (ice.Image).
Natural logarithm.
Result is the maximum of the two inputs.
b
Second operand (ice.Image).
Result is the minimum of the two inputs.
b
Second operand (ice.Image).
Multiply two images. The multiplier is the image being operated upon.
b
Multiplicand (ice.Image).
Multiply image a by b and add c.
b
Scale (ice.Image).
c
Offset (ice.Image).
Implements a * (1 − b). a is the image being operated upon.
b
Second operand (ice.Image).
Raise this image to the b power.
b
Second operand (ice.Image).
Round to nearest integer.
Signum function.
Return value is 1 for positive values, and −1 for negative ones.
Should probably be called Sgn(), to conform to common mathematics convention |
Sine function.
Hyperbolic sine.
Return 0 if less than the lower threshold, 1 if greater than the upper threshold, and smoothly varying in between. (A cubic is used, with c1 continuity at both ends).
min
Lower threshold (ice.Image).
max
Upper threshold (ice.Image).
Subtract two images. The minuend is the image being operated upon.
b
Subtrahend (ice.Image).
Tangent function.
Hyperbolic tangent.