Back to Aurora Vision Library Lite websiteYou are here:
Start »
Region »
Region Combinators »
RegionIntersection
Header: |
AVL.h
|
Namespace: |
avl |
Computes the common part of two regions.
Syntax
void avl::RegionIntersection
(
const avl::Region& inRegion1,
const avl::Region& inRegion2,
avl::Region& outRegion
)
Parameters
|
Name |
Type |
Default |
Description |
![Input value](../../img/in.png) |
inRegion1 |
const Region& |
|
First input region |
![Input value](../../img/in.png) |
inRegion2 |
const Region& |
|
Second input region |
![Output value](../../img/out.png) |
outRegion |
Region& |
|
Output region |
Description
The operation computes the logical intersection of two given regions. That is, the resulting region contains pixel locations that belong to both of the given regions. Both dimensions (width and height) of the resulting region are set to the minimum of the corresponding dimensions of the input regions.
Examples
RegionIntersection run on the sample regions.
Errors
List of possible exceptions:
Error type |
Description |
DomainError |
Input and output regions are not distinct in RegionIntersection. |
See Also
- RegionUnion – Computes a region containing pixels from both input regions.