Houdini 20.5 Nodes Copernicus nodes

Extrapolate Boundaries Copernicus node

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

On this page

This node extends a layer from the inside of a fill area to the outside, which is done by copying the pixels outwards. You can then use the Exterior parameter to determine whether uncopied pixels in the outside area are reset to black, filled smoothly, or left unchanged.

Use this node to ensure that there is a bleed around texture maps to avoid mip-mapping from bringing black values into the sampled region.

Note

If your source input layer is RGBA, you might want to use an RGBA to RGB COP to split the alpha out before adding the Extrapolate Boundaries node. The alpha often defines the fillarea and the RGB the source.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Exterior

The method used to set the pixels beyond the edge padding.

Unchanged

Leave the pixels unchanged.

Black

Set the pixels to black (0).

Diffuse Fill

Run a Smooth Fill COP over the region, which smoothly interpolates the pixel values.

Inner Side

The side of the fillarea input to consider the inside.

Below Threshold

Values below this threshold are the inside of the source. This fills the white regions of the fillarea.

Above Threshold

Values above this threshold are the inside of the soruce. This fills the black regions of the fillarea.

Threshold

The value to switch between the inside and outside in the fillarea input.

Edge Padding

The distance (in image coordinates) to directly copy pixel values into the exterior.

Edge Offset

When reading the original value to copy outwards for edge padding, the value exactly at the edge padding may already have exterior color incorporated. This is the distance (in image coordinates) to backtrack to read clean values for extrapolation.

Sample Only Present

Considers original values only if they're in the source area, which means they pass the Threshold value.

This parameter prevents black leaking in from uninitialized areas and is useful when the data in the fillarea is invalid. In most cases, this means you can set Edge Offset to 0 when this parameter is on. If the fillarea contains valid data, turn this parameter off to interpolate a proper smooth edge value.

Inputs

source

A Mono, UV, RGB, or RGBA layer to extrapolate.

fillarea

A layer that specifies where the interior is, which then extrapolates into the exterior.

mask

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

Outputs

extrapolation

The source extrapolated into the exterior.

See also

Copernicus nodes