1. Field of the Disclosure
The present disclosure relates to an image displayed by an electronic device. More particularly, the present disclosure relates to an electronic device and a method for enhancing the readability of an image displayed by the electronic device.
2. Description of the Related Art
Display is the key component of a mobile electronic device, such as a smart phone or a tablet computer. Improving the image quality is one of the main trends to drive the progress of the display industry.
Due to the limitation of the brightness of the display, it is very difficult to see an image displayed in an outdoor environment, especially under the sunlight, which often bleaches the details of the image and limits the usage of mobile electronic devices.
Accordingly, the present disclosure is directed to an electronic device and a method for enhancing the readability of an image displayed by the electronic device in a bright environment.
According to an embodiment of the present disclosure, an electronic device is provided. The electronic device includes a light sensor, an algorithm engine, an adjustment engine, and a display. The light sensor detects an ambient brightness around the electronic device. The algorithm engine is coupled to the light sensor. The algorithm engine determines at least one adjustment function according to the ambient brightness. The adjustment engine is coupled to the algorithm engine. The adjustment engine adjusts the luminance component of each pixel of an image according to the at least one adjustment function to enhance the brightness and/or the contrast of the image. The display is coupled to the adjustment engine for displaying the adjusted image.
According to another embodiment of the present disclosure, a method for enhancing the readability of an image is provided. The method detects an ambient brightness around an electronic device by the light sensor of the electronic device. The method determines at least one adjustment function according to the ambient brightness. The method adjusts the luminance component of each pixel of the image according to the at least one adjustment function to enhance the brightness and/or the contrast of the image. The method displays the adjusted image on the electronic device.
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Reference will now be made in detail to the present embodiments of the disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
At step 210, the light sensor 120 detects the ambient brightness around the electronic device 100. At step 220, the algorithm engine 140 determines at least one adjustment function according to the ambient brightness. At step 230, the adjustment engine 160 adjusts the luminance component of each pixel of an image according to the at least one adjustment function to enhance the brightness and/or the contrast of the image. The image may be a static picture, a frame of a dynamic video, or a graphical user interface (GUI) of the electronic device 100. The adjustment engine 160 may simply input the luminance component of each pixel of the image into the adjustment function and replaces the original luminance component of each pixel with the output of the adjustment function. At step 240, the display 180 displays the image adjusted by the adjustment engine 160.
The algorithm engine 140 knows the brightness level of the ambient environment based on the output of the light sensor 120. The light sensor 120 may be used as the trigger for the adjustment of the image. For example, when the ambient brightness is lower than a preset level, the algorithm engine 140 may output an idle adjustment function (a function whose output is equal to its input) to the adjustment engine 160, which means no adjustment. In other words, for any pixel A of the image, LA′ is equal to LA. LA is the luminance component of the pixel A before the adjustment and LA′ is the luminance component of the pixel A after the adjustment.
When the ambient brightness is equal to or higher than the preset level, the algorithm engine 140 may output at least one non-idle adjustment function to the adjustment engine 160 to enhance the brightness and/or the contrast of the image. The algorithm engine 140 may determine only one adjustment function for the adjustment engine 160 to adjust each of the pixels of the image according to the same adjustment function. Alternatively, the algorithm engine 140 may determine a plurality of adjustment functions for the adjustment engine 160 to adjust each of the pixels of the image according to one of the adjustment functions.
The adjustment engine 160 adjusts only the luminance component of each pixel. When the image is represented in a color space having a luminance component such as the YCbCr color space, the adjustment engine 160 may adjust each pixel of the image directly. When the image is represented in a color space that does not have any luminance component such as the RGB color space, the adjustment engine 160 may convert each pixel from the original color space to a color space that has a luminance component, adjusts the luminance component of each pixel according to the at least one adjustment function determined by the algorithm engine 140, and converts each pixel back to the original color space.
The algorithm engine 140 may provide each of the at least one adjustment function in a form of a lookup table to the adjustment engine 160 such that each of the at least one adjustment function is used in a form of a lookup table.
The algorithm engine 140 may determine a different adjustment function for each of a plurality of types and classifies the image under one of the types according to the histogram. The adjustment engine 160 may adjust all of the pixels of the image according to the same adjustment function corresponding to the type of the image.
For example, there may be two types of images, namely, black-and-white text and color picture.
As can be seen in
Take another example.
In an embodiment of the present disclosure, the algorithm engine 140 may divide the pixels of the image into a plurality of sets according to the histogram of the image and determines a different adjustment function for each of the sets. The adjustment engine 160 may adjust all of the pixels of each set according to the same adjustment function corresponding to the set.
For example,
In an embodiment of the present disclosure, the algorithm engine 140 may provide one or more adjustment functions such that the darker pixels of an image receives more adjustment than the brighter pixels of the image do. In other words, for any two pixels A and B of the image, when LA is smaller than LB, |LA′−LA| is equal to or larger than |LB′−LB|. ∥ is an absolute value operator, LA is the luminance component of the pixel A before the adjustment, LA′ is the luminance component of the pixel A after the adjustment, LB is the luminance component of the pixel B before the adjustment, and LB′ is the luminance component of the pixel B after the adjustment.
In an embodiment of the present disclosure, the algorithm engine 140 may provide one or more adjustment functions according to the ambient brightness detected by the light sensor 120 such that for any pixel A of the image, |LA′−LA| is directly proportional to the level of the ambient brightness. ∥ is an absolute value operator, LA is the luminance component of the pixel A before the adjustment and LA′ is the luminance component of the pixel A after the adjustment. In other words, as the environment gets brighter, the pixels of the image receive more adjustment.
For example,
The previous embodiments provide simple examples of the present disclosure. The present disclosure is not limited to the previous embodiments. Since there are already many techniques for enhancing the brightness and/or the contrast of an image in the field of image processing, the algorithm engine 140 may provide the at least one adjustment function to the adjustment engine 160 based on any existent technique or any combination of existent techniques in the field of image processing.
In summary, the present disclosure combines light sensor and image enhancement to improve the readability of images displayed by an electronic device in a bright environment, such as an outdoor environment.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present disclosure without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the present disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims and their equivalents.