diff --git a/doc/examples/plot_equalize.py b/doc/examples/plot_equalize.py index f57cea9c..3569c4ee 100644 --- a/doc/examples/plot_equalize.py +++ b/doc/examples/plot_equalize.py @@ -19,7 +19,6 @@ that fall within the 2nd and 98th percentiles [2]_. """ from skimage import data, img_as_float -from skimage.util.dtype import dtype_range from skimage import exposure import matplotlib.pyplot as plt diff --git a/doc/examples/plot_local_equalize.py b/doc/examples/plot_local_equalize.py index bc458505..33b2c2e4 100644 --- a/doc/examples/plot_local_equalize.py +++ b/doc/examples/plot_local_equalize.py @@ -57,7 +57,7 @@ img = data.moon() # Contrast stretching p2 = np.percentile(img, 2) p98 = np.percentile(img, 98) -img_rescale = exposure.equalize(img) +img_rescale = exposure.equalize_hist(img) # Equalization selem = disk(30) diff --git a/skimage/exposure/exposure.py b/skimage/exposure/exposure.py index 465b9182..c7f1e712 100644 --- a/skimage/exposure/exposure.py +++ b/skimage/exposure/exposure.py @@ -81,7 +81,7 @@ def cumulative_distribution(image, nbins=256): @deprecated('equalize_hist') def equalize(image, nbins=256): - equalize_hist(image, nbins) + return equalize_hist(image, nbins) def equalize_hist(image, nbins=256):