hough_lines — 在霍夫变换的帮助下检测边缘图像中的线,并以 HNF 格式返回。
算子 hough_lines allows the selection of linelike
structures in a region, whereby it is not necessary that the individual
points of a line are connected. This process is based on the Hough transform.
The parameter AngleResolution defines the degree of exactness
concerning the determination of the angles. It amounts to 1 /
AngleResolution degree.
The parameter Threshold
determines by how many points of the original region a line's hypothesis
must at least be supported in order to be selected into the output.
The parameters AngleGap and DistGap define a
neighborhood of the points in the Hough image in order to determine the
local maxima: AngleGap describes the minimum distance of two
maxima in the Hough image in angle direction and DistGap in
distance direction, respectively. Thus, maxima exceeding
Threshold but lying close to an even higher maximum are eliminated.
If multiple maxima in this neighborhood are equally high, all of them are
returned. This elimination can particularly be helpful when searching for
short and long lines simultaneously.
The lines are returned in Hessian Normal Form (HNF), that is by the direction
Angle and length Dist of their normal vectors.
RegionIn (输入对象) region → object
Binary edge image in which the lines are to be detected.
AngleResolution (输入控制) integer → (integer)
Adjusting the resolution in the angle area.
默认值: 4
值列表: 1, 2, 4, 8
Threshold (输入控制) integer → (integer)
Threshold value in the Hough image.
默认值: 100
值范围:
2
≤
Threshold
AngleGap (输入控制) integer → (integer)
Minimal distance of two maxima in the Hough image (direction: angle).
默认值: 5
值范围:
0
≤
AngleGap
DistGap (输入控制) integer → (integer)
Minimal distance of two maxima in the Hough image (direction: distance).
默认值: 5
值范围:
0
≤
DistGap
Angle (输出控制) hesseline.angle.rad-array → (real)
Angles (in radians) of the detected lines' normal vectors.
值范围:
-1.5707963
≤
Angle
≤
3.1415927
Dist (输出控制) hesseline.distance-array → (real)
Distance of the detected lines from the origin.
元素数量: Dist == Angle
值范围:
0
≤
Dist
算子 hough_lines 在输入不为空时返回值 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>)。如有必要,则抛出异常。
hough_line_trans,
gen_region_hline,
hough_circles
基础