Package boofcv.alg.feature.detect.line
Class ConnectLinesGrid
java.lang.Object
boofcv.alg.feature.detect.line.ConnectLinesGrid
Given a grid of detected line segments connect line segments together if they appear to be apart of the same line. First lines inside the same segment are considered and connected together then lines in neighboring segments are linked together. Connectivity rules are inspired by [1] with a couple of departures and optimizations.
Two lines are considered to belong to the same line if:
- Line slopes are similar to within tolerance.
- If the closest point on each line are within tangential and longitudinal distance tolerances.
- Orientation is determined by the first line segment's slope.
[1] M. Hirzer, "Marker Detection for Augmented Reality Applications" Seminar/Project Image Analysis Graz, October 27, 2008.
-
Constructor Summary
ConstructorDescriptionConnectLinesGrid
(double lineSlopeAngleTol, double tangentTol, double parallelTol) Specify line connecting parameters. -
Method Summary
-
Constructor Details
-
ConnectLinesGrid
public ConnectLinesGrid(double lineSlopeAngleTol, double tangentTol, double parallelTol) Specify line connecting parameters.- Parameters:
lineSlopeAngleTol
- How similar the slope two lines need to be in radians. Try 0.062.tangentTol
- Tolerance along tangential axis. Try 1.parallelTol
- Tolerance along longitudinal axis. Try 8.
-
-
Method Details
-
process
-