diff --git a/skimage/filter/rank/__init__.py b/skimage/filter/rank/__init__.py index b25abb8c..cfd034f1 100644 --- a/skimage/filter/rank/__init__.py +++ b/skimage/filter/rank/__init__.py @@ -7,6 +7,29 @@ from .percentile import (autolevel_percentile, gradient_percentile, pop_percentile, threshold_percentile) from .bilateral import mean_bilateral, pop_bilateral +from skimage._shared.utils import deprecated + + +percentile_autolevel = deprecated('autolevel_percentile')(autolevel_percentile) + +percentile_gradient = deprecated('gradient_percentile')(gradient_percentile) + +percentile_mean = deprecated('mean_percentile')(mean_percentile) +bilateral_mean = deprecated('mean_bilateral')(mean_bilateral) + +meansubtraction = deprecated('subtract_mean')(subtract_mean) +percentile_mean_subtraction = deprecated('subtract_mean_percentile')\ + (subtract_mean_percentile) + +morph_contr_enh = deprecated('enhance_contrast')(enhance_contrast) +percentile_morph_contr_enh = deprecated('enhance_contrast_percentile')\ + (enhance_contrast_percentile) + +percentile_pop = deprecated('pop_percentile')(pop_percentile) +bilateral_pop = deprecated('pop_bilateral')(pop_bilateral) + +percentile_threshold = deprecated('threshold_percentile')(threshold_percentile) + __all__ = ['autolevel', 'autolevel_percentile', @@ -34,4 +57,14 @@ __all__ = ['autolevel', 'noise_filter', 'entropy', 'otsu' - 'percentile'] + 'percentile', + # Deprecated + 'percentile_autolevel', + 'percentile_gradient', + 'percentile_mean', + 'percentile_mean_subtraction', + 'percentile_morph_contr_enh', + 'percentile_pop', + 'percentile_threshold', + 'bilateral_mean', + 'bilateral_pop']