1. A method, comprising: receiving an array of pixel data that is generated by an image sensor, wherein each pixel location in the array of pixel data includes an intensity value for only a single color channel of a plurality of possible color channels; and for each pixel location in the array of pixel data: multiplying a first coefficient corresponding to the single color channel associated with the pixel location with the intensity value associated with the pixel location to generate a first factor; multiplying a second coefficient corresponding to a second color channel associated with at least a first of the one or more neighboring pixel locations with a first filtered value to generate a second factor, wherein the first filtered value is computed by averaging intensity values associated with all neighboring pixel locations that are associated with the second color channel; multiplying a third coefficient corresponding to a third color channel associated with at least a second of the one or more neighboring pixel locations with a second filtered value to generate a third factor, wherein the second filtered value is computed by averaging intensity values associated with all neighboring pixel locations that are associated with the third color channel; and summing the first factor, the second factor and the third factor to generate a corrected intensity value.