I don't think there are any built-in filters or a way to apply a filter directly to a UIImage. You need to use coregraphics. You build a cgbitmapcontext, draw your image into it, apply whatever filter you want to the bitmap data, and get an image from the bitmapcontext.
You'll need to come up with whatever logic you need to filter the pixels. One way to make an RGB image bw just average the three channels and write the average back to all three channels.
|