我现在正在使用 glymur 包。有什么方法可以控制生成的不同压缩比的图像吗?
im=Image.open("F:/t.bmp")
jp2=glymur.Jp2k("F:/distortion_images/2.jp2",data=array(im),numres=())
x=glymur.Jp2k("F:/distortion_images/2.jp2")
img=Image.fromarray(x[:])
img.show()
我想我需要在后面添加一些参数numres
,但结果是相同的图像,也许我numres
的无效。任何人都可以帮助解决这个问题或应用其他方法吗?