Explore Library
Code QuizIntermediate

Sobel Edge Detection Depth

Find why this Sobel filter loses half of the edges.

Codepython
import cv2

gray = cv2.imread('photo.jpg', 0)
sobel_x = cv2.Sobel(gray, cv2.CV_8U, 1, 0, ksize=3)

What is the bug that causes missing/one-sided edges?