How does one go about adding image filters in an iPhone application? (similar to what Instagram and picplz have)
I think you can also port, most of the C code, from free image processing libraries. And then use pixel based modifications.
Have you checked simple-iphone-image-processing? It is a “simple C++ class with an Objective-C wrapper that provides a set of common image processing tasks” as well as UIImage
conversion. It provides:
Other C++ open source libraries are:
Edit Also, take a look at this open-source code - https://github.com/OmidH/Filtrr
Folks,
I have made an attempt at replicating instagram and photoshop filters using pure CoreGraphics and direct pixel manipulation, not using OpenGL.
Find this project at:
https://github.com/esilverberg/ios-image-filters
** UPDATE **
You also should consider this project: https://github.com/gobackspaces/DLCImagePickerController
Sadly there is no CoreImage library in the iOS SDK so you have to use OpenGLES to do image processing, Apple have an example application that demonstrates several techniques.
http://developer.apple.com/library/ios/#samplecode/GLImageProcessing/Introduction/Intro.html