Search in sources :

Example 11 with PointTransformHomography_F32

use of boofcv.alg.distort.PointTransformHomography_F32 in project BoofCV by lessthanoptimal.

the class TestRectifyImageOps method fullViewLeft_uncalibrated.

@Test
public void fullViewLeft_uncalibrated() {
    // do nothing rectification
    FMatrixRMaj rect1 = CommonOps_FDRM.diag(2, 3, 1);
    FMatrixRMaj rect2 = CommonOps_FDRM.diag(0.5f, 2, 1);
    RectifyImageOps.fullViewLeft(300, 250, rect1, rect2);
    // check left image
    PointTransformHomography_F32 tran = new PointTransformHomography_F32(rect1);
    checkInside(tran);
// the right view is not checked since it is not part of the contract
}
Also used : FMatrixRMaj(org.ejml.data.FMatrixRMaj) PointTransformHomography_F32(boofcv.alg.distort.PointTransformHomography_F32) Test(org.junit.Test)

Example 12 with PointTransformHomography_F32

use of boofcv.alg.distort.PointTransformHomography_F32 in project BoofCV by lessthanoptimal.

the class TestRectifyImageOps method allInsideLeft_uncalibrated.

@Test
public void allInsideLeft_uncalibrated() {
    // do nothing rectification
    FMatrixRMaj rect1 = CommonOps_FDRM.diag(2, 3, 1);
    FMatrixRMaj rect2 = CommonOps_FDRM.diag(0.5f, 2, 1);
    RectifyImageOps.allInsideLeft(300, 250, rect1, rect2);
    // check left image
    FMatrixRMaj inv = new FMatrixRMaj(3, 3);
    CommonOps_FDRM.invert(rect1, inv);
    PointTransformHomography_F32 tran = new PointTransformHomography_F32(inv);
    checkInside(tran);
// the right view is not checked since it is not part of the contract
}
Also used : FMatrixRMaj(org.ejml.data.FMatrixRMaj) PointTransformHomography_F32(boofcv.alg.distort.PointTransformHomography_F32) Test(org.junit.Test)

Aggregations

PointTransformHomography_F32 (boofcv.alg.distort.PointTransformHomography_F32)12 Point2Transform2_F32 (boofcv.struct.distort.Point2Transform2_F32)4 SequencePoint2Transform2_F32 (boofcv.struct.distort.SequencePoint2Transform2_F32)4 FMatrixRMaj (org.ejml.data.FMatrixRMaj)4 PointToPixelTransform_F32 (boofcv.alg.distort.PointToPixelTransform_F32)3 RectangleLength2D_F32 (georegression.struct.shapes.RectangleLength2D_F32)2 Test (org.junit.Test)2 ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)1 PointTracker (boofcv.abst.feature.tracker.PointTracker)1 BackgroundModelMoving (boofcv.alg.background.BackgroundModelMoving)1 PinholePtoN_F32 (boofcv.alg.distort.pinhole.PinholePtoN_F32)1 ConfigBackgroundBasic (boofcv.factory.background.ConfigBackgroundBasic)1 ConfigBackgroundGaussian (boofcv.factory.background.ConfigBackgroundGaussian)1 ConfigBackgroundGmm (boofcv.factory.background.ConfigBackgroundGmm)1 FactoryPointTracker (boofcv.factory.feature.tracker.FactoryPointTracker)1 ImageGridPanel (boofcv.gui.image.ImageGridPanel)1 MediaManager (boofcv.io.MediaManager)1 SimpleImageSequence (boofcv.io.image.SimpleImageSequence)1 DefaultMediaManager (boofcv.io.wrapper.DefaultMediaManager)1 GrayF32 (boofcv.struct.image.GrayF32)1