From 313bf0ea9a3e4102e36dbe37d078de13c8f990ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Tue, 6 Aug 2013 20:01:38 +0200 Subject: [PATCH] fix example according to new API --- doc/examples/plot_circular_elliptical_hough_transform.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/examples/plot_circular_elliptical_hough_transform.py b/doc/examples/plot_circular_elliptical_hough_transform.py index a371bf24..7ada848c 100755 --- a/doc/examples/plot_circular_elliptical_hough_transform.py +++ b/doc/examples/plot_circular_elliptical_hough_transform.py @@ -126,12 +126,12 @@ best = heapq.nlargest(1, accum)[0] # Estimated parameters for the ellipse center_y = int(best[1]) center_x = int(best[2]) -xradius = int(best[3]) -yradius = int(best[4]) -angle = np.pi - best[5] +yradius = int(best[3]) +xradius = int(best[4]) +angle = best[5] # Draw the ellipse on the original image -cx, cy = ellipse_perimeter(center_y, center_x, +cy, cx = ellipse_perimeter(center_y, center_x, yradius, xradius, orientation=angle) image_rgb[cy, cx] = (0, 0, 1) # Draw the edge (white) and the resulting ellipse (red)