You are here: Start » FIL.NET » Function Reference » Region » Region Morphology » FIL.PruneRegion
Removes one pixel wide branches from a region.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void PruneRegion ( FilNet.Region inRegion, int inMaxLength, FilNet.Region outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inRegion | FilNet.Region | Input region. | ||
![]() | inMaxLength | int | <0, INF> | 3 | Maximal length of a branch of the input region to be pruned. Default value: 3. |
![]() | outRegion | FilNet.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.