From 03ea70c5379b9a9806c824e080c55079db472d03 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Tue, 26 Oct 2021 15:23:28 +0200 Subject: [PATCH] fix comparison to str --- bob/ip/qualitymeasure/msu_iqa_features.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bob/ip/qualitymeasure/msu_iqa_features.py b/bob/ip/qualitymeasure/msu_iqa_features.py index 87abc1e..8b46cff 100644 --- a/bob/ip/qualitymeasure/msu_iqa_features.py +++ b/bob/ip/qualitymeasure/msu_iqa_features.py @@ -65,10 +65,10 @@ def sobelEdgeMap(image, orientation='both'): refSobel_sep = bob.ip.base.sobel(refImage) refSobelX = refSobel_sep[0, :, :] refSobelY = refSobel_sep[1, :, :] - if orientation is 'horizontal': + if orientation == 'horizontal': refEdge = iqm.edge_thinning(refSobelX[:, :], refSobelX[:, :], thinning) else: - if orientation is 'vertical': + if orientation == 'vertical': refEdge = iqm.edge_thinning( refSobelY[ :, :], refSobelY[ -- GitLab