hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqhit_or_miss_seq (算子)
名称
hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqhit_or_miss_seq — 使用格雷字母表(顺序)对区域进行击中或击不中操作。
警告
hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqHitOrMissSeqhit_or_miss_seq 已过时,仅出于向后兼容性考虑而保留。
签名
描述
hit_or_miss_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolayhit_or_miss_golay performs the
hit-or-miss-transformation for the input regions RegionRegionRegionRegionregionregion
using all rotations of a structuring element from the Golay
alphabet. The result of the operator is the union of all
intermediate results of the respective rotations. The following
structuring elements are available:
'l', 'm', 'd', 'c', 'e', 'i', 'f', 'f2', 'h', 'k'.
The Golay elements, together with all possible rotations, are
described with the operator golay_elementsgolay_elementsGolayElementsGolayElementsGolayElementsgolay_elements。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
参数
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"
复杂度
Let F be the area of an input region, and R be the number of
rotations. Then the runtime complexity for one region is:
结果
hit_or_miss_seqhit_or_miss_seqHitOrMissSeqHitOrMissSeqHitOrMissSeqhit_or_miss_seq 在所有参数正确时返回 2 ( H_MSG_TRUE )。当输入区域为空或不存在时,其行为可通过以下方式设置:
-
无区域:
set_system('no_object_result',<RegionResult>)set_system("no_object_result",<RegionResult>)SetSystem("no_object_result",<RegionResult>)SetSystem("no_object_result",<RegionResult>)SetSystem("no_object_result",<RegionResult>)set_system("no_object_result",<RegionResult>)
-
空区域:
set_system('empty_region_result',<RegionResult>)set_system("empty_region_result",<RegionResult>)SetSystem("empty_region_result",<RegionResult>)SetSystem("empty_region_result",<RegionResult>)SetSystem("empty_region_result",<RegionResult>)set_system("empty_region_result",<RegionResult>)
否则,将抛出异常。
可能的前趋
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_golayhit_or_miss_golayHitOrMissGolayHitOrMissGolayHitOrMissGolayhit_or_miss_golay,
hit_or_misshit_or_missHitOrMissHitOrMissHitOrMisshit_or_miss
另见
thinning_seqthinning_seqThinningSeqThinningSeqThinningSeqthinning_seq,
thickening_seqthickening_seqThickeningSeqThickeningSeqThickeningSeqthickening_seq
模块
基础