From 90647fdd69f123a4143cfa339c696164f6ba8472 Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Wed, 15 Apr 2020 23:25:12 +0900 Subject: [PATCH 1/2] [moved from opencv] fix test failure on Jetson TX2 original commit: https://github.com/opencv/opencv/commit/f39784c5842a8db7de5249c1acf3b94a41cc3d1e --- modules/cudabgsegm/test/test_bgsegm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cudabgsegm/test/test_bgsegm.cpp b/modules/cudabgsegm/test/test_bgsegm.cpp index c0c319ff4..56a039387 100644 --- a/modules/cudabgsegm/test/test_bgsegm.cpp +++ b/modules/cudabgsegm/test/test_bgsegm.cpp @@ -110,7 +110,7 @@ CUDA_TEST_P(MOG2, Update) mog2_gold->apply(frame, foreground_gold); - ASSERT_MAT_SIMILAR(foreground_gold, foreground, detectShadow ? 13e-3 : 18e-8); + ASSERT_MAT_SIMILAR(foreground_gold, foreground, detectShadow ? 13e-3 : 2e-4); } } From 4143c3ef27bb5abcef06ee99e1e3fe1411291af1 Mon Sep 17 00:00:00 2001 From: Paul Jurczak Date: Wed, 15 Apr 2020 16:06:14 -0600 Subject: [PATCH 2/2] [moved from opencv] Added to description of WCube constructor `WCube` constructor reorders `min_point`, `max_point` parameters when necessary. I added this info to the description. original commit: https://github.com/opencv/opencv/commit/f64d8078635a44b5bb78c097598304c5db8ced50 --- modules/viz/include/opencv2/viz/widgets.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/viz/include/opencv2/viz/widgets.hpp b/modules/viz/include/opencv2/viz/widgets.hpp index 469107981..072653d03 100644 --- a/modules/viz/include/opencv2/viz/widgets.hpp +++ b/modules/viz/include/opencv2/viz/widgets.hpp @@ -374,8 +374,8 @@ namespace cv public: /** @brief Constructs a WCube. - @param min_point Specifies minimum point of the bounding box. - @param max_point Specifies maximum point of the bounding box. + @param min_point Specifies minimum (or maximum) point of the bounding box. + @param max_point Specifies maximum (or minimum) point of the bounding box, opposite to the first parameter. @param wire_frame If true, cube is represented as wireframe. @param color Color of the cube.