Fix downscale_local_means doctest

This commit is contained in:
Johannes Schönberger
2013-11-03 23:56:41 +01:00
parent 591aa08ee6
commit 0dd36ab8ea
+2 -2
View File
@@ -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)