Class 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.
    • Constructor Detail

      • LinesReport

        public LinesReport()
        Construct an empty report. This is used as a default value for Sockets 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.
      • getX1

        public double[] getX1()
      • getY1

        public double[] getY1()
      • getX2

        public double[] getX2()
      • getY2

        public double[] getY2()
      • getLength

        public double[] getLength()
      • getAngle

        public double[] getAngle()