mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-30 13:40:44 +08:00
FIX: issue sign loss warning only for signed type
This commit is contained in:
1 parent
07b258e208
commit
554487f9de
1 file changed
+2
-1
@@ -152,7 +152,8 @@ def convert(image, dtype, force_copy=False, uniform=False):
|
||||
|
||||
if kind == 'b':
|
||||
# to binary image
|
||||
sign_loss()
|
||||
if kind_in in "fi":
|
||||
sign_loss()
|
||||
prec_loss()
|
||||
return dtype(image)
|
||||
|
||||
|
||||
Reference in new issue
Block a user