Search in sources :

Example 31 with Equation

use of org.ejml.equation.Equation in project BoofCV by lessthanoptimal.

the class TestPerspectiveOps method multTranC_triple_dense.

@Test
void multTranC_triple_dense() {
    DMatrixRMaj A = RandomMatrices_DDRM.rectangle(3, 3, rand);
    DMatrixRMaj B = RandomMatrices_DDRM.rectangle(3, 3, rand);
    DMatrixRMaj C = RandomMatrices_DDRM.rectangle(3, 3, rand);
    DMatrixRMaj D = RandomMatrices_DDRM.rectangle(3, 3, rand);
    Equation eq = new Equation(A, "A", B, "B", C, "C");
    eq.process("D=A*B*C'");
    DMatrixRMaj expected = eq.lookupDDRM("D");
    PerspectiveOps.multTranC(A, B, C, D);
    assertTrue(MatrixFeatures_DDRM.isEquals(expected, D, UtilEjml.TEST_F64));
}
Also used : DMatrixRMaj(org.ejml.data.DMatrixRMaj) Equation(org.ejml.equation.Equation) Test(org.junit.jupiter.api.Test)

Aggregations

Equation (org.ejml.equation.Equation)31 DMatrixRMaj (org.ejml.data.DMatrixRMaj)29 Test (org.junit.jupiter.api.Test)28 DMatrix4x4 (org.ejml.data.DMatrix4x4)7 CameraPinhole (boofcv.struct.calib.CameraPinhole)5 Se3_F64 (georegression.struct.se.Se3_F64)5 Homography2D_F64 (georegression.struct.homography.Homography2D_F64)3 ArrayList (java.util.ArrayList)3 DMatrix3x3 (org.ejml.data.DMatrix3x3)3 UtilPoint3D_F64 (georegression.geometry.UtilPoint3D_F64)2 Point2D_F64 (georegression.struct.point.Point2D_F64)2 Point3D_F64 (georegression.struct.point.Point3D_F64)2 DMatrix2x2 (org.ejml.data.DMatrix2x2)2 SimpleMatrix (org.ejml.simple.SimpleMatrix)2 TrifocalTensor (boofcv.struct.geo.TrifocalTensor)1 Vector3D_F64 (georegression.struct.point.Vector3D_F64)1 DMatrix3 (org.ejml.data.DMatrix3)1