import numpy as np
@@ -11,8 +11,945 @@
 py as np
+%0Aimport cv2%0A%0A%22%22%22%0Atakes a list of points, connects them with a line, blurs the line%0A-------------------------------------------------------------%0Alength, width: length and width of the output image in pixels%0Apoints: list of tuples, i.e. (x, y) points that will be plotted on the image%0Asigma_x, sigma_y: gaussian kernel paramters (higher = more blurry)%0A%22%22%22%0Adef interpolate(length, width, points, sigma_x, sigma_y):%0A    output = np.zeros((length, width), np.uint8)%0A    x = %5Bx for (x, y) in points%5D%0A    y = %5By for (x, y) in points%5D%0A    for i in range(len(points) - 1):%0A        pt1 = points%5Bi%5D%0A        pt2 = points%5Bi+1%5D%0A        cv2.line(output, pt1, pt2, %5B255, 255, 255%5D, 4)%0A    output = cv2.GaussianBlur(output, (sigma_x, sigma_y), 0)%0A    cv2.imshow(%22line%22, output)%0A    cv2.waitKey(0)%0A%0Adef main():%0A    # this is just for testing%0A    points = %5B(0, 0), (500, 500)%5D%0A    interpolate(500,500,1,points, 3, 3, 3)%0A%0Aif __name__ == '__main__': main()%0A

Fix merge conflicts