FutureWarning: Input image dtype is bool解决方法

报错如下:

FutureWarning: Input image dtype is bool. Interpolation is not defined with bool data type. Please set order to 0 or explicitely cast input image to another data type. Starting from version 0.19 a ValueError will be raised instead of this warning.
order = _validate_interpolation_order(image.dtype, order)

解决方法:

pip install -U scikit-image==0.16.2

你可能感兴趣的:(python,numpy)