From 1a1476841d2d0e484a5c4245c3140c6c58039870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Fri, 11 Apr 2014 10:46:30 -0400 Subject: [PATCH] Fix deprecation warnings in matching example --- doc/examples/plot_matching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/plot_matching.py b/doc/examples/plot_matching.py index 5812fa37..314c45d2 100644 --- a/doc/examples/plot_matching.py +++ b/doc/examples/plot_matching.py @@ -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, :]