PHP GD 锐度滤镜
如何使用 PHP GD 库制作清晰度滤镜?
所以这个...
转向这个...
如果 PHP 无法实现,那么其他语言可以吗?
How can you make a sharpness filter with the PHP GD library?
So that this...
Turns to this...
If it is not possible with PHP, than what other languages are capable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我认为他想使用PHP的GD库。这非常简单:function.imagevolvo。只需在页面上搜索“锐化”,您就会看到可用于锐化的矩阵。它工作得很好,但如果您想做更多的事情,我建议您使用 ImageMagick。
I think he wants to use PHP's GD library. It's pretty easy: function.imageconvolution. Just search for 'sharpen' on the page and you'll see a matrix you can use for sharpening. It works pretty well, although I would recommend using ImageMagick if you're trying to do anything more than that.
如果您的 PHP 配置中安装了 ImageMagick,则可以使用
Imagick::adaptiveSharpenImage
从手册中:
http://php.net/manual/en/function.imagick-adaptivesharpenimage.php
If the ImageMagick is installed in your PHP config, you can use
Imagick::adaptiveSharpenImage
From the manual:
http://php.net/manual/en/function.imagick-adaptivesharpenimage.php
有一个名为 Unsharp Mask PHP 的库,它正是您所需要的。
http://vikjavev.no/computing/ump.php
There is a library called Unsharp Mask PHP, which does exactly what you need.
http://vikjavev.no/computing/ump.php
对于GD:这是我正在使用的函数:
示例:
For GD: This is the function I am using:
Example: