boofcv.alg.feature.detect.line
Class LineImageOps
- java.lang.Object
-
- boofcv.alg.feature.detect.line.LineImageOps
-
public class LineImageOps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description LineImageOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidcheckAddInside(int width, int height, Point2D_F32 a, java.util.List<Point2D_F32> inside)static Point2D_F32computePoint(LineParametric2D_F32 l, double t)static LineSegment2D_F32convert(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 voidmergeSimilar(java.util.List<LineSegment2D_F32> lines, float thresholdAngle, float thresholdDist)static voidpruneClutteredGrids(MatrixOfList<LineSegment2D_F32> lines, int threshold)static java.util.List<LineParametric2D_F32>pruneRelativeIntensity(java.util.List<LineParametric2D_F32> lines, float[] intensity, float fraction)static java.util.List<LineParametric2D_F32>pruneSimilarLines(java.util.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 voidpruneSmall(java.util.List<LineSegment2D_F32> lines, float threshold)
-
-
-
Method Detail
-
pruneRelativeIntensity
public static java.util.List<LineParametric2D_F32> pruneRelativeIntensity(java.util.List<LineParametric2D_F32> lines, float[] intensity, float fraction)
-
pruneSimilarLines
public static java.util.List<LineParametric2D_F32> pruneSimilarLines(java.util.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.- Parameters:
lines-intensity-toleranceAngle-- Returns:
-
pruneClutteredGrids
public static void pruneClutteredGrids(MatrixOfList<LineSegment2D_F32> lines, int threshold)
-
pruneSmall
public static void pruneSmall(java.util.List<LineSegment2D_F32> lines, float threshold)
-
mergeSimilar
public static void mergeSimilar(java.util.List<LineSegment2D_F32> lines, float thresholdAngle, float thresholdDist)
-
convert
public static 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
public static void checkAddInside(int width, int height, Point2D_F32 a, java.util.List<Point2D_F32> inside)
-
computePoint
public static Point2D_F32 computePoint(LineParametric2D_F32 l, double t)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG