How-to convert an iOS camera image to greyscale using the Accelerate Framework?
It seems like this should be simpler than I'm finding it to be. I have an AVFoundation frame coming back in the standard delegate method: - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection where I would like to convert the frame to greyscale using the Accelerate.Framework . There is a family of conversion methods in the framework, including vImageConvert_RGBA8888toPlanar8() , which looks like it might be what I would like to see, however, I can't find any examples of how to use them! So