You are here: Start » AVL.NET » AVL.RegionNumberOfHoles(AvlNet.Region, AvlNet.RegionConnectivity, int, int?, int)

AVL.RegionNumberOfHoles(AvlNet.Region, AvlNet.RegionConnectivity, int, int?, int)

Computes the number of holes in a region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


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

Parameters

inRegion
Type: AvlNet.Region
Input region
inConnectivity
Type: AvlNet.RegionConnectivity
Region connectivity semantics
inMinHoleArea
Type: System.Int32
Minimal area of a hole
inMaxHoleArea
Type: System.Nullable<System.Int32>
Maximal area of a hole, or null.
outNumberOfHoles
Type: System.Int32

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.

See also