mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-18 12:40:14 +08:00
fixed bug when sigma is set manually
This commit is contained in:
@@ -71,6 +71,8 @@ def threshold_adaptive(image, block_size, method='gaussian', offset=0,
|
||||
if param is None:
|
||||
# automatically determine sigma which covers > 99% of distribution
|
||||
sigma = (block_size - 1) / 6.0
|
||||
else:
|
||||
sigma = param
|
||||
scipy.ndimage.gaussian_filter(image, sigma, output=thresh_image,
|
||||
mode=mode)
|
||||
elif method == 'mean':
|
||||
|
||||
Reference in New Issue
Block a user