帮我写一段python 代码,能将图像放大,使用双线性插值
时间: 2023-03-14 11:42:56 浏览: 174
chazhi2.zip_双线性插值 图像放大
from skimage.transform import rescale
from skimage import io# Load the image
img = io.imread('image.jpg')# Rescale the image
rescaled_img = rescale(img, scale=2.0, mode='reflect', multichannel=True, anti_aliasing=True)# Save the rescaled image
io.imsave('rescaled_image.jpg', rescaled_img)
阅读全文