TST: Test both Cython and Python versions of the hough tf.

This commit is contained in:
Stefan van der Walt
2011-07-15 17:45:51 -05:00
parent d025016b3c
commit 7eed21194a
2 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,6 @@ __all__ = ['hough']
from itertools import izip
import numpy as np
def _hough(img, theta=None):
if img.ndim != 2:
raise ValueError('The input image must be 2-D')
@@ -50,6 +49,7 @@ def _hough(img, theta=None):
return out, theta, bins
_py_hough = _hough
# try to import and use the faster Cython version if it exists
try: