4 ms·
I coded up a Bayer sampler just now based on the Wikipedia page you linked, that was fun. One simple mapping I rediscovered for determining the relevant RGB/BGR
by bangonkeyboard 6y ago
I coded up a Bayer sampler just now based on the Wikipedia page you linked, that was fun. One simple mapping I rediscovered for determining the relevant RGB/BGR channel of a given (x, y) pixel was, in C, (x & 1) + (y & 1).