mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-12 06:19:35 +08:00
Fix downscale_local_means doctest
This commit is contained in:
@@ -260,8 +260,8 @@ def downscale_local_mean(image, factors, cval=0):
|
||||
[ 5, 6, 7, 8, 9],
|
||||
[10, 11, 12, 13, 14]])
|
||||
>>> downscale_local_mean(a, (2, 3))
|
||||
array([[3.5, 4.],
|
||||
[5.5, 4.5]])
|
||||
array([[ 3.5, 4. ],
|
||||
[ 5.5, 4.5]])
|
||||
|
||||
"""
|
||||
return block_reduce(image, factors, np.mean, cval)
|
||||
|
||||
Reference in New Issue
Block a user