适用于Android的卡通化效果 [英] Apply Cartoonizer effect in Android
本文介绍了适用于Android的卡通化效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想实现在使用Android照片卡通风格的影响,但我真的没有任何想法从哪里开始。我觉得什么样的算法有关使用,以达到预期的效果。
I am trying to achieve a cartoon style effect on photos using Android, but I don't really have any idea where to start. What sort of algorithm should I think about using to achieve the desired effect.
我已经包括了之前和之后拍向你展示我所期待的。
I have included a before and after shot to show you what I am looking for.
之前
之后
Before After
任何想法如何,我可以去实现这一目标?
Any ideas how I can go about achieving this?
推荐答案
您可以通过逼近每一纹理像素到最接近的颜色在某种数组实现这样的效果。这只是一个很基本的方法,但它是一个很好的起点。
You can achieve an effect like this by approximating each texel to the nearest colour in some sort of array. It's only a very basic approach but its a good starting point.
这篇关于适用于Android的卡通化效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文