dilation_seqdilation_seqDilationSeqDilationSeqdilation_seq (算子)

名称

dilation_seqdilation_seqDilationSeqDilationSeqdilation_seq — 按顺序膨胀一个区域。

警告

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

签名

dilation_seq(Region : RegionDilation : GolayElement, Iterations : )

Herror dilation_seq(const Hobject Region, Hobject* RegionDilation, const char* GolayElement, const Hlong Iterations)

Herror T_dilation_seq(const Hobject Region, Hobject* RegionDilation, const Htuple GolayElement, const Htuple Iterations)

void DilationSeq(const HObject& Region, HObject* RegionDilation, const HTuple& GolayElement, const HTuple& Iterations)

HRegion HRegion::DilationSeq(const HString& GolayElement, Hlong Iterations) const

HRegion HRegion::DilationSeq(const char* GolayElement, Hlong Iterations) const

HRegion HRegion::DilationSeq(const wchar_t* GolayElement, Hlong Iterations) const   ( Windows only)

static void HOperatorSet.DilationSeq(HObject region, out HObject regionDilation, HTuple golayElement, HTuple iterations)

HRegion HRegion.DilationSeq(string golayElement, int iterations)

def dilation_seq(region: HObject, golay_element: str, iterations: int) -> HObject

描述

dilation_seqdilation_seqDilationSeqDilationSeqDilationSeqdilation_seq computes the sequential dilation of the input region RegionRegionRegionRegionregionregion with the selected structuring element GolayElementGolayElementGolayElementGolayElementgolayElementgolay_element from the Golay alphabet. This is done by executing the operator dilation_golaydilation_golayDilationGolayDilationGolayDilationGolaydilation_golay with all rotations of the structuring element IterationsIterationsIterationsIterationsiterationsiterations times. The following structuring elements can be selected:

'l', 'd', 'c', 'f', 'h', 'k'.

In order to compute the skeleton of a region, usually the elements 'l' and 'm' are used. Only the “foreground elements” (even rotation numbers) are used. The elements 'i' and 'e' result in unchanged output regions. The elements 'l', 'm' and 'f2' are identical for the foreground. The Golay elements, together with all possible rotations, are described with the operator golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements

执行信息

参数

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

Regions to be dilated.

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

Dilated regions.

GolayElementGolayElementGolayElementGolayElementgolayElementgolay_element (输入控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Structuring element from the Golay alphabet.

默认值: 'h' "h" "h" "h" "h" "h"

值列表: 'c'"c""c""c""c""c", 'd'"d""d""d""d""d", 'f'"f""f""f""f""f", 'h'"h""h""h""h""h", 'k'"k""k""k""k""k", 'l'"l""l""l""l""l"

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

Number of iterations.

默认值: 1

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

值范围: 1 ≤ Iterations Iterations Iterations Iterations iterations iterations (lin)

最小增量: 1

建议增量: 1

复杂度

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

结果

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

否则,将抛出异常。

可能的前趋

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, connectionconnectionConnectionConnectionConnectionconnection, union1union1Union1Union1Union1union1, watershedswatershedsWatershedsWatershedsWatershedswatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm

可能的后继

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

替代

dilation1dilation1Dilation1Dilation1Dilation1dilation1, dilation2dilation2Dilation2Dilation2Dilation2dilation2, dilation_golaydilation_golayDilationGolayDilationGolayDilationGolaydilation_golay

另见

erosion_seqerosion_seqErosionSeqErosionSeqErosionSeqerosion_seq, hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqHitOrMissSeqhit_or_miss_seq, thinning_seqthinning_seqThinningSeqThinningSeqThinningSeqthinning_seq

模块

基础