Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

fix depth warper test for python2.7

edgarriba748a4a1d4a7c
diff --git a/test/test_depth_warper.py b/test/test_depth_warper.py
index 7f42fc0d0..004c288b6 100644
--- a/test/test_depth_warper.py
+++ b/test/test_depth_warper.py
@@ -57,7 +57,7 @@ class Tester(unittest.TestCase):
# compute error
res = utils.check_equal_torch(
- patch_ref[..., :-int(offset), :-int(offset)],
+ patch_ref[..., :int(height - offset), :int(width - offset)],
patch_i[..., int(offset):, int(offset):])
self.assertTrue(res)