You are here: Start » AVL.NET » Function Reference » Region » Region Features » AVL.RegionNumberOfHoles

AVL.RegionNumberOfHoles

Computes the number of holes in a region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RegionNumberOfHoles
(
	AvlNet.Region inRegion,
	AvlNet.RegionConnectivity inConnectivity,
	int inMinHoleArea,
	int? inMaxHoleArea,
	out int outNumberOfHoles
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inConnectivityAvlNet.RegionConnectivityRegion connectivity semantics.
inMinHoleAreaint<0, INF>1Minimal area of a hole. Default value: 1.
inMaxHoleAreaint?<0, INF>Maximal area of a hole. Default value: atl::NIL.
outNumberOfHolesint

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.

Function Overrides

See also