diff --git a/examples/libf3d/cpp/render-image/check.cxx b/examples/libf3d/cpp/render-image/check.cxx index 01e676c26c..1fe8284f81 100644 --- a/examples/libf3d/cpp/render-image/check.cxx +++ b/examples/libf3d/cpp/render-image/check.cxx @@ -14,5 +14,5 @@ int main(int argc, char** argv) // Compare them double error; - return img0.compare(img1, 50, error) ? EXIT_SUCCESS : EXIT_FAILURE; + return img0.compare(img1, 0.05, error) ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/examples/libf3d/python/img-cmp/img-cmp.py b/examples/libf3d/python/img-cmp/img-cmp.py index 3b95e2acc8..093abdcb2a 100644 --- a/examples/libf3d/python/img-cmp/img-cmp.py +++ b/examples/libf3d/python/img-cmp/img-cmp.py @@ -11,7 +11,7 @@ diff = f3d.Image() error = 0.0 - result = img_0.compare(img_1, 50, diff, error) + result = img_0.compare(img_1, 0.05, diff, error) if result: print("Images are identical") diff --git a/python/testing/test_image_compare.py b/python/testing/test_image_compare.py index 2dfa4346d9..65953b0382 100644 --- a/python/testing/test_image_compare.py +++ b/python/testing/test_image_compare.py @@ -26,4 +26,4 @@ def test_compare_with_file(): error = 0.0 - assert img.compare(f3d.Image(reference), 50, error) + assert img.compare(f3d.Image(reference), 0.05, error) diff --git a/python/testing/test_loader.py b/python/testing/test_loader.py index c028531bca..8069614efd 100644 --- a/python/testing/test_loader.py +++ b/python/testing/test_loader.py @@ -27,4 +27,4 @@ def test_load_memory(): error = 0.0 - assert img.compare(f3d.Image(reference), 50, error) + assert img.compare(f3d.Image(reference), 0.05, error)