morph_skizmorph_skizMorphSkizMorphSkizmorph_skiz (算子)

名称

morph_skizmorph_skizMorphSkizMorphSkizmorph_skiz — 细化一个区域。Skiz:Skeleton by influence zones按影响区域骨架。

警告

morph_skizmorph_skizMorphSkizMorphSkizMorphSkizmorph_skiz 已过时,仅出于向后兼容性考虑而保留。

签名

morph_skiz(Region : RegionSkiz : Iterations1, Iterations2 : )

Herror morph_skiz(const Hobject Region, Hobject* RegionSkiz, const Hlong Iterations1, const Hlong Iterations2)

Herror T_morph_skiz(const Hobject Region, Hobject* RegionSkiz, const Htuple Iterations1, const Htuple Iterations2)

void MorphSkiz(const HObject& Region, HObject* RegionSkiz, const HTuple& Iterations1, const HTuple& Iterations2)

HRegion HRegion::MorphSkiz(const HTuple& Iterations1, const HTuple& Iterations2) const

HRegion HRegion::MorphSkiz(Hlong Iterations1, Hlong Iterations2) const

static void HOperatorSet.MorphSkiz(HObject region, out HObject regionSkiz, HTuple iterations1, HTuple iterations2)

HRegion HRegion.MorphSkiz(HTuple iterations1, HTuple iterations2)

HRegion HRegion.MorphSkiz(int iterations1, int iterations2)

def morph_skiz(region: HObject, iterations_1: Union[int, str], iterations_2: Union[int, str]) -> HObject

描述

morph_skizmorph_skizMorphSkizMorphSkizMorphSkizmorph_skiz first performs a sequential thinning (thinning_seqthinning_seqThinningSeqThinningSeqThinningSeqthinning_seq) of the input region with the element 'l' of the Golay alphabet. The number of iterations is determined by the parameter Iterations1Iterations1Iterations1Iterations1iterations1iterations_1. Then a sequential thinning of the resulting region with the element 'e' of the Golay alphabet is carried out. The number of iterations for this step is determined by the parameter Iterations2Iterations2Iterations2Iterations2iterations2iterations_2. The skiz operation serves to compute a kind of skeleton of the input regions, and to prune the branches of the resulting skeleton. If the skiz operation is applied to the complement of the region, the region and the resulting skeleton are separated.

If very large values or 'maximal' are passed for Iterations1Iterations1Iterations1Iterations1iterations1iterations_1 or Iterations2Iterations2Iterations2Iterations2iterations2iterations_2, the processing stops if no more changes occur.

执行信息

参数

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

Regions to be thinned.

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

Result of the skiz operator.

Iterations1Iterations1Iterations1Iterations1iterations1iterations_1 (输入控制)  integer HTupleUnion[int, str]HTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Number of iterations for the sequential thinning with the element 'l' of the Golay alphabet.

默认值: 100

建议值: 'maximal'"maximal""maximal""maximal""maximal""maximal", 0, 1, 2, 3, 5, 7, 10, 15, 20, 30, 40, 50, 70, 100, 150, 200, 300, 400

值范围: 0 ≤ Iterations1 Iterations1 Iterations1 Iterations1 iterations1 iterations_1 (lin)

最小增量: 1

建议增量: 1

Iterations2Iterations2Iterations2Iterations2iterations2iterations_2 (输入控制)  integer HTupleUnion[int, str]HTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Number of iterations for the sequential thinning with the element 'e' of the Golay alphabet.

默认值: 1

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

值范围: 0 ≤ Iterations2 Iterations2 Iterations2 Iterations2 iterations2 iterations_2 (lin)

最小增量: 1

建议增量: 1

复杂度

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

结果

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

否则,将抛出异常。

可能的前趋

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, connectionconnectionConnectionConnectionConnectionconnection, union1union1Union1Union1Union1union1, watershedswatershedsWatershedsWatershedsWatershedswatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm

可能的后继

pruningpruningPruningPruningPruningpruning, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection, background_segbackground_segBackgroundSegBackgroundSegBackgroundSegbackground_seg, complementcomplementComplementComplementComplementcomplement

替代

skeletonskeletonSkeletonSkeletonSkeletonskeleton, thinning_seqthinning_seqThinningSeqThinningSeqThinningSeqthinning_seq, morph_skeletonmorph_skeletonMorphSkeletonMorphSkeletonMorphSkeletonmorph_skeleton, interjacentinterjacentInterjacentInterjacentInterjacentinterjacent

另见

thinningthinningThinningThinningThinningthinning, hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqHitOrMissSeqhit_or_miss_seq, differencedifferenceDifferenceDifferenceDifferencedifference

模块

基础