I’m looking for a way to convert an RAW8 image coming from a camera into a color image NSImage/CIImage.
Is there a framework class that can apply the Bayer filter and give me a color RGB image?
I.e. I have an array of bytes with 8bpp and I want a 32bpp RGB NSImage or CIImage.
I tried CIFilter filterWithImageData but that makes Xcode stop with EXC_BREAKPOINT?
In the end I came up with two solutions:
Using OpenCV (http://www.OpenCV.org):
But I was missing the obvious: I was getting the image from the camera with libDC1394 and that provides a conversion method itself: