Class VisionPoint
java.lang.Object
com.codename1.ai.vision.VisionPoint
Immutable point in a normalized, top-left-origin coordinate space. X grows
right and Y grows down; 0 and 1 correspond to image edges, independent of
source pixel dimensions.
-
Constructor Summary
ConstructorsConstructorDescriptionVisionPoint(float x, float y) Creates a point in the oriented input image's top-left coordinate space. -
Method Summary
-
Constructor Details
-
VisionPoint
public VisionPoint(float x, float y) Creates a point in the oriented input image's top-left coordinate space.- Parameters:
x- horizontal coordinatey- vertical coordinate
-
-
Method Details
-
getX
public float getX()- Returns:
- horizontal coordinate normalized to the oriented input width
-
getY
public float getY()- Returns:
- downward vertical coordinate normalized to input height
-