hough_circles — 使用霍夫变换检测特定半径的圆心。
hough_circles detects the centers of circles in regions
with the help of the Hough transform
for circles with a specific radius.
RegionIn (输入对象) region → object
Binary edge image in which the circles are to be detected.
RegionOut (输出对象) region(-array) → object
Centers of those circles which are included in the edge image by Percent percent.
元素数量: RegionOut == Radius * Percent * Mode
Radius (输入控制) integer(-array) → (integer)
Radius of the circle to be searched in the image.
元素数量: 1 <= Radius <= 500
默认值: 12
值范围:
2
≤
Radius
≤
500 (lin)
最小增量: 1
建议增量: 1
Percent (输入控制) integer(-array) → (integer)
Indicates the percentage (approximately) of the (ideal) circle which
must be present in the edge image RegionIn。
元素数量: 1 <= Percent <= 100
默认值: 60
值范围:
10
≤
Percent
≤
100 (lin)
最小增量: 1
建议增量: 5
Mode (输入控制) integer(-array) → (integer)
The mode defines the position of the circle in question:
0 - the radius is equivalent to the outer border of the set pixels.
1 - the radius is equivalent to the centers of the circle lines' pixels.
2 - both 0 and 1 (a little more fuzzy, but more reliable in contrast to
circles set slightly differently, necessitates 50 %
more processing capacity compared to 0 or 1 alone).
元素数量: 1 <= Mode <= 3
值列表: 0, 1, 2
算子 hough_circles 在输入不为空时返回值 2 ( H_MSG_TRUE )。当输入为空(无可用输入区域)时,可设置行为通过算子 set_system('no_object_result',<Result>),
the behavior in case of empty region is set via
set_system('empty_region_result',<Result>)。如有必要,则抛出异常。
基础