Class HomographyPointOps_F64
java.lang.Object
georegression.transform.homography.HomographyPointOps_F64
Applies homography transform to 2D points.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Point2D_F64
transform
(Homography2D_F64 H, double x, double y, @Nullable Point2D_F64 result) Applies a 2D homography transform to the point and stores the results in another variable.static Point2D_F64
transform
(Homography2D_F64 H, Point2D_F64 orig, @Nullable Point2D_F64 result) Applies a 2D homography transform to the point and stores the results in another variable.
-
Constructor Details
-
HomographyPointOps_F64
public HomographyPointOps_F64()
-
-
Method Details
-
transform
public static Point2D_F64 transform(Homography2D_F64 H, Point2D_F64 orig, @Nullable @Nullable Point2D_F64 result) Applies a 2D homography transform to the point and stores the results in another variable. b = H*a, where 'a' is the input/orig point, 'b' is the output/result point, and 'H' is a homography from a to b.- Parameters:
H
- Homography transformorig
- Original point being transformed. Not modified.result
- Where the results are stored. Can be the same as orig. If null a new instance is created. Modified.- Returns:
- Transformed point.
-
transform
public static Point2D_F64 transform(Homography2D_F64 H, double x, double y, @Nullable @Nullable Point2D_F64 result) Applies a 2D homography transform to the point and stores the results in another variable. b = H*a, where 'a' is the input/orig point, 'b' is the output/result point, and 'H' is a homography from a to b.- Parameters:
H
- Homography transformx
- Original x-coordinatey
- Original y-coordinateresult
- Where the results are stored. Can be the same as orig. If null a new instance is created. Modified.- Returns:
- Transformed point.
-