📚 The CoCalc Library - books, templates and other resources
1def angle_image(image): 2 image = img_as_float(image) 3 dy = convolve(image, dy_kernel) 4 dx = convolve(image, dx_kernel) 5 6 angle = np.arctan2(dy, dx) 7 return np.degrees(angle) 8 9