1. A method comprising: for each of the pixels in a Bayer pattern image, the Bayer pattern image having red, green, and blue pixels, determining a luminance value for the pixel directly from the Bayer pattern color values for pixels in the neighborhood of the Bayer pattern pixel; for at least some of the green pixels in the Bayer pattern image, determining a chrominance value for the respective green pixel directly from the Bayer pattern color values for pixels in the neighborhood of the respective green pixel; and mapping the luminance and chrominance values into a luminance and chrominance color space.