canny edge detection source code
>= r): Z[i,j] = G[i,j] else: Z[i,j] = 0 except IndexError: pass Step 4: Double threshold strong_i, strong_j = np.where(Z >= high_threshold) weak_i, weak_j = np.where((Z >= low_threshold) & (Z < high_threshold)) Initialize