Java代码提供图像草图效果[和其他有趣/有趣的效果]
我正在创建一个应用程序,需要将彩色图像转换为铅笔草图,例如 查看此。
Implementing Modified Sketch Generation in Java 的答案给出了类似的效果,但不完全是我的效果想要(如上例所示)。 谁能告诉我如何在java中获得所需的草图效果?
另外,是否有任何食谱类型的资源/博客/书籍/开源库可以显示java(或任何其他语言)代码,以实现各种有趣的图像效果?
I'm creating an application for which I need to convert color images to pencil sketches, for example see this.
answer at Implementing Modified Sketch generation in Java gives similar effect but not quite what I want(as shown in the example above).
Can someone tell me how to get the desired sketch effect in java?
Also, are there any cookbook type resources/blogs/books/open-source-library which show the java(or any other language) code for various kind of fun looking effects to images?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在过去的几天里,我对此进行了研究,并能够使用java获得所需的草图效果。我已经发布了 在我的博客上。
伪代码如下所示..
我发现以下开源代码很有用...
JH Labs 图像过滤器< /a>
处理编程语言 (http://code.google.com/p/processing/)(无法使其成为超链接,看来我没有足够的声誉来发布更多内容超过 2 个超链接:) )
In last couple of days I researched this and was able to get the desired sketch effect using java. I've posted it on my blog.
Pseudocode looks like following..
I found following open source code useful...
JH Labs image filters
Processing Programming Language (http://code.google.com/p/processing/)(couldn't make this a hyperlink, it seems I don't have enough reputation to post more than 2 hyperlinks :) )
Java Advanced Imaging 库有一些 演示,它显示了图像的一些基本效果。
The Java Advanced Imaging library has some demos which shows some basic effects on images.