I was wondering what the steps would be to convert a photo into a pencil drawing. People usually suggest to:
I think you will have to iterate through all the pixels in the image and implement the algorithm you mentioned in the question itself. There is no default image filtering library in iphone (CoreImage is there but only for Mac). I think your options are
EDIT: Core Image now present in iphone. I did not get a chance to play with it yet. This is the documentation