Skip to content
Snippets Groups Projects
Commit 03ea70c5 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

fix comparison to str

parent 1c0fb02e
Branches
No related tags found
No related merge requests found
Pipeline #55595 passed
......@@ -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[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment