Bayer filter simulations and algorithms