Interface MotionTransformPoint<T extends InvertibleTransform,P extends GeoTuple>

All Known Implementing Classes:
MotionAffinePoint2D_F32, MotionAffinePoint2D_F64, MotionSe2PointSVD_F32, MotionSe2PointSVD_F64, MotionSe3PointSVD_F32, MotionSe3PointSVD_F64, MotionSo3PointSVD_F32, MotionSo3PointSVD_F64

public interface MotionTransformPoint<T extends InvertibleTransform,P extends GeoTuple>
Interface for finding a transform that when applied to the 'src' points will minimize the difference between the corresponding point in the 'dst' list.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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<P> srcPts, List<P> dstPts)
    Processes the sets of corresponding points and finds a transformation which when applied to 'srcPts' will minimize the difference with the 'dstPts'.
  • Method Details

    • getTransformSrcToDst

      T getTransformSrcToDst()
      Returns the estimated motion from the 'from' coordinate system into the 'to' coordinate system.
      Returns:
      motion
    • process

      boolean process(List<P> srcPts, List<P> dstPts)
      Processes the sets of corresponding points and finds a transformation which when applied to 'srcPts' will minimize the difference with the 'dstPts'.
      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

      int getMinimumPoints()
      Minimum number of points required to compute a model.
      Returns:
      The number of points required to compute a model.