Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bangonkeyboard
on Sept 14, 2020
|
parent
|
context
|
favorite
| on:
Modelling explains why blues and greens are nature...
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: