Package boofcv.alg.feature.detect.line
Class LineImageOps
java.lang.Object
boofcv.alg.feature.detect.line.LineImageOps
Operations for working with lines detected inside an image.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkAddInside
(int width, int height, Point2D_F32 a, List<Point2D_F32> inside) static @Nullable LineSegment2D_F32
convert
(LineParametric2D_F32 l, int width, int height) Find the point in which the line intersects the image border and create a line segment at those pointsstatic void
mergeSimilar
(List<LineSegment2D_F32> lines, float thresholdAngle, float thresholdDist) static void
pruneClutteredGrids
(MatrixOfList<LineSegment2D_F32> lines, int threshold) static List<LineParametric2D_F32>
pruneRelativeIntensity
(List<LineParametric2D_F32> lines, float[] intensity, float fraction) static List<LineParametric2D_F32>
pruneSimilarLines
(List<LineParametric2D_F32> lines, float[] intensity, float toleranceAngle, float toleranceDist, int imgWidth, int imgHeight) Prunes similar looking lines, but keeps the lines with the most intensity.static void
pruneSmall
(List<LineSegment2D_F32> lines, float threshold)
-
Constructor Details
-
LineImageOps
public LineImageOps()
-
-
Method Details
-
pruneRelativeIntensity
public static List<LineParametric2D_F32> pruneRelativeIntensity(List<LineParametric2D_F32> lines, float[] intensity, float fraction) -
pruneSimilarLines
public static List<LineParametric2D_F32> pruneSimilarLines(List<LineParametric2D_F32> lines, float[] intensity, float toleranceAngle, float toleranceDist, int imgWidth, int imgHeight) Prunes similar looking lines, but keeps the lines with the most intensity. -
pruneClutteredGrids
-
pruneSmall
-
mergeSimilar
public static void mergeSimilar(List<LineSegment2D_F32> lines, float thresholdAngle, float thresholdDist) -
convert
@Nullable public static @Nullable LineSegment2D_F32 convert(LineParametric2D_F32 l, int width, int height) Find the point in which the line intersects the image border and create a line segment at those points -
checkAddInside
-