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
}
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
}
Aggregations