Back to Aurora Vision Library website
You are here: Start » Function Reference » Region » Region Morphology » ExpandRegions
ExpandRegions
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Splits pixels of the input regions and their complement among these regions.
Applications: Use this filter to make sure that every pixel belongs to a region.
Syntax
C++
C#
void avl::ExpandRegions ( 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 receives a pixel; if set to NIL, Taxi metric is used after demarcating with NIL metric | |
outRegions | Array<Region>& |
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Dimensions of two or more regions differ in ExpandRegions. |
DomainError | Input and output arrays are not distinct in ExpandRegions. |