mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 06:44:22 +08:00
FIX: issue sign loss warning only for signed type
This commit is contained in:
@@ -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