Search in sources :

Example 1 with CommonHomographyInducedPlane

use of boofcv.alg.geo.h.CommonHomographyInducedPlane in project BoofCV by lessthanoptimal.

the class TestMultiViewOps method homographyStereo2Lines.

@Test
public void homographyStereo2Lines() {
    CommonHomographyInducedPlane common = new CommonHomographyInducedPlane();
    PairLineNorm l1 = CommonHomographyInducedPlane.convert(common.p1, common.p2);
    PairLineNorm l2 = CommonHomographyInducedPlane.convert(common.p1, common.p3);
    DMatrixRMaj H = MultiViewOps.homographyStereo2Lines(common.F, l1, l2);
    common.checkHomography(H);
}
Also used : CommonHomographyInducedPlane(boofcv.alg.geo.h.CommonHomographyInducedPlane) DMatrixRMaj(org.ejml.data.DMatrixRMaj) PairLineNorm(boofcv.struct.geo.PairLineNorm) Test(org.junit.Test)

Example 2 with CommonHomographyInducedPlane

use of boofcv.alg.geo.h.CommonHomographyInducedPlane in project BoofCV by lessthanoptimal.

the class TestMultiViewOps method homographyStereo3Pts.

@Test
public void homographyStereo3Pts() {
    CommonHomographyInducedPlane common = new CommonHomographyInducedPlane();
    DMatrixRMaj H = MultiViewOps.homographyStereo3Pts(common.F, common.p1, common.p2, common.p3);
    common.checkHomography(H);
}
Also used : CommonHomographyInducedPlane(boofcv.alg.geo.h.CommonHomographyInducedPlane) DMatrixRMaj(org.ejml.data.DMatrixRMaj) Test(org.junit.Test)

Example 3 with CommonHomographyInducedPlane

use of boofcv.alg.geo.h.CommonHomographyInducedPlane in project BoofCV by lessthanoptimal.

the class TestMultiViewOps method homographyStereoLinePt.

@Test
public void homographyStereoLinePt() {
    CommonHomographyInducedPlane common = new CommonHomographyInducedPlane();
    PairLineNorm l1 = CommonHomographyInducedPlane.convert(common.p1, common.p2);
    DMatrixRMaj H = MultiViewOps.homographyStereoLinePt(common.F, l1, common.p3);
    common.checkHomography(H);
}
Also used : CommonHomographyInducedPlane(boofcv.alg.geo.h.CommonHomographyInducedPlane) DMatrixRMaj(org.ejml.data.DMatrixRMaj) PairLineNorm(boofcv.struct.geo.PairLineNorm) Test(org.junit.Test)

Aggregations

CommonHomographyInducedPlane (boofcv.alg.geo.h.CommonHomographyInducedPlane)3 DMatrixRMaj (org.ejml.data.DMatrixRMaj)3 Test (org.junit.Test)3 PairLineNorm (boofcv.struct.geo.PairLineNorm)2