问题
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
![](https://www.eimg.top/images/2020/03/22/ce137d941b544d8e97b3449a5e12f6c5.jpg)
![](https://www.eimg.top/images/2020/03/22/e92d279484b155afed570031c4ab0f9c.jpg)
Any ideas how I can go about achieving this?
回答1:
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.
来源:https://stackoverflow.com/questions/11395553/apply-cartoonizer-effect-in-android