https://d-lin-mc3-dma0.com/hig....h-quality-peace-of-m
This paper details an effective algorithm approximating Automatic Color Equalization (ACE) for input color images, specifying an upper bound for the introduced approximation error. Summed Area Tables are the foundation of the computation, coupled with a carefully optimized division of the plane into rectangular regions, resulting in a pseudo-linear asymptotic complexity relative to pixel count. This stands in contrast to