import numpy as np
img = np.loadtxt('cars.txt', dtype=int)
img = img.astype(np.uint8)
Gx = np.array([[-1, 0, +1], [-2, 0, +2], [-1, 0, +1]])
Gy = np.array([[-1, -2, -1], [0, 0, 0], [+1, +2, +1]])
G = np.sqrt(Gx * Gx + Gy * Gy)

9359c6e5437b03e6963410ca872d80ad7c5768a0
<mask token>

<mask token>
img = np.loadtxt('cars.txt', dtype=int)
img = img.astype(np.uint8)
Gx = np.array([[-1, 0, +1], [-2, 0, +2], [-1, 0, +1]])
Gy = np.array([[-1, -2, -1], [0, 0, 0], [+1, +2, +1]])
G = np.sqrt(Gx * Gx + Gy * Gy)

import numpy as np
img = np.loadtxt('cars.txt', dtype=int)
img = img.astype(np.uint8)
Gx = np.array([[-1, 0, +1], [-2, 0, +2], [-1, 0, +1]])
Gy = np.array([[-1, -2, -1], [0, 0, 0], [+1, +2, +1]])
G = np.sqrt(Gx * Gx + Gy * Gy)
