hamming_change_region — 生成具有给定汉明距离的区域。
hamming_change_region 已过时,仅出于向后兼容性考虑而保留。
hamming_change_region(InputRegion : OutputRegion : Width, Height, Distance : )
hamming_change_region changes the region in the left
upper part of the image given by Width and
Height such that the resulting regions have a Hamming
distance of Distance to the input regions. This is done
by adding or removing Distance points from the input
region.
If Width and Height are chosen too large the
resulting region requires a lot of memory.
InputRegion (输入对象) region(-array) → object
Region to be modified.
OutputRegion (输出对象) region(-array) → object
Regions having the required Hamming distance.
Width (输入控制) extent.x → (integer)
Width of the region to be changed.
默认值: 100
建议值: 64, 128, 256, 512
值范围:
1
≤
Width
≤
512 (lin)
最小增量: 1
建议增量: 10
限制:
Width > 0
Height (输入控制) extent.y → (integer)
Height of the region to be changed.
默认值: 100
建议值: 64, 128, 256, 512
值范围:
1
≤
Height
≤
512 (lin)
最小增量: 1
建议增量: 10
限制:
Height > 0
Distance (输入控制) integer → (integer)
Hamming distance between the old and new regions.
默认值: 1000
建议值: 100, 500, 1000, 5000, 10000
值范围:
0
≤
Distance
≤
10000 (lin)
最小增量: 1
建议增量: 10
限制:
Distance >= 0 && Distance < Width * Height
Memory requirement of the generated region (worst case):
O(2 * Width * Height).
hamming_change_region 在所有参数正确时返回 2 ( H_MSG_TRUE )。当输入为空(未指定区域)时则可设置行为通过 set_system('no_object_result',<Result>)。如有必要,则抛出异常。
connection,
regiongrowing,
pouring,
class_ndim_norm
基础