You are here: Start » AVL.NET » AVL.PruneRegion Method

AVL.PruneRegion Method

Removes one pixel wide branches from a region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void PruneRegion(
	AvlNet.Region inRegion,
	int inMaxLength,
	out AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inMaxLengthint<0, INF>3Maximal length of a branch of the input region to be pruned. Default value: 3.
outRegionAvlNet.RegionOutput region.

Description

The operation removes all branches with length at most inMaxLength from the input region. The branches being removed have to be at most one pixel wide, so the filter should be invoked on thinned regions such as the results of SkeletonizeRegion operation only.

Examples

PruneRegion run on a sample one pixel wide region with inMaxLength = 58.

See also