使用python实现图像对比度增强
使用python实现图像对比度增强
·
from PIL import Image
from PIL import ImageEnhance
img = Image.open('./0h/FGF2.tif')
img.show()
#对比度增强
enh_con = ImageEnhance.Contrast(img)
contrast = 1.5
img_contrasted = enh_con.enhance(contrast)
img_contrasted.show()
img_contrasted.save("./0h/FGF2-new.tif")
更多推荐
所有评论(0)