pruningpruningPruningPruningpruning (算子名称)

名称

pruningpruningPruningPruningpruning — Prune the branches of a region.

参数签名

pruning(区域 : RegionPrune : Length : )

Herror pruning(const Hobject 区域, Hobject* RegionPrune, const Hlong Length)

Herror T_pruning(const Hobject 区域, Hobject* RegionPrune, const Htuple Length)

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

HRegion HRegion::Pruning(Hlong Length) const

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

HRegion HRegion.Pruning(int length)

def pruning(区域: HObject, length: int) -> HObject

描述

pruningpruningPruningPruningPruningpruning removes branches from a skeleton (区域区域区域区域区域区域) having a length less than LengthLengthLengthLengthlengthlength. All other branches are preserved.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regions to be processed.

RegionPruneRegionPruneRegionPruneRegionPruneregionPruneregion_prune (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Result of the pruning operation.

LengthLengthLengthLengthlengthlength (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Length of the branches to be removed.

Default: 2

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

Value range: 1 ≤ Length 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

结果

pruningpruningPruningPruningPruningpruning 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.

可能的前置算子

skeletonskeletonSkeletonSkeletonSkeletonskeleton

可能的后置算子

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

参考其它

junctions_skeletonjunctions_skeletonJunctionsSkeletonJunctionsSkeletonJunctionsSkeletonjunctions_skeleton

模块

Foundation