You are here: Start » AVL.NET » AVL.PruneRegion(AvlNet.Region, int, AvlNet.Region)

AVL.PruneRegion(AvlNet.Region, int, AvlNet.Region)

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

inRegion
Type: AvlNet.Region
Input region
inMaxLength
Type: System.Int32
Maximal length of a branch of the input region to be pruned
outRegion
Type: AvlNet.Region
Output 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