From daef825fb22ebf3810efd5fe7ba93e84bd843b7d Mon Sep 17 00:00:00 2001 From: Peter Abeles Date: Sun, 5 Nov 2023 08:10:41 -0800 Subject: [PATCH] Fixed unit test that was over tuned --- .../geo/calibration/TestCalibrateStereoPlanar.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main/boofcv-geo/src/test/java/boofcv/abst/geo/calibration/TestCalibrateStereoPlanar.java b/main/boofcv-geo/src/test/java/boofcv/abst/geo/calibration/TestCalibrateStereoPlanar.java index 1bca2d6f96..7bcc7baaf5 100644 --- a/main/boofcv-geo/src/test/java/boofcv/abst/geo/calibration/TestCalibrateStereoPlanar.java +++ b/main/boofcv-geo/src/test/java/boofcv/abst/geo/calibration/TestCalibrateStereoPlanar.java @@ -118,17 +118,17 @@ public TestCalibrateStereoPlanar() { } private void checkIntrinsic( CameraPinholeBrown found ) { - assertEquals(intrinsic.fx, found.fx, intrinsic.width*1e-3); - assertEquals(intrinsic.fy, found.fy, intrinsic.width*1e-3); - assertEquals(intrinsic.cx, found.cx, intrinsic.width*1e-3); - assertEquals(intrinsic.cy, found.cy, intrinsic.width*1e-3); - assertEquals(intrinsic.skew, found.skew, intrinsic.width*1e-3); + assertEquals(intrinsic.fx, found.fx, intrinsic.width*2e-3); + assertEquals(intrinsic.fy, found.fy, intrinsic.width*2e-3); + assertEquals(intrinsic.cx, found.cx, intrinsic.width*2e-3); + assertEquals(intrinsic.cy, found.cy, intrinsic.width*2e-3); + assertEquals(intrinsic.skew, found.skew, intrinsic.width*2e-3); assertEquals(intrinsic.radial[0], found.radial[0], 1e-3); assertEquals(intrinsic.radial[1], found.radial[1], 1e-3); - assertEquals(intrinsic.t1, found.t1, 1e-4); - assertEquals(intrinsic.t2, found.t2, 1e-4); + assertEquals(intrinsic.t1, found.t1, 2e-4); + assertEquals(intrinsic.t2, found.t2, 2e-4); assertEquals(intrinsic.width, found.width, 1e-3); assertEquals(intrinsic.height, found.height, 1e-3);