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 scan can be performed either along x, y, both or linearly. Each sequence is built of all the buffer elements along the chosen Direction.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Direction

Determines the direction of the scan.

+X

Scans along positive X, so horizontally from left to right.

-X

Scans along negative X, so horizontally from right to left.

+Y

Scans along positive Y, so vertically from bottom to top.

-Y

Scans along negative Y, so vertically from top to bottom.

+X+Y

Scans in a meandering path from the bottom left corner to the top right corner; that, a step is taken alternatingly in the positive X direction, then in the positive Y direction.

Linear

Scans from the left to right, bottom to top, starting from the bottom left corner to the top right corner; that is each horizontal scanline is aggregated before moving on to the next one.

Operation

Determines the operation to apply to the elements of the sequence.

Add

Adds all elements of the sequence together.

Minimum

Returns the smallest element in the sequence.

Maximum

Returns the largest element in the sequence.

Count

Returns the number of elements in the sequence.

Inputs

source

The original layer to compute the prefix sum from.

active

If you connect to this input, this is the per-pixel active map that determines which values to take into account when computing the statistics. This a Mono layer. Any value over 0.5 is considered active. Anything below is inactive.

Outputs

prefixsum

The prefix sum of the original layer.

Copernicus nodes