Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Region Morphology » PruneRegion

PruneRegion


Removes one pixel wide branches from a region.

Name Type Range Description
inRegion Region Input region
inMaxLength Integer 0 - Maximal length of a branch of the input region to be pruned
outRegion 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.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also