Package boofcv.alg.geo.structure
Class DecomposeAbsoluteDualQuadratic
- java.lang.Object
-
- boofcv.alg.geo.structure.DecomposeAbsoluteDualQuadratic
-
public class DecomposeAbsoluteDualQuadratic extends java.lang.ObjectDecomposes the absolute quadratic to extract the rectifying homogrpahy H. This is used to go from a projective to metric (calibrated) geometry. See pg 464 in [1].Q = H*diag([1 1 1 0])*HT and H = [K 0; -p'*K 1]
- R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
-
-
Constructor Summary
Constructors Constructor Description DecomposeAbsoluteDualQuadratic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancomputeRectifyingHomography(org.ejml.data.DMatrixRMaj H)Computes the rectifying homography from the decomposed Q H = [K 0; -p'*K 1] see Pg 460booleandecompose(org.ejml.data.DMatrix4x4 Q)Decomposes the passed in absolute quadraticorg.ejml.data.DMatrix3x3getK()org.ejml.data.DMatrix3getP()Coordinate of plane at infinity = pi_inf = (p,1)org.ejml.data.DMatrix3x3getW()voidrecomputeQ(org.ejml.data.DMatrix4x4 Q)Recomputes Q from w and p.
-
-
-
Method Detail
-
decompose
public boolean decompose(org.ejml.data.DMatrix4x4 Q)
Decomposes the passed in absolute quadratic- Parameters:
Q- Absolute quadratic- Returns:
- true if successful or false if it failed
-
recomputeQ
public void recomputeQ(org.ejml.data.DMatrix4x4 Q)
Recomputes Q from w and p.- Parameters:
Q- Storage for the recomputed Q
-
computeRectifyingHomography
public boolean computeRectifyingHomography(org.ejml.data.DMatrixRMaj H)
Computes the rectifying homography from the decomposed Q H = [K 0; -p'*K 1] see Pg 460
-
getW
public org.ejml.data.DMatrix3x3 getW()
-
getK
public org.ejml.data.DMatrix3x3 getK()
-
getP
public org.ejml.data.DMatrix3 getP()
Coordinate of plane at infinity = pi_inf = (p,1)- Returns:
- Coordinate of plane at infinity
-
-