在 ios 中将图像转换为卡通 [英] To Convert Image to Cartoon in ios

查看:20
本文介绍了在 ios 中将图像转换为卡通的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ios中是否有任何过滤器可以将图像转换为卡通图像,就像上图一样?

解决方案

要获得比 ImageMagick 更快的解决方案,您可以使用我的 .

Is there any filters available in ios to convert a image to cartoonistic image like exactly in the above picture?

解决方案

For a much faster solution than ImageMagick, you could use the GPUImageToonFilter from my GPUImage framework:

It combines Sobel edge detection with posterization of the image to give a good cartoon-like feel. As implemented in this framework, it's fast enough to run on realtime video from the iPhone's camera, and is probably at least an order of magnitude faster than something similar in ImageMagick. My framework's also a little easier to integrate with an iOS project than ImageMagick.

If you want more of an abstract look to the image, the GPUImageKuwaharaFilter converts images into an oil painting style, as I show in this answer.

这篇关于在 ios 中将图像转换为卡通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆