You are here: Start » AVL.NET » Function Reference » Region » Region Combinators » AVL.RegionUnion

AVL.RegionUnion

Computes a region containing pixels from both input regions.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RegionUnion
(
	AvlNet.Region inRegion1,
	AvlNet.Region inRegion2,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inRegion1AvlNet.RegionFirst input region.
inRegion2AvlNet.RegionSecond input region.
outRegionAvlNet.RegionOutput 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

List of possible exceptions:

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

See also