Added an import of median from the filters module

(it's `filters.rank.median`, but it is convenient to have the very common
median filter in `filters` as well)
This commit is contained in:
emmanuelle
2014-11-29 14:34:09 +01:00
parent 78415132c4
commit bea0c1b7d1
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -8,6 +8,7 @@ from ._gabor import gabor_kernel, gabor_filter
from .thresholding import (threshold_adaptive, threshold_otsu, threshold_yen,
threshold_isodata)
from . import rank
from .rank import median
from skimage._shared.utils import deprecated
from skimage import restoration
@@ -30,6 +31,7 @@ __all__ = ['inverse',
'wiener',
'LPIFilter2D',
'gaussian_filter',
'median',
'canny',
'sobel',
'hsobel',
@@ -1,5 +1,6 @@
from warnings import catch_warnings, simplefilter
from skimage.filters import median
def test_filter_import():
with catch_warnings():