morph_skiz morph_skiz MorphSkiz MorphSkiz morph_skiz (算子)
名称
morph_skiz morph_skiz MorphSkiz MorphSkiz morph_skiz — 细化一个区域。Skiz:Skeleton by influence zones按影响区域骨架。
警告
morph_skiz morph_skiz MorphSkiz MorphSkiz MorphSkiz morph_skiz 已过时,仅出于向后兼容性考虑而保留。
签名
描述
morph_skiz morph_skiz MorphSkiz MorphSkiz MorphSkiz morph_skiz first performs a sequential thinning
(thinning_seq thinning_seq ThinningSeq ThinningSeq ThinningSeq thinning_seq ) of the input region with the element 'l'
of the Golay alphabet. The number of iterations is determined by
the parameter Iterations1 Iterations1 Iterations1 Iterations1 iterations1 iterations_1 . Then a sequential thinning of
the resulting region with the element 'e' of the Golay alphabet is
carried out. The number of iterations for this step is determined
by the parameter Iterations2 Iterations2 Iterations2 Iterations2 iterations2 iterations_2 . The skiz operation serves
to compute a kind of skeleton of the input regions, and to prune the
branches of the resulting skeleton. If the skiz operation is
applied to the complement of the region, the region and the
resulting skeleton are separated.
If very large values or 'maximal' are passed for
Iterations1 Iterations1 Iterations1 Iterations1 iterations1 iterations_1 or Iterations2 Iterations2 Iterations2 Iterations2 iterations2 iterations_2 , the processing
stops if no more changes occur.
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在元组级别上自动并行化。
参数
Region Region Region Region region region (输入对象) region(-array) → object HRegion HObject HRegion Hobject
Regions to be thinned.
RegionSkiz RegionSkiz RegionSkiz RegionSkiz regionSkiz region_skiz (输出对象) region(-array) → object HRegion HObject HRegion Hobject *
Result of the skiz operator.
Iterations1 Iterations1 Iterations1 Iterations1 iterations1 iterations_1 (输入控制) integer → HTuple Union[int, str] HTuple Htuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)
Number of iterations for the sequential thinning
with the element 'l' of the Golay alphabet.
默认值:
100
建议值:
'maximal' "maximal" "maximal" "maximal" "maximal" "maximal" , 0, 1, 2, 3, 5, 7, 10, 15, 20, 30, 40, 50, 70, 100, 150, 200, 300, 400
值范围:
0
≤
Iterations1
Iterations1
Iterations1
Iterations1
iterations1
iterations_1
(lin)
最小增量:
1
建议增量:
1
Iterations2 Iterations2 Iterations2 Iterations2 iterations2 iterations_2 (输入控制) integer → HTuple Union[int, str] HTuple Htuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)
Number of iterations for the sequential thinning
with the element 'e' of the Golay alphabet.
默认值:
1
建议值:
'maximal' "maximal" "maximal" "maximal" "maximal" "maximal" , 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 15, 17, 20, 30, 40, 50
值范围:
0
≤
Iterations2
Iterations2
Iterations2
Iterations2
iterations2
iterations_2
(lin)
最小增量:
1
建议增量:
1
复杂度
Let F be the area of the input region. Then the runtime
complexity for one region is
结果
morph_skiz morph_skiz MorphSkiz MorphSkiz MorphSkiz morph_skiz 在所有参数正确时返回 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
可能的后继
pruning pruning Pruning Pruning Pruning pruning ,
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 ,
background_seg background_seg BackgroundSeg BackgroundSeg BackgroundSeg background_seg ,
complement complement Complement Complement Complement complement
替代
skeleton skeleton Skeleton Skeleton Skeleton skeleton ,
thinning_seq thinning_seq ThinningSeq ThinningSeq ThinningSeq thinning_seq ,
morph_skeleton morph_skeleton MorphSkeleton MorphSkeleton MorphSkeleton morph_skeleton ,
interjacent interjacent Interjacent Interjacent Interjacent interjacent
另见
thinning thinning Thinning Thinning Thinning thinning ,
hit_or_miss_seq hit_or_miss_seq HitOrMissSeq HitOrMissSeq HitOrMissSeq hit_or_miss_seq ,
difference difference Difference Difference Difference difference
模块
基础