Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Morphology » ExpandRegions

ExpandRegions
Header: | FIL.h |
---|---|
Namespace: | fil |
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 fil::ExpandRegions ( const ftl::Array<fil::Region>& inRegions, ftl::Optional<fil::Metric::Type> inMetric, ftl::Array<fil::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
![]() |
![]() |
ExpandRegions performed with inMetric = Taxi.
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. |