Handle all non-float images.

This commit is contained in:
Anders Boesen Lindbo Larsen
2012-12-16 13:47:35 +01:00
parent 6c19cf0693
commit 7aa9435301
+1 -1
View File
@@ -91,7 +91,7 @@ def daisy(img, step=4, radius=15, rings=3, histograms=8, orientations=8,
# Validate image format.
if img.ndim > 2:
raise ValueError('Only grey-level images are supported.')
if img.dtype.kind == 'u':
if img.dtype.kind != 'f':
img = img_as_float(img)
# Validate parameters.