📜  io.imsave 16 位 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:36.700000             🧑  作者: Mango

代码示例1
import numpy as np
from skimage import io, exposure, img_as_uint, img_as_float

io.use_plugin('freeimage')

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')