From aedd12faebc6ca275fc40df419546e6afe054e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sat, 16 Feb 2013 08:09:13 +0100 Subject: [PATCH] Remove unused imports --- skimage/transform/_hough_transform.pyx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/skimage/transform/_hough_transform.pyx b/skimage/transform/_hough_transform.pyx index e63afa60..f2a22d15 100644 --- a/skimage/transform/_hough_transform.pyx +++ b/skimage/transform/_hough_transform.pyx @@ -3,11 +3,9 @@ #cython: nonecheck=False #cython: wraparound=False cimport cython -import math import numpy as np cimport numpy as np -from random import randint -from libc.math cimport abs, fabs, sqrt, ceil, floor +from libc.math cimport abs, fabs, sqrt, ceil from libc.stdlib cimport rand @@ -40,7 +38,7 @@ def _hough(np.ndarray img, np.ndarray[ndim=1, dtype=np.double_t] theta=None): cdef Py_ssize_t max_distance, offset max_distance = 2 * ceil(sqrt(img.shape[0] * img.shape[0] + - img.shape[1] * img.shape[1])) + img.shape[1] * img.shape[1])) accum = np.zeros((max_distance, theta.shape[0]), dtype=np.uint64) bins = np.linspace(-max_distance / 2.0, max_distance / 2.0, max_distance) offset = max_distance / 2