Back to Aurora Vision Library website
You are here: Start » Function Reference » Region » Region Morphology » DemarcateRegions
DemarcateRegions
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | FoundationBasic |
Splits common pixels of the input regions among these regions.
Applications: Use this filter to make sure that the regions of an array do not intersect.
Syntax
C++
C#
void avl::DemarcateRegions ( const atl::Array<avl::Region>& inRegions, atl::Optional<avl::Metric::Type> inMetric, atl::Array<avl::Region>& outRegions )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegions | const Array<Region>& | ||
![]() |
inMetric | Optional<Metric::Type> | NIL | Metric used for deciding which region owns a pixel; if set to NIL, region with lowest index in the input array is chosen |
![]() |
outRegions | Array<Region>& |
Examples
|
|
DemarcateRegions performed with inMetric = Euclidean.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Dimensions of two or more regions differ in DemarcateRegions. |


