1. A method for generating local image statistics of image data comprising: receiving, via processing circuitry, input pixels of a block of the image data; determining, via the processing circuitry, luminance values associated with the input pixels of the block of the image data; and generating, via the processing circuitry, a local image statistic using the luminance values associated with the block of the image data or red, green, or blue subpixels of the block of the image data, or a combination thereof, wherein generating the local image statistic comprises: downsampling the input pixels into a downsampled pixel with red, green, and blue components; determining an average luminance of the red, green, and blue components of the downsampled pixel; determining a maximal luminance of the red, green, or blue components of the downsampled pixel; and mixing the average luminance and the maximal luminance according to a global mixing value applied to the input pixels.