diff --git a/backend/src/packages/chaiNNer_standard/image_filter/miscellaneous/edge_detection.py b/backend/src/packages/chaiNNer_standard/image_filter/miscellaneous/edge_detection.py index bd3e8373e4..e6f1a8f4f6 100644 --- a/backend/src/packages/chaiNNer_standard/image_filter/miscellaneous/edge_detection.py +++ b/backend/src/packages/chaiNNer_standard/image_filter/miscellaneous/edge_detection.py @@ -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: