Class OpenCVPoint2Wrapper

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

    public class OpenCVPoint2Wrapper
    extends AbstractPoint2Wrapper<org.opencv.core.Point>

    Class for wrapping a two-dimensional point of the opencv framework.

    Since:
    1.0
    Author:
    Christoph Praschl
    • Constructor Detail

      • OpenCVPoint2Wrapper

        public OpenCVPoint2Wrapper​(org.opencv.core.Point point)
        Constructor for a new AbstractPoint2Wrapper
        Parameters:
        point - The point which should be wrapped
      • OpenCVPoint2Wrapper

        public OpenCVPoint2Wrapper​(int x,
                                   int y)
        Parameters:
        x - x-coordinate of the wrapped point
        y - y-coordinate of the wrapped point
      • OpenCVPoint2Wrapper

        public OpenCVPoint2Wrapper​(double x,
                                   double y)
        Parameters:
        x - x-coordinate of the wrapped point
        y - y-coordinate of the wrapped point
    • Method Detail

      • getX

        public double getX()
        Getter for the x-coordinate
        Returns:
        Returns the value of the x-coordinate.
      • setX

        public void setX​(double x)
        Setter for the x-coordinate
        Parameters:
        x - value which should be assigned to the x-coordinate
      • getY

        public double getY()
        Getter for the y-coordinate
        Returns:
        Returns the value of the y-coordinate.
      • setY

        public void setY​(double y)
        Setter for the y-coordinate
        Parameters:
        y - value which should be assigned to the y-coordinate