mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Use explicit interger division
This commit is contained in:
1 parent
12d2e9a204
commit
83f7f37cbf
1 file changed
+1
-1
@@ -376,7 +376,7 @@ def corner_subpix(image, corners, window_size=11, alpha=0.99):
|
||||
"""
|
||||
|
||||
# window extent in one direction
|
||||
wext = int((window_size - 1) / 2)
|
||||
wext = (window_size - 1) // 2
|
||||
|
||||
image = pad(image, pad_width=wext, mode='constant', constant_values=0)
|
||||
|
||||
|
||||
Reference in new issue
Block a user