use of georegression.struct.point.Point4D_F64 in project BoofCV by lessthanoptimal.
the class GeneralCheckNViewsTriangulateMetric method pointAtInfinity.
@Test
void pointAtInfinity() {
this.createScene(new Point4D_F64(0.1, -0.2, 4.0, 0.0));
Point3D_F64 found = new Point3D_F64();
// the point is at infinity so failing is acceptable
if (!triangulate(obsNorm, motionWorldToCamera, essential, found))
return;
// it could pass but have a very very large number
assertTrue(found.z > 1e15);
}
use of georegression.struct.point.Point4D_F64 in project BoofCV by lessthanoptimal.
the class GeneralCheckNViewsTriangulateProjective method pointAtInfinity.
@Test
void pointAtInfinity() {
this.createScene(new Point4D_F64(0.1, -0.2, 4.0, 0.0));
Point4D_F64 found = new Point4D_F64();
assertTrue(triangulate(obsPixels, cameraMatrices, essential, found));
assertEquals(0.0, PerspectiveOps.distance(worldPointH, found), UtilEjml.TEST_F64);
}
use of georegression.struct.point.Point4D_F64 in project BoofCV by lessthanoptimal.
the class GeneralCheckNViewsTriangulateProjective method perfectInput.
@Test
void perfectInput() {
createScene();
Point4D_F64 found = new Point4D_F64();
assertTrue(triangulate(obsPixels, cameraMatrices, essential, found));
assertEquals(0.0, worldPoint.distance(convertH(found)), UtilEjml.TEST_F64_SQ);
}
use of georegression.struct.point.Point4D_F64 in project BoofCV by lessthanoptimal.
the class GeneralCheckNViewsTriangulateMetricH method pointAtInfinity.
@Test
void pointAtInfinity() {
this.createScene(new Point4D_F64(0.1, -0.2, 4.0, 0.0));
Point4D_F64 found = new Point4D_F64();
assertTrue(triangulate(obsNorm, motionWorldToCamera, essential, found));
assertEquals(0.0, PerspectiveOps.distance(worldPointH, found), UtilEjml.TEST_F64);
}
use of georegression.struct.point.Point4D_F64 in project BoofCV by lessthanoptimal.
the class GeneralCheckNViewsTriangulateMetricH method perfectInput.
@Test
void perfectInput() {
createScene();
Point4D_F64 found = new Point4D_F64();
assertTrue(triangulate(obsNorm, motionWorldToCamera, essential, found));
assertEquals(0.0, worldPoint.distance(convertH(found)), UtilEjml.TEST_F64_SQ);
}
Aggregations