erosion_golayerosion_golayErosionGolayErosionGolayerosion_golay (算子)

名称

erosion_golayerosion_golayErosionGolayErosionGolayerosion_golay — 用戈莱字母表中的元素腐蚀一个区域。

警告

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

签名

erosion_golay(Region : RegionErosion : GolayElement, Iterations, Rotation : )

Herror erosion_golay(const Hobject Region, Hobject* RegionErosion, const char* GolayElement, const Hlong Iterations, const Hlong Rotation)

Herror T_erosion_golay(const Hobject Region, Hobject* RegionErosion, const Htuple GolayElement, const Htuple Iterations, const Htuple Rotation)

void ErosionGolay(const HObject& Region, HObject* RegionErosion, const HTuple& GolayElement, const HTuple& Iterations, const HTuple& Rotation)

HRegion HRegion::ErosionGolay(const HString& GolayElement, Hlong Iterations, Hlong Rotation) const

HRegion HRegion::ErosionGolay(const char* GolayElement, Hlong Iterations, Hlong Rotation) const

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

static void HOperatorSet.ErosionGolay(HObject region, out HObject regionErosion, HTuple golayElement, HTuple iterations, HTuple rotation)

HRegion HRegion.ErosionGolay(string golayElement, int iterations, int rotation)

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

描述

erosion_golayerosion_golayErosionGolayErosionGolayErosionGolayerosion_golay erodes a region with the selected element GolayElementGolayElementGolayElementGolayElementgolayElementgolay_element from the Golay alphabet. The following structuring elements are available:

'l', 'm', 'd', 'c', 'e', 'i', 'f', 'f2', 'h', 'k'.

The rotation number RotationRotationRotationRotationrotationrotation determines which rotation of the element should be used, and whether the foreground (even) or background version (odd) of the selected element should be used. The Golay elements, together with all possible rotations, are described with the operator golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements。The operator works by shifting the structuring element over the region to be processed (RegionRegionRegionRegionregionregion). For all positions of the structuring element fully contained in the region, the corresponding reference point (relative to the structuring element) is added to the output region. This means that the intersection of all translations of the structuring element within the region is computed.

The parameter IterationsIterationsIterationsIterationsiterationsiterations determines the number of iterations which are to be performed with the structuring element. The result of iteration n-1 is used as input for iteration n.

注意

Not all values of RotationRotationRotationRotationrotationrotation are valid for any Golay element. For some of the values of RotationRotationRotationRotationrotationrotation, the resulting regions are identical to the input regions.

执行信息

参数

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

Regions to be eroded.

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

Eroded 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", 'e'"e""e""e""e""e", 'f'"f""f""f""f""f", 'f2'"f2""f2""f2""f2""f2", 'h'"h""h""h""h""h", 'i'"i""i""i""i""i", 'k'"k""k""k""k""k", 'l'"l""l""l""l""l", 'm'"m""m""m""m""m"

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

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

Rotation of the Golay element. Depending on the element, not all rotations are valid.

默认值: 0

值列表: 0, 2, 4, 6, 8, 10, 12, 14, 1, 3, 5, 7, 9, 11, 13, 15

复杂度

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

结果

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

否则,将抛出异常。

可能的前趋

thresholdthresholdThresholdThresholdThresholdthreshold, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, watershedswatershedsWatershedsWatershedsWatershedswatersheds, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm

可能的后继

reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center, connectionconnectionConnectionConnectionConnectionconnection

替代

erosion_seqerosion_seqErosionSeqErosionSeqErosionSeqerosion_seq, erosion1erosion1Erosion1Erosion1Erosion1erosion1, erosion2erosion2Erosion2Erosion2Erosion2erosion2

另见

dilation_golaydilation_golayDilationGolayDilationGolayDilationGolaydilation_golay, opening_golayopening_golayOpeningGolayOpeningGolayOpeningGolayopening_golay, closing_golayclosing_golayClosingGolayClosingGolayClosingGolayclosing_golay, hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolayhit_or_miss_golay, thinning_golaythinning_golayThinningGolayThinningGolayThinningGolaythinning_golay, thickening_golaythickening_golayThickeningGolayThickeningGolayThickeningGolaythickening_golay, golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements

模块

基础