To Convert Image to Cartoon in ios

前端 未结 3 937
再見小時候
再見小時候 2020-12-07 13:43

\"enter Is there any filters available in ios to convert a image to cartoonistic ima

3条回答
  •  自闭症患者
    2020-12-07 14:03

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

    Toon filtering

    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.

提交回复
热议问题