Finds edges in an image using the [Canny86] algorithm.
cv2.Canny(image, threshold1, threshold2[, edges[, apertureSize[, L2gradient]]]) → edges
image
.Sobel()
operator. Default is 3.L2gradient=True
), or whether the default L1 norm \(L_1 = |dI/dx|+|dI/dy|\) is enough (L2gradient=False
).
The function finds edges in the input image and marks them in the output map, edges
, using the Canny algorithm. The smallest value between threshold1
and threshold2
is used for edge linking. The largest value is used to find initial segments of strong edges.
Sobel()
.