1. A method, comprising: determining, using digital image processing circuitry, a gain control parameter of each pixel of a macro-pixel of a digital image based on a location of the pixel in the digital image; determining, using the digital image processing circuitry, relative pixel positions of the pixels of the macro-pixel, the relative pixel positions representing pixel positions with respect to color grids; determining, using the digital image processing circuitry, a gain value of each pixel of the macro-pixel based on the determined relative pixel positions; modifying, using the digital image processing circuitry, the determined gain value of each pixel of the macro-pixel based on the determined gain control parameter of the pixel; and applying to each pixel of the macro-pixel, using the digital image processing circuitry, the modified gain value of the pixel.