Class TriangulateProjectiveLinearDLT
- java.lang.Object
-
- boofcv.alg.geo.triangulate.TriangulateProjectiveLinearDLT
-
public class TriangulateProjectiveLinearDLT extends java.lang.ObjectTriangulates the location of a 3D point given two or more views of the point using the Discrete Linear Transform (DLT). Works with an uncalibrated camera. Pixel observations and camera projection matrices are input. Works on projective geometry. Normalization is automatically applied each row in the projective matrix.
A geometric test is done using singular values. There should be a fairly obvious null space. If this is not the case then the geometry will be considered bad
[1] Page 312 in R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
-
-
Field Summary
Fields Modifier and Type Field Description doublesingularThreshold
-
Constructor Summary
Constructors Constructor Description TriangulateProjectiveLinearDLT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetSingularThreshold()voidsetSingularThreshold(double singularThreshold)GeometricResulttriangulate(java.util.List<georegression.struct.point.Point2D_F64> observations, java.util.List<org.ejml.data.DMatrixRMaj> cameraMatrices, georegression.struct.point.Point4D_F64 found)Given N observations of the same point from two views and a known motion between the two views, triangulate the point's position in camera 'b' reference frame.
-
-
-
Method Detail
-
triangulate
public GeometricResult triangulate(java.util.List<georegression.struct.point.Point2D_F64> observations, java.util.List<org.ejml.data.DMatrixRMaj> cameraMatrices, georegression.struct.point.Point4D_F64 found)
Given N observations of the same point from two views and a known motion between the two views, triangulate the point's position in camera 'b' reference frame.
- Parameters:
observations- Observation in each view in pixel coordinates. Not modified.cameraMatrices- Camera projection matrices, e.g. x = P*X. 3 by 4 projectives. Not modified.found- Output, found 3D point in homogenous coordinates. Modified.- Returns:
- true if triangulation was successful or false if it failed
-
getSingularThreshold
public double getSingularThreshold()
-
setSingularThreshold
public void setSingularThreshold(double singularThreshold)
-
-