mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-11 11:25:30 +08:00
Removed deprecated filters.canny links
This commit is contained in:
@@ -14,29 +14,18 @@ from . import rank
|
||||
from .rank import median
|
||||
|
||||
from .._shared.utils import deprecated, copy_func
|
||||
from .. import restoration
|
||||
|
||||
|
||||
gaussian_filter = copy_func(gaussian, name='gaussian_filter')
|
||||
gaussian_filter = deprecated('skimage.filters.gaussian')(gaussian_filter)
|
||||
gabor_filter = copy_func(gabor, name='gabor_filter')
|
||||
gabor_filter = deprecated('skimage.filters.gabor')(gabor_filter)
|
||||
|
||||
# Backward compatibility v<0.11
|
||||
|
||||
|
||||
@deprecated('skimage.feature.canny')
|
||||
def canny(*args, **kwargs):
|
||||
# Hack to avoid circular import
|
||||
from ..feature._canny import canny as canny_
|
||||
return canny_(*args, **kwargs)
|
||||
|
||||
|
||||
__all__ = ['inverse',
|
||||
'wiener',
|
||||
'LPIFilter2D',
|
||||
'gaussian',
|
||||
'median',
|
||||
'canny',
|
||||
'sobel',
|
||||
'hsobel',
|
||||
'vsobel',
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
from ..._shared._warnings import expected_warnings
|
||||
from ...data import moon
|
||||
|
||||
|
||||
def test_canny_import():
|
||||
data = moon()
|
||||
with expected_warnings(['skimage.feature.canny']):
|
||||
from skimage.filters import canny
|
||||
canny(data)
|
||||
Reference in New Issue
Block a user