Image operations

Image operations

These nodes perform image operations – typically arithmetic – on whole frames (or volumes in case of 3D) on a pixel-by-pixel (or voxel-by-voxel in later case) basis.

Most of the operations produce a floating point result, except for a few nodes that are guaranteed to fall within the range of the original bit depth (such as Minimum, Maximum, …).

Arithmetics

Add

2D/3D

Add two images (channels) element-wise (A+B)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

Subtract

2D/3D

Subtract two images (channels) element-wise (A-B).

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

See also: Difference of subsequent frames (in workflows)

Multiply

2D/3D

Multiply two images (channels) element-wise (A*B)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

Divide

2D/3D

Divide two images (channels) element-wise (A/B)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

Average

2D/3D

Computes element-wise average of all connected channels

Parameters
Input
  • A, B, … (Channel, Multiple)
Output
  • R (Channel)
Control

Minimum

2D/3D

Computes element-wise minimum of all connected channels

Parameters
Input
  • A, B, … (Channel, Multiple)
Output
  • R (Channel)
Control

Maximum

2D/3D

Computes element-wise maximum of all connected channels

Parameters
Input
  • A, B, … (Channel, Multiple)
Output
  • R (Channel)
Control

Covariance

2D/3D

Calculate element-wise intermediate term for Covariance (cov(A, B)). E[cov(A, B)] produces the covariance.

Calculating Mean value of () produces the Covariance (see wikipedia)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

Mask Image

2D/3D

Fills all elements outside of masked area with zero

Parameters
Input
  • A (Channel)

  • B (Binary)

Output
  • R (Channel)
Control

Remove Shading

2D/3D

Applies shading correction image (input B) to image (input A) in order to remove & correct shading

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control
  • Type (Number)

Constant

Add

2D/3D

Add a constant to every element of the image (A + Offset)

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Offset (Number)

Subtract

2D/3D

Subtract a constant from every element of the image (A - Offset)

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Offset (Number)

Multiply

2D/3D

Multiply every element of the image by a constant (A * Gain)

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Gain (Number)

Divide

2D/3D

Divide every element of the image by a constant (A / Divisor)

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Divisor (Number)

Clip

2D/3D

Clip every element of the image to fall between Min and Max

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Min (Number)

  • Max (Number)

Constant Value

2D/3D

Set every element of the image to constant value (A = Constant)

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Constant (Number)

Functions

Abs

2D/3D

Compute element-wise absolute value (abs(A))

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control

Invert

2D/3D

Compute element-wise complement (maximum value - A).

When the image element is

  • N-bit unsigned integer the result is a complement:

    , where is the -th element

  • floating point the result is negative value:

    , where is the -th element

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control

Exp

2D/3D

Compute element-wise decadic exponent function (exp10(A))

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Base (Number)

Inv

2D/3D

Compute element-wise multiplicative inverse function (1 / A)

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control

Log

2D/3D

Compute element-wise decadic logarithm function (log10(A))

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Base (Number)

Pow (xy)

2D/3D

Compute element-wise power function. Raise A to y where Y is a scalar constant (pow(A, y))

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control
  • Base (Number)

Sign

2D/3D

Compute element-wise signum function (sign(A))

Parameters
Input
  • A (Channel)
Output
  • R (Channel)
Control

Logical

These operations produce values of one (1) for elements where the logical operation holds true and zero (0) where it is false.

Greater

2D/3D

Compare two channels using the greater-than operator (A > B)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

See also: Logical (group)

Greater or Equal

2D/3D

Compare two channels using the greater-than-or-equal-to operator (A ≥ B)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

See also: Logical (group)

Equal

2D/3D

Compare two channels using equality operator (A = B)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

See also: Logical (group)

Not Equal

2D/3D

Compare two channels using inequality operator (A ≠ B)

Parameters
Input
  • A (Channel)

  • B (Channel)

Output
  • R (Channel)
Control

See also: Logical (group)

Merge

Blend

2D/3D

Merge two channels (input A) and (input B) using weights in third channel (input C).

Parameters
Input
  • A (Channel)

  • B (Channel)

  • C (Channel)

Output
  • R (Channel)
Control

Conditional

2D/3D

Merge two channels (input A) and (input B) based on trueness of third channel (input C).

Parameters
Input
  • A (Channel)

  • B (Channel)

  • C (Channel)

Output
  • R (Channel)
Control