pruningpruningPruningPruningpruning (算子)

名称

pruningpruningPruningPruningpruning — 修剪一个区域的分枝。

签名

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)

def pruning(region: HObject, length: int) -> HObject

描述

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

执行信息

参数

RegionRegionRegionRegionregionregion (输入对象)  region(-array) objectHRegionHObjectHRegionHobject

Regions to be processed.

RegionPruneRegionPruneRegionPruneRegionPruneregionPruneregion_prune (输出对象)  region(-array) objectHRegionHObjectHRegionHobject *

Result of the pruning operation.

LengthLengthLengthLengthlengthlength (输入控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Length of the branches to be removed.

默认值: 2

建议值: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 17, 20, 30, 40, 50

值范围: 1 ≤ Length Length Length Length length length ≤ 511 (lin)

最小增量: 1

建议增量: 1

复杂度

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

结果

pruningpruningPruningPruningPruningpruning 在所有参数正确时返回 2 ( H_MSG_TRUE )。当输入区域为空或不存在时,其行为可通过以下方式设置:

否则,将抛出异常。

可能的前趋

skeletonskeletonSkeletonSkeletonSkeletonskeleton

可能的后继

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

另见

junctions_skeletonjunctions_skeletonJunctionsSkeletonJunctionsSkeletonJunctionsSkeletonjunctions_skeleton

模块

基础