我试图效仿given here。代码段是
import numpy as np
from skimage import io, exposure, img_as_uint, img_as_float
im = np.array([[1., 2.], [3., 4.]], dtype='float64')
im = exposure.rescale_intensity(im, out_range='float')
im = img_as_uint(im)
io.imsave('test_16bit.png', im)
im2 = io.imread('test_16bit.png')
但是,编译此程序会发出以下警告消息。什么可能导致问题,以及如何解决它?
/devl/lib/python3.4/site-packages/scikit_image-0.12.3-py3.4-linux-x86_64.egg/skimage/util/dtype.py:110:UserWarni:可能的精确损失从float64转换为uint16时 “%s到%s”%(dtypeobj_in,dtypeobj))