This specification discloses a method of using locality statistics
characteristic to enhance gamma corrections. Using the property that the
color values of nearby digital image pixels are close to one another, the
cache queue operation model is employed to partly replace the
time-consuming table mechanism in the gamma correction procedure. The
disclosed method first establishes a cache queue and then captures
digital image pixels. According to the extracted digital image pixels,
gamma correction values are searched to satisfy the cache queue. Finally,
the gamma correction values corresponding to the digital image pixels are
stored.