# Prefix Sum Copernicus node

Computes the prefix sum of a layer.

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.

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.

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

• Generates an image with a 3D illusion.

• Takes the average of all input layers.

• Blends two layers together.

• Start of a block, containing its inputs.

• End of a block, declaring its outputs.

• Compiles a block and produces its geometry representation.

• Applies a blur to a layer.

• Creates a Bokeh effect by expanding each pixel by an aperture shape.

• Finds the bounding rectangle of a mask.

• Brightens a layer.

• Creates a layer in a camera’s space.

• Adjusts the camera properties of a layer.

• Extracts a channel from a layer.

• Combines multiple Mono layers into one multichannel layer.

• Divides a layer’s channels into Mono layers.

• Swaps channels within a multichannel layer.

• Creates an alternating checker pattern.

• Keys an input based on hue, saturation, and luminance ranges.

• Clamps an input layer.

• Creates a mask by comparing two layers.

• Initializes pixels to constant values.

• Arranges input layers into a contact sheet.

• Applies contrast to a layer.

• Converts normal layers between signed and offset.

• Crops a layer to a new size.

• Performs a cross product of two RGB layers.

• Builds a matte from cryptomatte layers.

• Decodes a cyrptomatte into coverage and ID.

• Encodes a coverage and object hash into a cryptomatte layer.

• Denoises an input layer.

• Removes white noise from an image.

• Computes the derivative of the source layer along the x- and y-axis.

• Dilates or erodes a layer.

• Distorts an input layer.

• Performs dot product between two layers.

• Detects edges in the input image.

• Detects varying-width silhouette lines.

• Detects varying-width self-occluding silhouettes.

• Detects varying-width crease-lines.

• Computes distances by solving the Eikonal Equation.

• Equalizes colors by stretching or shifting their range.

• Generates a message, warning, or error..

• Fills empty areas of an image using colors at the edges of non-empty areas.

• Smooths out sharp changes in contrast.

• Loads an image or video from disk.

• Fills a layer with a constant value.

• Flips a layer horizontally, vertically, or diagonally.

• Rasterizes text onto a layer from Type 1, TrueType and OpenType fonts.

• Generates fractal noise.

• Generates fractal noise from 3d locations.

• Applies a mathematical function to a layer

• Applies gamma correction to a layer.

• Converts a 2D volume into a layer.

• Adds glow to an image based on its luminance.

• Converts between RGB and HSV color spaces, or applies hue and saturation modifications.

• Imagines a sphere for each pixel and determines how occluded that sphere is based on its surroundings.

• Converts a height layer to a normal layer.

• Randomly tiles texture.

• Builds a histogram from a layer.

• Creates a mask from an ID layer based on filtering parameters.

• Converts an ID layer to a Mono layer.

• Converts an ID layer to an RGB layer based on a seed.

• Computes a Signed Distance Field from changes in ID values.

• Detects illegal pixels, like NAN and INF, in images.

• Fetches the input to a subnetwork.

• Inverts a layer.

• Runs a block using inputs plugged into this node.

• Summary.

• Applies Kuwhara Filter for Painterly Effects.

• Generates a Layer.

• Converts a Layer into a 2d Volume.

• Lights a layer given a light direction and normals.

• Transform a Layer to match a reference camera.

• Applies a 3 x 3 or 5 x 5 median filter to the input image.

• Mirrors an image based on an arbitrary number of planes.

• Convert a layer to Mono.

• Converts a Mono layer to an ID layer

• Uses a ramp to convert a Mono Layer to RGB.

• Explicitly convertes a Mono layer to an RGBA Layer.

• Computes a Signed Distance Field from an iso-level of a Mono layer.

• Passes inputs to the outputs.

• Converts color spaces using OCIO transforms.

• Applies inference from an ONNX Machine Learning model.

• Executes an OpenCL kernel on layers.

• Collects the outputs of a subnetwork.

• Converts polar coordinate pixels to Cartesian pixels.

• Generates a Position Map.

• Computes the prefix sum of a layer.

• Premultiplies an RGBA layer.

• Applies the preview material to geometry.

• Projects a layer onto a target layer.

• Quantizes input data into discrete steps.

• Converts RBG layers to RGBA.

• Splits an RGB layer into UV and Mono layers.

• Converts RBGBA layers to RGB.

• Splits an RGBA layer into two UV layers.

• Writes the output of a COP network to disk.

• Generates linear and radial ramps.

• Creates a Mono layer with random values.

• Creates a Mono layer with random values.

• Rasterizes geometry onto a layer.

• Rasterizes a layer onto another layer’s camera.

• Prepares geometry for the Rasterize Geometry COP.

• Remaps a layer.

• Performs image scaling by changing the width, height and pixel sizes.

• Modifies the values for a Mono SDF layer.

• Combines two Mono SDF layers.

• Builds a 2D signed distance field of a selected shape.

• Converts an SDF field to a Mono image layer.

• Converts an SDF field to an RGB color layer.

• Imports SOP Geometry into Copernicus.

• Segment a layer into connected components.

• Segment a Mono layer into bands of similar value.

• Blends multiple image inputs by a blend factor.

• Import live layers from the Solaris Viewport.

• Converts a height layer into a direction layer.

• Smoothly fills a region of a layer.

• Stamps layers from point positions.

• Outputs the average, minimum and maximum values of the input layer

• Compute statistics for each ID island.

• Streaks an image, adding a motion blur effect.

• Used to organize a collection of COPs into one node.

• Selects an input layer.

• Selects an input based on what is connected.

• Selects an output layer by the type of the inputs.

• Generates rectangular tiles for texture patterns.

• Transforms a layer in 2D.

• Transforms a layer in 3D.

• Generates a UV Map.

• Creates a UV Map for each connected ID island.

• Samples an input layer using a UV layer.

• Transforms the values of a UV layer in 2d space.

• Converts Cartesian coordinate pixels to polar coordinate pixels.

• Joins an UV and Mono layer into an RGB layer.

• Joins two UV layers into an RGBA layer.

• Transforms values of an RGB layer in 3d space.

• Performs a wipe transition between two images.

• Generates Worley noise.

• Generates Worley noise from 3d locations.

• Runs a VEX snippet to modify layer values.

• Composites two layers by depth.