用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?

解决方案

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..

s = Read-File-Into-Image("/path/to/image")

g = Convert-To-Gray-Scale(s)

i = Invert-Colors(g)

b = Apply-Gaussian-Blur(i)

result = Color-Dodge-Blend-Merge(b,g)

I found following open source code useful...

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 :) )

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值