Package georegression.fitting.so
Class MotionSo3PointSVD_F32
java.lang.Object
georegression.fitting.so.MotionSo3PointSVD_F32
- All Implemented Interfaces:
MotionTransformPoint<So3_F32,
Point3D_F32>
@Generated("georegression.fitting.so.MotionSo3PointSVD_F64")
public class MotionSo3PointSVD_F32
extends Object
implements MotionTransformPoint<So3_F32,Point3D_F32>
Finds the rotation which minimizes the different between the two sets of associated points in 3D. Computes the SVD of the covariance and extracts the motion from the mean of the two sets of points and the U and V components of SVD.
No paper to cite. If anyone has one let me know.
-
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<Point3D_F32> srcPts, List<Point3D_F32> dstPts) Processes the sets of corresponding points and finds a transformation which when applied to 'srcPts' will minimize the difference with the 'dstPts'.
-
Constructor Details
-
MotionSo3PointSVD_F32
public MotionSo3PointSVD_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<So3_F32,
Point3D_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<So3_F32,
Point3D_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<So3_F32,
Point3D_F32> - Returns:
- The number of points required to compute a model.
-