微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在PHP中创建基于边缘检测的图像

我很好奇 – 有可能在 PHP中使用:

1)将图像文件发送到服务器
2)过程图像=检测边缘并基于边缘创建简单的笔划
3)将文件保存在服务器上/发送到用户的浏览器/等等

这是一些“样本”文件; P(你可以看到它不是使用任何边缘检测启用的程序,而是手工 – 只是作为一个例子):

http://i51.tinypic.com/5vzo0x.jpg
谢谢!

如果你可以使用 ImageMagick,那就是 --charcoal filter

The charcoal effect is meant to simulate artist’s charcoal sketch of the given image.

The “-charcoal” operator is in some respects similar to edge detection transforms used by Computer Vision. Basically it tries to convert the major borders and edges of object in the image into pencil and charcoal shades.

The one argument is supposed to represent the thickness of the edge lines.

ImageMagick示例手册显示了其结果看起来更好的另一种方式:

Artist Charcoal Sketch of Image

原文地址:https://www.jb51.cc/php/130594.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐