Houdini 20.5 Nodes Copernicus nodes

Prefix Sum Copernicus node

Computes the prefix sum of a layer.

On this page

This node computes the prefix sum of an input layer. The Direction parameter determines how the scan is performed along the x and y axes. Each sequence is made up of all the buffer elements along the set Direction.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Direction

The direction of the scan.

+X

Scan along positive X, which is horizontally from left to right.

-X

Scan along negative X, which is horizontally from right to left.

+Y

Scan along positive Y, which is vertically from bottom to top.

-Y

Scan along negative Y, which is vertically from top to bottom.

+X+Y

Scan in a meandering path from the lower-left corner to the upper-right corner. This means the steps alternate between moving in the positive X direction and then in the positive Y direction.

Linear

Scan from the left to right and bottom to top, starting from the lower-left corner to the upper-right corner. This means each horizontal scanline is aggregated before moving on to the next one.

Operation

The operation to apply to the elements of the sequence.

Add

Add all elements of the sequence together.

Minimum

Return the smallest element in the sequence.

Maximum

Return the largest element in the sequence.

Count

Return the number of elements in the sequence.

Inputs

source

The original layer from which to compute the prefix sum.

active

An optional per-pixel active map that determines which values to take into account when computing the statistics. Values over 0.5 are active while values below 0.5 are inactive.

Outputs

prefixsum

The prefix sum of the original layer.

Copernicus nodes