mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 19:17:14 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user