Houdini 20.5 Nodes Copernicus nodes

Bounding Rectangle Copernicus node

Finds the bounding rectangle of a mask.

On this page

This nodes finds the bounding rectangle of a monochrome layer. This bounding rectangle contains all the pixels either above or below a threshold value.

The output is a mask of the bounding rectangle, but also geometry whose four points contain the bounding area. For example, you can use the geometry in a Crop COP to then extract only the bound interval.

Parameters

Inside Is

The values contained by the bounding rectangle.

Below Threshold

All pixels below the threshold are in the final rectangle.

Above Threshold

All pixels above the threshold are in the final rectangle.

Threshold

The value to compare with to determine if a pixel should expand the bounding rectangle.

Inside Value

The output mask is set to this value inside the bounding rectangle.

Outside Value

The output mask is set to this value outside the bounding rectangle.

Geometry Units

The unit of measurement that the generated geoemtry’s points represent.

Note

If using the Crop COP, set this parameter to the same units specified on that COP.

Image

The points represent image coordinates.

Texture

The points represent texture coordinates.

Pixel

The points represent pixel coordinates.

Inputs

region

A monochrome layer to detect a bounding rectangle in. If you have an RGB layer, first use a mask operation to identify your region of interest as a monochrome mask.

Outputs

mask

The bounding rectangle is rendered into this layer.

boundrect

Geometry consisting of four points for the corners of the bounding rectangle. If there is no bounding rectangle, the points are all zero.

See also

Copernicus nodes