Back to Adaptive Vision Library Lite websiteYou are here:
Start »
Region Combinators »
RegionUnion
Computes a region containing pixels from both input regions.
Syntax
void avl::RegionUnion
(
const avl::Region& inRegion1,
const avl::Region& inRegion2,
avl::Region& outRegion
)
Parameters
|
Name |
Type |
Default |
Description |
![](../../img/in.png) |
inRegion1 |
const Region& |
|
First input region |
![](../../img/in.png) |
inRegion2 |
const Region& |
|
Second input region |
![](../../img/out.png) |
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
Error type |
Description |
DomainError |
Input and output regions are not distinct in RegionUnion. |
See Also