boofcv.alg.geo.pose
Class P3PFinsterwalder
- java.lang.Object
-
- boofcv.alg.geo.pose.P3PFinsterwalder
-
- All Implemented Interfaces:
- P3PLineDistance
public class P3PFinsterwalder extends java.lang.Object implements P3PLineDistance
Solves for the 3 unknown distances between camera center and 3 observed points by finding a root of a cubic polynomial and the roots of two quadratic polynomials. Proposed by Finsterwalder in 1903, this implementation is based off the discussion in [1]. There are up to four solutions.
See
P3PLineDistancefor a more detailed problem description.[1] Haralick, Robert M. and Lee, Chung-Nan and Ottenberg, Karsten and Nolle, Michael, "Review and analysis of solutions of the three point perspective pose estimation problem" Int. J. Comput. Vision, 1994 vol 13, no. 13, pages 331-356
-
-
Constructor Summary
Constructors Constructor and Description P3PFinsterwalder(PolynomialRoots rootFinder)Configure
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description FastQueue<PointDistance3>getSolutions()Returns a set of solutions.booleanprocess(Point2D_F64 obs1, Point2D_F64 obs2, Point2D_F64 obs3, double length23, double length13, double length12)Solve for the distance between the camera's origin and each of the 3 points in 3D space.
-
-
-
Constructor Detail
-
P3PFinsterwalder
public P3PFinsterwalder(PolynomialRoots rootFinder)
Configure- Parameters:
rootFinder- Root finder for a 3rd order polynomial with real roots
-
-
Method Detail
-
process
public boolean process(Point2D_F64 obs1, Point2D_F64 obs2, Point2D_F64 obs3, double length23, double length13, double length12)
Description copied from interface:P3PLineDistanceSolve for the distance between the camera's origin and each of the 3 points in 3D space.- Specified by:
processin interfaceP3PLineDistance- Parameters:
obs1- Observation of P1 in normalized image coordinatesobs2- Observation of P2 in normalized image coordinatesobs3- Observation of P3 in normalized image coordinateslength23- Distance between points P2 and P3length13- Distance between points P1 and P3length12- Distance between points P1 and P2- Returns:
- true if successful or false if it failed to generate any solutions
-
getSolutions
public FastQueue<PointDistance3> getSolutions()
Description copied from interface:P3PLineDistanceReturns a set of solutions. Each solution contains the distance to the respective point.- Specified by:
getSolutionsin interfaceP3PLineDistance- Returns:
- List of solutions.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG