georegression.fitting.affine
Class MotionAffinePoint2D_F64
- java.lang.Object
-
- georegression.fitting.affine.MotionAffinePoint2D_F64
-
- All Implemented Interfaces:
- MotionTransformPoint<Affine2D_F64,Point2D_F64>
public class MotionAffinePoint2D_F64 extends java.lang.Object implements MotionTransformPoint<Affine2D_F64,Point2D_F64>
Finds the best fit model parameters in the least squares sense which can describe the transform from the 'fromPts' list to the 'toPts' list.
-
-
Constructor Summary
Constructors Constructor and Description MotionAffinePoint2D_F64()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetMinimumPoints()Minimum number of points required to compute a model.Affine2D_F64getTransformSrcToDst()Returns the estimated motion from the 'from' coordinate system into the 'to' coordinate system.booleanprocess(java.util.List<Point2D_F64> srcPts, java.util.List<Point2D_F64> dstPts)Processes the sets of corresponding points and finds a transformation which when applied to 'srcPts' will minimize the difference with the 'dstPts'.
-
-
-
Method Detail
-
getTransformSrcToDst
public Affine2D_F64 getTransformSrcToDst()
Description copied from interface:MotionTransformPointReturns the estimated motion from the 'from' coordinate system into the 'to' coordinate system.- Specified by:
getTransformSrcToDstin interfaceMotionTransformPoint<Affine2D_F64,Point2D_F64>- Returns:
- motion
-
process
public boolean process(java.util.List<Point2D_F64> srcPts, java.util.List<Point2D_F64> dstPts)
Description copied from interface:MotionTransformPointProcesses the sets of corresponding points and finds a transformation which when applied to 'srcPts' will minimize the difference with the 'dstPts'.- Specified by:
processin interfaceMotionTransformPoint<Affine2D_F64,Point2D_F64>- 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:MotionTransformPointMinimum number of points required to compute a model.- Specified by:
getMinimumPointsin interfaceMotionTransformPoint<Affine2D_F64,Point2D_F64>- Returns:
- The number of points required to compute a model.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG