Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: