You are here: Start » FIL.NET » Function Reference » Region » Region Features » FIL.RegionNumberOfHoles
Computes the number of holes in a region.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void RegionNumberOfHoles ( FilNet.Region inRegion, FilNet.RegionConnectivity inConnectivity, int inMinHoleArea, out int outNumberOfHoles )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | FilNet.Region | Input region. | ||
![]() | inConnectivity | FilNet.RegionConnectivity | Region connectivity semantics. | ||
![]() | inMinHoleArea | int | <0, INF> | 1 | Minimal area of a hole. Default value: 1. |
![]() | outNumberOfHoles | int |
Description
The operation computes the number of region holes. Holes of a region are those connected areas of pixels not belonging to the region, that do not touch the boundary of the region frame.
Examples
![]() |
![]() |
The number of holes in the sample (left) region equals to 3. The holes are presented on the right image.