morph_skizmorph_skizMorphSkizMorphSkizmorph_skiz (算子名称)

名称

morph_skizmorph_skizMorphSkizMorphSkizmorph_skiz — Thinning of a region.

警告

morph_skizmorph_skizMorphSkizMorphSkizMorphSkizmorph_skiz is obsolete and is only provided for reasons of backward compatibility.

参数签名

morph_skiz(区域 : RegionSkiz : Iterations1, Iterations2 : )

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

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

void MorphSkiz(const HObject& 区域, 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 区域, out HObject regionSkiz, HTuple iterations1, HTuple iterations2)

HRegion HRegion.MorphSkiz(HTuple iterations1, HTuple iterations2)

HRegion HRegion.MorphSkiz(int iterations1, int iterations2)

def morph_skiz(区域: 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.

运行信息

参数表

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

Regions to be thinned.

RegionSkizRegionSkizRegionSkizRegionSkizregionSkizregion_skiz (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Result of the skiz operator.

Iterations1Iterations1Iterations1Iterations1iterations1iterations_1 (input_control)  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.

Default: 100

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

Value range: 0 ≤ Iterations1 Iterations1 Iterations1 Iterations1 iterations1 iterations_1 (lin)

Minimum increment: 1

Recommended increment: 1

Iterations2Iterations2Iterations2Iterations2iterations2iterations_2 (input_control)  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.

Default: 1

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

Value range: 0 ≤ Iterations2 Iterations2 Iterations2 Iterations2 iterations2 iterations_2 (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

结果

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

可能的前置算子

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

模块

Foundation