From ae08a54819752ee5e96d9567ed88720aed69eb2a Mon Sep 17 00:00:00 2001
From: Tiago Freitas Pereira <tiagofrepereira@gmail.com>
Date: Fri, 22 Apr 2022 15:06:14 +0200
Subject: [PATCH] Changed the gray function

---
 bob/io/base/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bob/io/base/__init__.py b/bob/io/base/__init__.py
index da1b8ab..7d4d6f5 100644
--- a/bob/io/base/__init__.py
+++ b/bob/io/base/__init__.py
@@ -86,8 +86,8 @@ def open_file(filename):
         # Checking for gray scaled images
         if (
             img.ndim > 2
-            and np.allclose(img[:, :, 0], img[:, :, 1])
-            and np.allclose(img[:, :, 0], img[:, :, 2])
+            and np.array_equal(img[:, :, 0], img[:, :, 1])
+            and np.array_equal(img[:, :, 0], img[:, :, 2])
         ):
             img = img[:, :, 0]
         return img
-- 
GitLab