在 ios 中将图像转换为卡通 [英] To Convert Image to Cartoon in 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屋!