Package georegression.fitting.affine
Class MotionAffinePoint2D_F32
java.lang.Object
georegression.fitting.affine.MotionAffinePoint2D_F32
- All Implemented Interfaces:
MotionTransformPoint<Affine2D_F32,
Point2D_F32>
@Generated("georegression.fitting.affine.MotionAffinePoint2D_F64")
public class MotionAffinePoint2D_F32
extends Object
implements MotionTransformPoint<Affine2D_F32,Point2D_F32>
Finds the best fit model parameters in the least squares sense which can describe the transform
from the 'fromPts' list to the 'toPts' list.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Minimum number of points required to compute a model.Returns the estimated motion from the 'from' coordinate system into the 'to' coordinate system.boolean
process
(List<Point2D_F32> srcPts, List<Point2D_F32> dstPts) Processes the sets of corresponding points and finds a transformation which when applied to 'srcPts' will minimize the difference with the 'dstPts'.
-
Field Details
-
x
protected org.ejml.data.FMatrixRMaj x
-
-
Constructor Details
-
MotionAffinePoint2D_F32
public MotionAffinePoint2D_F32()
-
-
Method Details
-
getTransformSrcToDst
Description copied from interface:MotionTransformPoint
Returns the estimated motion from the 'from' coordinate system into the 'to' coordinate system.- Specified by:
getTransformSrcToDst
in interfaceMotionTransformPoint<Affine2D_F32,
Point2D_F32> - Returns:
- motion
-
process
Description copied from interface:MotionTransformPoint
Processes the sets of corresponding points and finds a transformation which when applied to 'srcPts' will minimize the difference with the 'dstPts'.- Specified by:
process
in interfaceMotionTransformPoint<Affine2D_F32,
Point2D_F32> - Parameters:
srcPts
- The points which are to be transformed. Not modified.dstPts
- The points that are being compared against. Not modified.- Returns:
- true if the computation successfully produced a solution and false if not.
-
getMinimumPoints
public int getMinimumPoints()Description copied from interface:MotionTransformPoint
Minimum number of points required to compute a model.- Specified by:
getMinimumPoints
in interfaceMotionTransformPoint<Affine2D_F32,
Point2D_F32> - Returns:
- The number of points required to compute a model.
-