matching_lines ( RegionIn : RegionLines : AngleIn, DistIn, LineWidth, Thresh : AngleOut, DistOut )
Selects those lines from a set of lines (in HNF) which
fit best into a region.
Lines which fit best into a region can be selected from a set of lines which
are available in HNF with the help of the operator
matching_lines; the region itself is also transmitted as a parameter
(RegionIn). The width of the lines can be indicated by the operator
LineWidth. The selected lines will be returned in HNF
and as regions (RegionLines).
The lines are selected iteratively in a loop: At first, the line showing the greatest
overlap with the input region is selected from the set of input lines. This line will then
be taken over into the ouput set whereby all points belonging to that line will not be
considered in the further steps determining overlaps. The loop will be
left when the maximum overlap value of the region and the lines falls below
a certain threshold value (Thresh). The selected lines will be returned
as regions as well as in HNF.
Parameters
RegionIn (input_object)
|
region -> object
|
Region in which the lines are to be matched. |
RegionLines (output_object)
|
region-array -> object
|
Region array containing the matched lines. |
AngleIn (input_control)
|
hesseline.angle.deg-array -> real
|
Angle (in degrees) of the normal vectors of the input lines. |
Range of values: -90.0 <= AngleIn <= 180.0 |
DistIn (input_control)
|
hesseline.distance-array -> real
|
Distance of the input lines form the origin. |
Range of values: -90.0 <= DistIn <= 180.0 |
Number of elements: DistIn == AngleIn |
LineWidth (input_control)
|
integer -> integer
|
Width of the lines |
Default value: 7 |
Range of values: 1 <= LineWidth |
Thresh (input_control)
|
integer -> integer
|
Threshold value for the number of line points in the region. |
Default value: 100 |
Range of values: 1 <= Thresh |
AngleOut (output_control)
|
hesseline.angle.deg-array -> real
|
Angle (in degrees) of the normal vector of the selected lines. |
Range of values: -90.0 <= AngleOut <= 180.0 |
Number of elements: AngleOut <= AngleIn |
DistOut (output_control)
|
hesseline.distance-array -> real
|
Distance of the selected.lines from the origin |
Range of values: -90.0 <= DistOut <= 180.0 |
Number of elements: DistOut == AngleOut |
Possible Predecessors
hough_lines
Copyright © 1996-1997 MVTec Software GmbH