Houdini 20.5 Nodes Copernicus nodes

Gamma Copernicus node

Applies gamma correction to a layer.

On this page

This node applies a gamma correction to a layer. [Gamma correction | Wp:Gamma_correction] is an exponential mapping. Since the eye is not linear, given a limited number of grayscale values it is best to not distribute them uniformally, but have closer spacing near black and farther spacing near white. With floating point numbers this is less necessary as the actual number already does this variable storage, but historically fixed-point systems often had a gamma applied to form a simple tone-mapping.

The common gamma encountered is 2.2 or 1/2.2. But gamma can be used for artistic effect as well.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Mask

The amount of the new value to mix in with the original value. Higher values mix in more of the new value. Lower values mix in less of the new value. A value of 1 means this node uses only the new value.

The default value is 1. See Mask for more information.

Channel Scope

The RGBA channels to which you apply the effects of this node.

Red, Green, Blue, and Alpha are on by default.

Toggle RGB

Turns the Red, Green, and Blue channels on and off.

Red

Applies this node’s effects to the Red channel.

Green

Applies this node’s effects to the Green channel.

Blue

Applies this node’s effects to the Blue channel.

Alpha

Applies this node’s effects to the Alpha channel.

Gamma

The exponent to raise image colors by. The common sRGB conversion is 2.2.

Invert

Invert the exponent before applying.

Treat RGBA as Premultiplied

RGBA layers are often premultiplied, so using a exponentiation that doesn’t take the alpha into consideration will cause low coverage areas to be considered dark. This option will implicitly un-premultiply, contrast, and then pre-multiply, so the exponentiation works as expected.

Inputs

source

A Mono, UV, RGB or RGBA layer to apply a gamma correction to.

gamma

A Mono layer providing a per-pixel gamma correction. This is multiplied with the Gamma parameter, and then inverted if Invert is specified.

mask

An optional per-pixel mask amount that’s scaled by the Mask parameter.

Outputs

gamma

The layer, gamma corrected.

See also

Copernicus nodes