Skip to content

Commit

Permalink
Fixed Edge Detect node (#2590)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Feb 16, 2024
1 parent 67cfd37 commit a71f4d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def g_x() -> np.ndarray:
return cv2.filter2D(img, -1, filter_x)

def g_y() -> np.ndarray:
filter = filter_y or np.rot90(filter_x, 1)
filter = filter_y if filter_y is not None else np.rot90(filter_x, 1)
return cv2.filter2D(img, -1, filter)

if algorithm == Algorithm.ROBERTS:
Expand Down

0 comments on commit a71f4d9

Please sign in to comment.