Start » Filter Reference » Region » Region Combinators » RegionUnion

RegionUnion


Module: FoundationLite

Computes a region containing pixels from both input regions.

Name Type Description
Input value
inRegion1 Region First input region
Input value
inRegion2 Region Second input region
Output value
outRegion Region Output region

Description

The operation computes the logical union of two given regions. That is, the resulting region contains pixel locations that belong to one or both of the given regions. Both dimensions (width and height) of the resulting region are set to the maximum of corresponding dimensions of the input regions.

Examples

RegionUnion run on the sample regions.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input and output regions are not distinct in RegionUnion.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also