我想知道如何使用或任何相关的图像库(例如,甚至是)智能锐化图像。我可以找到实际锐化图像的方法,但在放大时会产生大量噪音和像素化。所以,自从我知道我试图得到它智能锐化效果,通过 python 锐化图像,噪音更少,对比度更佳,但我失败了。 pythonndimageskimagePILPhotoshop
注:-
(1) 方法已经过测试:-
>>> # The 1st Method:
>>> import Image
>>> import ImageFilter
>>> image.filter(ImageFilter.SHARPEN)
>>> Image.filter(ImageFilter.EDGE_ENHANCE_MORE) #Look down:1st image created
>>> # The 2nd Method:
>>> blurred_l=scipy.ndimage.gaussian_filter(b,3)
>>> filter_blurred_l = scipy.ndimage.gaussian_filter(blurred_l, 1)
>>> alpha =30
>>> sharpened = blurred_l + alpha * (blurred_l - filter_blurred_l)
>>> # The 3rd Method:
>>> shar=imfilter(Image,'sharpen') #Look down:2nd image created
Run Code Online (Sandbox Code Playgroud)
(2) 我找到了一段代码,但它在Perl. 我只知道Python 在这里 或直接
(3)这里有 2 个使用上述方法锐化的图像,第三个是用 …