Class OpenCVPoint2Wrapper
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.AbstractPoint2Wrapper<org.opencv.core.Point>
-
- science.aist.imaging.opencv.imageprocessing.wrapper.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
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.api.domain.wrapper.AbstractPoint2Wrapper
point
-
-
Constructor Summary
Constructors Constructor Description OpenCVPoint2Wrapper(double x, double y)
OpenCVPoint2Wrapper(int x, int y)
OpenCVPoint2Wrapper(org.opencv.core.Point point)
Constructor for a new AbstractPoint2Wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getX()
Getter for the x-coordinatedouble
getY()
Getter for the y-coordinatevoid
setX(double x)
Setter for the x-coordinatevoid
setY(double y)
Setter for the y-coordinate
-
-
-
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 pointy
- y-coordinate of the wrapped point
-
OpenCVPoint2Wrapper
public OpenCVPoint2Wrapper(double x, double y)
- Parameters:
x
- x-coordinate of the wrapped pointy
- 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
-
-