hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayhit_or_miss_golay (算子)

名称

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayhit_or_miss_golay — 使用 Golay 字母表的区域的击中或击不中操作。

警告

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

签名

hit_or_miss_golay(Region : RegionHitMiss : GolayElement, Rotation : )

Herror hit_or_miss_golay(const Hobject Region, Hobject* RegionHitMiss, const char* GolayElement, const Hlong Rotation)

Herror T_hit_or_miss_golay(const Hobject Region, Hobject* RegionHitMiss, const Htuple GolayElement, const Htuple Rotation)

void HitOrMissGolay(const HObject& Region, HObject* RegionHitMiss, const HTuple& GolayElement, const HTuple& Rotation)

HRegion HRegion::HitOrMissGolay(const HString& GolayElement, Hlong Rotation) const

HRegion HRegion::HitOrMissGolay(const char* GolayElement, Hlong Rotation) const

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

static void HOperatorSet.HitOrMissGolay(HObject region, out HObject regionHitMiss, HTuple golayElement, HTuple rotation)

HRegion HRegion.HitOrMissGolay(string golayElement, int rotation)

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

描述

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolayhit_or_miss_golay performs the hit-or-miss-transformation for the input regions RegionRegionRegionRegionregionregion (using structuring elements from the Golay alphabet). First, an erosion with the foreground of the structuring element GolayElementGolayElementGolayElementGolayElementgolayElementgolay_element is done on the input region RegionRegionRegionRegionregionregion. Then an erosion with the background of the structuring element GolayElementGolayElementGolayElementGolayElementgolayElementgolay_element is performed on the complement of the input region. The intersection of the two resulting regions is the result RegionHitMissRegionHitMissRegionHitMissRegionHitMissregionHitMissregion_hit_miss of hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolayhit_or_miss_golay. 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. The hit-or-miss-transformation selects precisely the points for which the conditions given by the selected Golay element are fulfilled.

注意

Not all values of RotationRotationRotationRotationrotationrotation are valid for any Golay element.

执行信息

参数

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

Regions to be processed.

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

Result of the hit-or-miss operation.

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"

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:

结果

hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolayhit_or_miss_golay 在所有参数正确时返回 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

替代

hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqHitOrMissSeqhit_or_miss_seq, hit_or_misshit_or_missHitOrMissHitOrMissHitOrMisshit_or_miss

另见

erosion_golayerosion_golayErosionGolayErosionGolayErosionGolayerosion_golay, dilation_golaydilation_golayDilationGolayDilationGolayDilationGolaydilation_golay, opening_golayopening_golayOpeningGolayOpeningGolayOpeningGolayopening_golay, closing_golayclosing_golayClosingGolayClosingGolayClosingGolayclosing_golay, thinning_golaythinning_golayThinningGolayThinningGolayThinningGolaythinning_golay, thickening_golaythickening_golayThickeningGolayThickeningGolayThickeningGolaythickening_golay, golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements

模块

基础