User Defined Functions (UDF)ΒΆ

X + Y

Returns the sum of layers X and Y.

X - Y

Returns the difference between layers X and Y.

X * Y

Returns the product of layers X and Y.

X / Y

Returns the quotient of layers X and Y.

X ? Y : Z

This is a pixel-wise if-then-else construction. For each pixel, the value is Y if X is true, otherwise Z.

math:abs(X)

Returns the absolute value of layer X.

math:acos(X)

Calculates the inverse cosine (arc cosine) over layer X. The returned angle is in the range \([0, \pi]\).

math:asin(X)

Inverse sine (arc sine) function. The return value is in the range \([-\pi/2, \pi/2]\).

math:atan(X)

Inverse tangent (arc tan) function. The return value is in the range \([-\pi/2, \pi/2]\).

math:atan2(X, Y)
math:cbrt(X)

Returns the cube root of X.

math:ceil(X)

Rounds each pixel up to the nearest larger integer.

math:copySign(X, Y)
math:cos(X)

Cosine of X.

math:cosh(X)

Hyperbolic cosine of X.

math:decrementExact(X)
math:exp(X)

Exponential function.

math:expm1(X)

Returns \(e^X - 1\).

math:floorDiv(X, Y)
math:floorMod(X, Y)
math:getExponent(X)
math:hypot(X, Y)

Calculates \(\sqrt{X^2 + Y^2}\).

The complete list is based on java.lang.Math.