主权项 |
1. An electronic device, comprising:
a light sensor, detecting an ambient brightness around the electronic device; an algorithm engine, coupled to the light sensor, determining at least one adjustment function according to the ambient brightness; a histogram engine, coupled to the algorithm engine, generating a histogram of the luminance components of a plurality of pixels of an image, wherein the algorithm engine determines the at least one adjustment function according to the histogram and the ambient brightness, wherein the algorithm engine divides the pixels of the image into a plurality of sets according to the histogram and determines a different adjustment function for each of the sets; an adjustment engine, coupled to the algorithm engine, adjusting a luminance component of each pixel of the image according to the at least one adjustment function to enhance brightness and/or contrast of the image, wherein the adjustment engine adjusts all of the pixels of each of the sets according to the same adjustment function corresponding to the set; and a display, coupled to the adjustment engine, displaying the adjusted image. |