cv2.Canny(image, threshold1, threshold2, apertureSize, L2gradient) - image为输入图像。 - threshold1表示处理过程中的第一个阈值。 - threshold2表示处理过程中的第二个阈值。 - apertureSize表示Sobel算子的孔径大小。 - L2gradient是否使用 L2 范数进行计算,否则使用 L1 范数
cv2.Canny(image, threshold1=0.2*256, threshold2=0.8*256, apertureSize=3, L2gradient=False)

cv2.Canny(image, threshold1=0.2*256, threshold2=0.8*256, apertureSize=3, L2gradient=True)



cv2.Canny(image, threshold1=0.2*256, threshold2=0.8*256, apertureSize=5, L2gradient=False)



cv2.Canny(image, threshold1=0.5*256, threshold2=0.8*256, apertureSize=3, L2gradient=False)



skimage.feature.canny(image, sigma, low_threshold, high_threshold) - sigma 高斯滤波器的标准差 - low_threshold 滞后阈值(链接边)的下限。如果没有,low_threshold 设置为 dtype 最大值的 10%。 - high_threshold 滞后阈值的上限(链接边)。如果没有,high_threshold 设置为 dtype 最大值的 20%。
canny(image, sigma=1.)



canny(image, sigma=2.)



canny(image, sigma=1., low_threshold=0.2*256, high_threshold=0.8*256)


