mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Fix deprecation warnings in matching example
This commit is contained in:
1 parent
691dc07771
commit
1a1476841d
1 file changed
+1
-1
@@ -72,7 +72,7 @@ def gaussian_weights(window_ext, sigma=1):
|
||||
|
||||
|
||||
def match_corner(coord, window_ext=5):
|
||||
r, c = np.round(coord)
|
||||
r, c = np.round(coord).astype(np.intp)
|
||||
window_orig = img_orig[r-window_ext:r+window_ext+1,
|
||||
c-window_ext:c+window_ext+1, :]
|
||||
|
||||
|
||||
Reference in new issue
Block a user