pruningpruningPruningPruning (Operator)

Name

pruningpruningPruningPruning — Prune the branches of a region.

Signature

pruning(Region : RegionPrune : Length : )

Herror pruning(const Hobject Region, Hobject* RegionPrune, const Hlong Length)

Herror T_pruning(const Hobject Region, Hobject* RegionPrune, const Htuple Length)

void Pruning(const HObject& Region, HObject* RegionPrune, const HTuple& Length)

HRegion HRegion::Pruning(Hlong Length) const

static void HOperatorSet.Pruning(HObject region, out HObject regionPrune, HTuple length)

HRegion HRegion.Pruning(int length)

Description

pruningpruningPruningPruningPruning removes branches from a skeleton (RegionRegionRegionRegionregion) having a length less than LengthLengthLengthLengthlength. All other branches are preserved.

Execution Information

Parameters

RegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHobject

Regions to be processed.

RegionPruneRegionPruneRegionPruneRegionPruneregionPrune (output_object)  region(-array) objectHRegionHRegionHobject *

Result of the pruning operation.

LengthLengthLengthLengthlength (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Length of the branches to be removed.

Default value: 2

Suggested values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 17, 20, 30, 40, 50

Typical range of values: 1 ≤ Length Length Length Length length ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Complexity

Let F be the area of the input region. Then the runtime complexity for one region is

Result

pruningpruningPruningPruningPruning returns 2 (H_MSG_TRUE) if all parameters are correct. The behavior in case of empty or no input region can be set via:

Otherwise, an exception is raised.

Possible Predecessors

skeletonskeletonSkeletonSkeletonSkeleton

Possible Successors

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain, select_shapeselect_shapeSelectShapeSelectShapeSelectShape, area_centerarea_centerAreaCenterAreaCenterAreaCenter, connectionconnectionConnectionConnectionConnection

See also

junctions_skeletonjunctions_skeletonJunctionsSkeletonJunctionsSkeletonJunctionsSkeleton

Module

Foundation