You are here: Start » AVL.NET » AVL.RegionBoundaries(AvlNet.Region, AvlNet.RegionConnectivity, AvlNet.Region)

AVL.RegionBoundaries(AvlNet.Region, AvlNet.RegionConnectivity, AvlNet.Region)

Removes interior pixels from a region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RegionBoundaries(
	AvlNet.Region inRegion,
	AvlNet.RegionConnectivity inConnectivity,
	out AvlNet.Region outRegion
)

Parameters

inRegion
Type: AvlNet.Region
Input region
inConnectivity
Type: AvlNet.RegionConnectivity
Type of connectivity used for the region foreground
outRegion
Type: AvlNet.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