mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Fix TypeError
This commit is contained in:
1 parent
11c4ca7f53
commit
15c0df33c9
1 file changed
+1
-1
@@ -162,7 +162,7 @@ def convert(image, dtype, force_copy=False, uniform=False, frange=[-1.5, 1.5]):
|
||||
if kind_in == 'f':
|
||||
if frange and np.min(image) < frange[0] or np.max(image) > frange[1]:
|
||||
raise ValueError("Images of type float must be between %d and %d",
|
||||
frange)
|
||||
tuple(frange))
|
||||
if kind == 'f':
|
||||
# floating point -> floating point
|
||||
if itemsize_in > itemsize:
|
||||
|
||||
Reference in new issue
Block a user