convert Bayer greyscale into RGB data (debayer)
Posted: 2013-05-26T16:05:46-07:00
Can I do this with ImageMagick? My problem: I have a raw bayer bitmap, which happens to be 16 bits per pixel although the data has only 10-bit resolution. The bayer pattern is fairly standard RGBG..., GRGB or similar (I think- I'll figure that out). There is no header at all, just the pixel data as a single plane, gray bitmap. I want to do a debayer to get RGB data. I don't need any color manipulation, I can do that myself later. Can anyone advise if there is some simple way to do this using LIBRAW, DCRAW, ImageMagick or similar tool, without writing a lot of code myself?
In case of interest, the file is from the just-released Raspberry Pi CSI camera, which has an option to record raw data, but no software yet exists to interpret it. I've made a start and I now have the 10 bit data in a standard 16-bpp Grayscale PNG format file, but now I need to do a debayer.
In case of interest, the file is from the just-released Raspberry Pi CSI camera, which has an option to record raw data, but no software yet exists to interpret it. I've made a start and I now have the 10 bit data in a standard 16-bpp Grayscale PNG format file, but now I need to do a debayer.