Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Morphology » DemarcateRegions
DemarcateRegions
| Header: | FIL.h |
|---|---|
| Namespace: | fil |
| 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 fil::DemarcateRegions ( 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 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. |


