Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To Convert Image to Cartoon in ios

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

like image 979
Balan Prabhu Avatar asked Apr 06 '12 11:04

Balan Prabhu


3 Answers

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.

like image 100
Brad Larson Avatar answered Sep 28 '22 17:09

Brad Larson


Try to use imagemagick for iOS http://www.imagemagick.org/download/iOS/ Of course you need some serval hours how to use imagemagick for iOS. But then you should also look at: http://www.fmwconcepts.com/imagemagick/cartoon/index.php

and maybe also on: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=11140&start=0&st=0&sk=t&sd=a

like image 37
Jonas Schnelli Avatar answered Sep 28 '22 16:09

Jonas Schnelli


This Core Image filter section in the iOS dev library, possibly combined with the script referenced by Jonas and a little luck, might get you where you're going. Not sure, having never used either of these technologies.

like image 37
samson Avatar answered Sep 28 '22 15:09

samson