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

RegionInteriors
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Removes boundary pixels from a region.
Syntax
C++
C#
void fil::RegionInteriors ( 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 boundary pixels from the region (thus leaving only the interior pixels). The definition of boundary pixel depends on the inConnectivity value:
- If inConnectivity is set to Four directions, boundary pixels are those having at least one of the neighbours in four major directions (up, down, left, right) not contained in the region
- If inConnectivity is set to Eight directions, boundary pixels are those having at least one of the neighbours in all eight directions (four major + four diagonal) not contained in the region
Examples
![]() |
![]() |
RegionInteriors run on a sample region.
Remarks
This filter is mostly used in Blob Analysis Technique please refer to our Machine Vision Guide - Blob Analysis article.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported connectivity type in RegionInteriors. |
See Also
- RegionBoundaries – Removes interior pixels from a region.