mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 10:33:37 +08:00
Bug fix: typo: wrote spacing instead of sigma
This commit is contained in:
@@ -119,7 +119,7 @@ def slic(image, n_segments=100, compactness=10., max_iter=10, sigma=None,
|
||||
spacing = np.array(spacing, np.double)
|
||||
if not isinstance(sigma, coll.Iterable):
|
||||
sigma = np.array([sigma, sigma, sigma], np.double)
|
||||
elif isinstance(spacing, (list, tuple)):
|
||||
elif isinstance(sigma, (list, tuple)):
|
||||
sigma = np.array(sigma, np.double)
|
||||
if (sigma > 0).any():
|
||||
sigma /= spacing.astype(np.double)
|
||||
|
||||
Reference in New Issue
Block a user