mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-11 12:43:04 +08:00
TST: Test both Cython and Python versions of the hough tf.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user