Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Global Transforms » RegionBoundaries

RegionBoundaries
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Removes interior pixels from a region.
Syntax
C++
C#
void fil::RegionBoundaries ( const fil::Region& inRegion, fil::RegionConnectivity::Type inConnectivity, fil::Region& outRegion )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inConnectivity | RegionConnectivity::Type | Type of connectivity used for the region foreground | |
![]() |
outRegion | Region& | Output region |
Description
The operation removes all internal pixels from the region (thus leaving only the boundary pixels). The definition of internal pixel depends on the inConnectivity value:
- If inConnectivity is set to Four directions, internal pixels are those having neighbours in all four major directions (up, down, left, right) also contained in the region
- If inConnectivity is set to Eight directions, internal pixels are those having neighbours in all eight directions (four major + four diagonal) also contained in the region
Examples
![]() |
![]() |
RegionBoundaries run on a sample region.
See Also
- RegionContours – Computes an array of closed paths corresponding to the contours of the input region.
- RegionInteriors – Removes boundary pixels from a region.