Class LinesReport
- java.lang.Object
-
- edu.wpi.grip.core.operations.composite.LinesReport
-
- All Implemented Interfaces:
Publishable
public class LinesReport extends java.lang.Object implements Publishable
This class contains the results of a line detection algorithm. It has an input matrix (the image supplied to the algorithm), and and output matrix, which contains every line found in its rows. This is used by FindLinesOperation as the type of its output socket, allowing other classes (like GUI previews and line filtering operations) to have a type-safe way of operating on line detection results and not just any random matrix.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinesReport.Line
-
Constructor Summary
Constructors Constructor Description LinesReport()
Construct an empty report.LinesReport(org.bytedeco.javacpp.opencv_imgproc.LineSegmentDetector lsd, MatWrapper input, java.util.List<LinesReport.Line> lines)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getAngle()
MatWrapper
getInput()
double[]
getLength()
java.util.List<LinesReport.Line>
getLines()
protected org.bytedeco.javacpp.opencv_imgproc.LineSegmentDetector
getLineSegmentDetector()
double[]
getX1()
double[]
getX2()
double[]
getY1()
double[]
getY2()
-
-
-
Constructor Detail
-
LinesReport
public LinesReport()
Construct an empty report. This is used as a default value forSocket
s containing LinesReports.
-
LinesReport
public LinesReport(org.bytedeco.javacpp.opencv_imgproc.LineSegmentDetector lsd, MatWrapper input, java.util.List<LinesReport.Line> lines)
- Parameters:
lsd
- The detector to be used.input
- The input matrix.lines
- The lines that have been found.
-
-
Method Detail
-
getLineSegmentDetector
protected org.bytedeco.javacpp.opencv_imgproc.LineSegmentDetector getLineSegmentDetector()
-
getInput
public MatWrapper getInput()
- Returns:
- The original image that the line detection was performed on.
-
getLines
public java.util.List<LinesReport.Line> getLines()
-
getX1
public double[] getX1()
-
getY1
public double[] getY1()
-
getX2
public double[] getX2()
-
getY2
public double[] getY2()
-
getLength
public double[] getLength()
-
getAngle
public double[] getAngle()
-
-