Explicitly cast window extent to integer for python 3

This commit is contained in:
Johannes Schönberger
2013-11-03 19:15:50 +01:00
parent 2e7f14d2d0
commit 23444a51e8
+1 -1
View File
@@ -376,7 +376,7 @@ def corner_subpix(image, corners, window_size=11, alpha=0.99):
"""
# window extent in one direction
wext = (window_size - 1) / 2
wext = int((window_size - 1) / 2)
image = pad(image, pad_width=wext, mode='constant', constant_values=0)