From 02acd3ce4230b9d87f767514fa3207ec1b78175f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Sun, 7 Jul 2013 19:37:30 +0200 Subject: [PATCH] revert, accum is a tuple of lists --- .../plot_circular_elliptical_hough_transform.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/examples/plot_circular_elliptical_hough_transform.py b/doc/examples/plot_circular_elliptical_hough_transform.py index a110698e..e537a4a1 100755 --- a/doc/examples/plot_circular_elliptical_hough_transform.py +++ b/doc/examples/plot_circular_elliptical_hough_transform.py @@ -121,11 +121,11 @@ edges = filter.canny(image_gray, sigma=2.0, # The threshold eliminates low accumulators accum = hough_ellipse(edges, accuracy=7, threshold=93) # Estimated parameters for the ellipse -center_y = int(accum[0, 1]) -center_x = int(accum[0, 2]) -xradius = int(accum[0, 3]) -yradius = int(accum[0, 4]) -angle = accum[0, 5] +center_y = int(accum[0][1]) +center_x = int(accum[0][2]) +xradius = int(accum[0][3]) +yradius = int(accum[0][4]) +angle = accum[0][5] # Draw the ellipse on the original image cx, cy = ellipse_perimeter(center_y, center_x,