Rename and deprecate filter module to prevent shadowing of built-in keyword

This commit is contained in:
Stefan van der Walt
2014-11-10 12:53:50 +02:00
parent 80b9807185
commit 78a7b7307a
62 changed files with 171 additions and 150 deletions
+1
View File
@@ -1,5 +1,6 @@
Version 0.11
------------
- The ``skimage.filter`` has been renamed to ``skimage.filters``.
- Some edge detectors returned values greater than 1--their results are now
appropriately scaled with a factor of ``sqrt(2)``.
@@ -117,7 +117,7 @@ The choice of the elevation map is critical for good segmentation.
Here, the amplitude of the gradient provides a good elevation map. We
use the Sobel operator for computing the amplitude of the gradient::
>>> from skimage.filter import sobel
>>> from skimage.filters import sobel
>>> elevation_map = sobel(coins)
From the 3-D surface plot shown below, we see that high barriers effectively
+1 -1
View File
@@ -51,7 +51,7 @@ call the total-variation denoising function, ``denoise_tv_bregman``:
.. code-block:: python
from skimage.filter import denoise_tv_bregman
from skimage.filters import denoise_tv_bregman
from skimage.viewer.plugins.base import Plugin
denoise_plugin = Plugin(image_filter=denoise_tv_bregman)