ugordan has already scripted up a means to produce the colour from the bayer pattern. I had a go manually, but the results are a bit crap

I don't usually like to plug my own forum - but
http://www.unmannedspaceflight.com/i...opic=5415&st=0 is where he's posting.