I hadn't realized when I changed orientations to an array, that its actually just an int and the original code said range(orientations), so I changed it to np.arange(orientations). Hopefully the tests will now pass again

This commit is contained in:
Ivo Flipse
2015-06-18 22:08:34 +02:00
parent 2500c21b12
commit 167c8eeeb6
+1 -1
View File
@@ -124,7 +124,7 @@ def hog(image, orientations=9, pixels_per_cell=(8, 8),
from .. import draw
radius = min(cx, cy) // 2 - 1
orientations_arr = np.array(orientations)
orientations_arr = np.arange(orientations)
dx_arr = radius * np.cos(orientations_arr / orientations_arr * np.pi)
dy_arr = radius * np.sin(orientations_arr / orientations_arr * np.pi)