hit_or_miss_golay hit_or_miss_golay HitOrMissGolay HitOrMissGolay hit_or_miss_golay (算子)
名称
hit_or_miss_golay hit_or_miss_golay HitOrMissGolay HitOrMissGolay hit_or_miss_golay — 使用 Golay 字母表的区域的击中或击不中操作。
警告
hit_or_miss_golay hit_or_miss_golay HitOrMissGolay HitOrMissGolay HitOrMissGolay hit_or_miss_golay 已过时,仅出于向后兼容性考虑而保留。
签名
描述
hit_or_miss_golay hit_or_miss_golay HitOrMissGolay HitOrMissGolay HitOrMissGolay hit_or_miss_golay performs the
hit-or-miss-transformation for the input regions Region Region Region Region region region
(using structuring elements from the Golay alphabet). First, an
erosion with the foreground of the structuring element
GolayElement GolayElement GolayElement GolayElement golayElement golay_element is done on the input region
Region Region Region Region region region . Then an erosion with the background of the
structuring element GolayElement GolayElement GolayElement GolayElement golayElement golay_element is performed on the
complement of the input region. The intersection of the two
resulting regions is the result RegionHitMiss RegionHitMiss RegionHitMiss RegionHitMiss regionHitMiss region_hit_miss of
hit_or_miss_golay hit_or_miss_golay HitOrMissGolay HitOrMissGolay HitOrMissGolay hit_or_miss_golay . The following structuring elements
are available:
'l', 'm', 'd', 'c', 'e','i', 'f', 'f2', 'h', 'k'.
The rotation number Rotation Rotation Rotation Rotation rotation rotation 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 Rotation Rotation Rotation Rotation rotation rotation are valid for any Golay
element.
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在元组级别上自动并行化。
参数
Region Region Region Region region region (输入对象) region(-array) → object HRegion HObject HRegion Hobject
Regions to be processed.
RegionHitMiss RegionHitMiss RegionHitMiss RegionHitMiss regionHitMiss region_hit_miss (输出对象) region(-array) → object HRegion HObject HRegion Hobject *
Result of the hit-or-miss operation.
GolayElement GolayElement GolayElement GolayElement golayElement golay_element (输入控制) string → HTuple str HTuple Htuple (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"
Rotation Rotation Rotation Rotation rotation rotation (输入控制) integer → HTuple int HTuple Htuple (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_golay hit_or_miss_golay HitOrMissGolay HitOrMissGolay HitOrMissGolay hit_or_miss_golay 在所有参数正确时返回 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>)
否则,将抛出异常。
可能的前趋
threshold threshold Threshold Threshold Threshold threshold ,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing regiongrowing ,
connection connection Connection Connection Connection connection ,
union1 union1 Union1 Union1 Union1 union1 ,
watersheds watersheds Watersheds Watersheds Watersheds watersheds ,
class_ndim_norm class_ndim_norm ClassNdimNorm ClassNdimNorm ClassNdimNorm class_ndim_norm
可能的后继
reduce_domain reduce_domain ReduceDomain ReduceDomain ReduceDomain reduce_domain ,
select_shape select_shape SelectShape SelectShape SelectShape select_shape ,
area_center area_center AreaCenter AreaCenter AreaCenter area_center ,
connection connection Connection Connection Connection connection
替代
hit_or_miss_seq hit_or_miss_seq HitOrMissSeq HitOrMissSeq HitOrMissSeq hit_or_miss_seq ,
hit_or_miss hit_or_miss HitOrMiss HitOrMiss HitOrMiss hit_or_miss
另见
erosion_golay erosion_golay ErosionGolay ErosionGolay ErosionGolay erosion_golay ,
dilation_golay dilation_golay DilationGolay DilationGolay DilationGolay dilation_golay ,
opening_golay opening_golay OpeningGolay OpeningGolay OpeningGolay opening_golay ,
closing_golay closing_golay ClosingGolay ClosingGolay ClosingGolay closing_golay ,
thinning_golay thinning_golay ThinningGolay ThinningGolay ThinningGolay thinning_golay ,
thickening_golay thickening_golay ThickeningGolay ThickeningGolay ThickeningGolay thickening_golay ,
golay_elements golay_elements GolayElements GolayElements GolayElements golay_elements
模块
基础