Class OpenCVLineWrapper

  • All Implemented Interfaces:
    LineWrapper<org.opencv.core.Point>

    public class OpenCVLineWrapper
    extends AbstractLineWrapper<org.opencv.core.Point>

    Specific Implementation for opencv line, which explicitly uses Point.

    Since:
    1.0
    Author:
    Andreas Pointner
    • Constructor Detail

      • OpenCVLineWrapper

        public OpenCVLineWrapper​(int x1,
                                 int y1,
                                 int x2,
                                 int y2)
        Constructor to set a line with the coordinate of its points in integer
        Parameters:
        x1 - x-coordinate of start point
        y1 - y-coordinate of start point
        x2 - x-coordinate of end point
        y2 - y-coordinate of end point
      • OpenCVLineWrapper

        public OpenCVLineWrapper​(double x1,
                                 double y1,
                                 double x2,
                                 double y2)
        Constructor to set a line with the coordinate of its points in double
        Parameters:
        x1 - x-coordinate of start point
        y1 - y-coordinate of start point
        x2 - x-coordinate of end point
        y2 - y-coordinate of end point
      • OpenCVLineWrapper

        public OpenCVLineWrapper​(org.opencv.core.Point startPoint,
                                 org.opencv.core.Point endPoint)
        Constructor to set a line with opencv Points
        Parameters:
        startPoint - start point
        endPoint - end point
      • OpenCVLineWrapper

        public OpenCVLineWrapper​(Point2Wrapper<org.opencv.core.Point> startPoint,
                                 Point2Wrapper<org.opencv.core.Point> endPoint)
        Constructor to set a line with Point2Wrappers
        Parameters:
        startPoint - start point wrapper
        endPoint - end point wrapper