mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 04:50:33 +08:00
Explicitly set sigma value to 0 to avoid warning
This commit is contained in:
@@ -4,6 +4,7 @@ Version 0.10
|
||||
* Remove deprecated parameter `epsilon` of `skimage.viewer.LineProfile`
|
||||
* Remove backwards-compatability of `skimage.measure.regionprops`
|
||||
* Remove {`ratio`, `sigma`} deprecation warnings of `skimage.segmentation.slic`
|
||||
and also remove explicit `sigma` parameter from doc-string example
|
||||
* Change default mode of random_walker segmentation to 'cg_mg' > 'cg' > 'bf',
|
||||
depending on which optional dependencies are available.
|
||||
* Remove deprecated `out` parameter of `skimage.morphology.binary_*`
|
||||
@@ -13,3 +14,4 @@ Version 0.10
|
||||
* Remove deprecated `skimage.color.is_gray` and `skimage.color.is_rgb`
|
||||
functions
|
||||
|
||||
|
||||
|
||||
@@ -87,9 +87,12 @@ def slic(image, n_segments=100, compactness=10., max_iter=10, sigma=None,
|
||||
>>> from skimage.segmentation import slic
|
||||
>>> from skimage.data import lena
|
||||
>>> img = lena()
|
||||
>>> segments = slic(img, n_segments=100, compactness=10)
|
||||
>>> # Increasing the compactness parameter yields more square regions
|
||||
>>> segments = slic(img, n_segments=100, compactness=20)
|
||||
>>> segments = slic(img, n_segments=100, compactness=10, sigma=0)
|
||||
|
||||
Increasing the compactness parameter yields more square regions:
|
||||
|
||||
>>> segments = slic(img, n_segments=100, compactness=20, sigma=0)
|
||||
|
||||
"""
|
||||
|
||||
if sigma is None:
|
||||
|
||||
Reference in New Issue
Block a user