BUG - Dtype conversion to Boolean in a new code path not included in current tests.

This commit is contained in:
Josh Warner (Mac)
2012-11-20 01:17:42 -06:00
parent da5a2a8221
commit e7288f9140
+1 -1
View File
@@ -129,7 +129,7 @@ def peak_local_max(image, min_distance=10, threshold_abs=0, threshold_rel=0.1,
if indices is True:
return []
else:
return np.zeros_like(image)
return np.zeros_like(image, dtype=bool)
image = image.copy()
# Non maximum filter