mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-16 11:21:25 +08:00
Handle all non-float images.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user