1. Field of the Invention
This present invention relates generally to a dynamic image enhancement apparatus, and more particularly, to an apparatus for dynamically adjusting the saturation values of an image signal.
2. Description of the Prior Art
The natural way that human eyes perceive and respond to a color is based on hue, saturation and brightness. RGB color signals can be represented as two parts of luma (luminance or brightness) and chroma (the dominant color and its saturation). For processing image signals in a display device, luma-chroma separation is usually performed on the image signals first so as to enable us to adjust each component individually. When transmitting high-quality image signals, the brightness and color components are also separated and maintained individually, e.g. the YPbPr and YCbCr color spaces used in video and image compression. To enhance the saturation of image signals, one can adjust the Pb and Pr (Cb and Cr) components, i.e., the color component of the signal, to achieve this goal.
After displaying devices (e.g. monitors) are manufactured, users can make use of the OSD (On Screen Display) functionality built in the devices to change the default displaying settings, such as saturation, so as to further enhance the picture quality and obtain more vivid visual display. However, the same displaying settings usually are not suitable for all images. For example, raising the saturation of one image might cause another image originally with high saturation to be oversaturated, and vice versa. This scenario is often harmful to the visual effects presented by monitors.
By using the OSD controlling, users can easily configure the monitors to display images in their desired ways. However, the static settings cannot adapt to the dynamic changes occurred in a video sequence, causing the aforementioned problem. There is therefore a need for an apparatus that provides for automatic adjustment of saturation based on various image signals. Besides, there is also the possibility to accomplish the adjustment task in color spaces other than the widely used YPbPr and YCbCr, such as CIE Lab. The benefits of using CIE Lab include that the luma and chroma components of a color are well separated. Also, color data stored in CIE Lab representation can convert between different color spaces without loss of information.
Accordingly, an objective of the invention is to provide an apparatus for dynamically adjusting the saturation of an image signal.
The objective of the invention is to provide a dynamic image enhancement apparatus for automatically adjusting the saturation of an image signal.
According to the first preferred embodiment of the invention, the apparatus, for dynamically adjusting the saturation of an image signal consisting of a plurality of pixels, includes a first transformation module, an operation module, a gain module, an adjustment module and a second transformation module. The first transformation module is used to receive the image signal, and transform the pixels of the image signal into a plurality of intermediate signals, where each of the intermediate signals has a respective saturation value. The operation module, electrically connected to the first transformation module, is used to receive the intermediate signals, and generate, based on the intermediate signals, an operational signal. The gain module, electrically connected to the operation module, is used to receive the operational signal, and generate, according to the operational signal, a gain signal. The adjustment module, electrically connected to the gain module and the first transformation module respectively, is used to receive the gain signal and the intermediate signals, and adjust, according to the gain signal, the saturation value of each of the intermediate signals. The second transformation module, electrically connected to the adjustment module, is used to receive the adjusted intermediate signals, and transform the adjusted intermediate signals back into the pixels of the image signal, thereby the saturation of the image signal is adjusted.
According to the second preferred embodiment of the invention, the apparatus, for dynamically adjusting the saturation of an image signal consisting of a plurality of pixels, includes a first transformation module, an operation/gain module, an adjustment module and a second transformation module. The operation/gain module includes an operation module and a gain module. The first transformation module, is used to receive the image signal, and transform the pixels of the image signal into a plurality of intermediate signals, where each of the intermediate signals has a respective saturation value. The operation module, electrically connected to the first transformation module, is used to receive the intermediate signals, and generate, based on the intermediate signals, an operational signal. The gain module, electrically connected to the operation module, is used to receive the operational signal, and generate, according to the operational signal, the gain signal. The adjustment module, electrically connected to the gain module and the first transformation module respectively, is used to receive the gain signal and the intermediate signals, and adjust, according to the gain signal, the saturation value of each of the intermediate signals. The second transformation module, electrically connected to the adjustment module, is used to receive the adjusted intermediate signals, and transform the adjusted intermediate signals back into the pixels of the image signal, thereby the saturation of the image signal is adjusted.
According to the third preferred embodiment of the invention, a method is provided for dynamically adjusting the saturation of an image signal consisting of a plurality of pixels. Thereinafter the steps of the method are summarized briefly. Firstly, the image signal is received and the pixels of the image signal are transformed into a plurality of intermediate signals, where each of the intermediate signals has a respective saturation value. Secondly, an operational signal is generated based on the intermediate signals. Thirdly, a gain signal is generated according to the operational signal. Afterwards, the saturation value of each of the intermediate signals is adjusted in accordance with the gain signal. Finally, the adjusted intermediate signals are transformed back into the pixels of the image signal, and thereby the saturation of the image signal is adjusted.
More specifically, the apparatus and method of the invention calculates a histogram relative to the saturation distribution of the image signal, and generates a gain signal for the image signal. The gain signal is then applied to adjust the saturation of the image signal. The invention is capable of adjusting the saturation of image signals automatically such that the image quality is further enhanced.
The advantage and spirit of the invention may be understood by the following recitations together with the appended drawings.
Referring to
The first transformation 12 receives the image signal 11 and transforms the pixels of the image signal 11 into a plurality of intermediate signals, where each of the intermediate signals has a respective saturation value.
In an embodiment, each of the intermediate signals includes a brightness component 13, a first color component 15 and a second color component 17. The saturation value of each of the intermediate signals is defined by the first color component 15 and the second color component 17.
The operation module 14, electrically connected to the first transformation module 12, receives the intermediate signals, and generates, based on the intermediate signals, an operational signal 19. Specifically, the operation module 14 calculates a histogram relative to the saturation values of the intermediate signals, and then generates the operational signal 19 in accordance with the distribution of saturation values of the intermediate signals in the histogram.
In an embodiment, the saturation value of each of the intermediate signals is defined as the sum of the absolute values of the first color component 15 and the second color component 17. In another embodiment, the saturation value of each of the intermediate signals is defined as the sum of the square values of the first color component 15 and the second color component 17.
The gain module 16, electrically connected to the operation module 14, receives the operational signal 19, and generates, according to the operational signal 19, a gain signal 21. In an embodiment, the gain module 16 includes a look-up table (LUT, not shown in
The adjustment module 18, electrically connected to the gain module 16 and the first transformation module 12 respectively, receives the gain signal 21 and the intermediate signals, and adjusts, according to the gain signal 21, the saturation value of each of the intermediate signals.
The second transformation module 20, electrically connected to the adjustment module 18, for receiving the adjusted intermediate signals, and transforming the adjusted intermediate signals back into the pixels of the image signal 11, thereby the saturation of the image signal 11 is adjusted.
In an embodiment, the image signal 11 is represented as the commonly used RGB representation. For the adjustment of image saturation, the pixels of the image signal 11 are firstly corrected in a gamma adjust transformation of 2.2 by querying a gamma look-up table, and then transformed into the intermediate signals in the form of the CIE Lab representation. Taking advantage of the separation of luma and chroma components in the CIE Lab color space, the apparatus 1 calculates a histogram relative to the saturation distribution of the intermediate signals and generates the operational signal 19. The gain signal 21 is then generated by querying the LUT in accordance with the operational signal 19. The gain signal 21 is applied to adjust the first color component 15 and the second color component 17 of the intermediate signal. An inverse transformation is performed to restore the adjusted intermediate signals to RGB representation, and thereby the adjustment of image saturation is accomplished.
Please refer to
By defining the measure of saturation, a histogram 40 relative to the saturation values of the intermediate signals, as shown in
In practical applications, the characteristic of the saturation histogram 40 computed from an entire image can be retained by sub-sampling, such as selecting one out of eight pixels in a row and selecting one out of four rows in an image. Without computations for the saturation values of all pixels, the computational cost is significantly reduced.
The saturation histogram 40 indicates the numbers of pixels with various saturation values, i.e. the distribution of saturation values in an image. In an embodiment, taking advantage of the curve 42 of the histogram 40, the operational signal 19 is determined by the following procedure. As shown in
Each of the possible saturation indexes S_index has a corresponding entry in the LUT, which contains a predetermined value of gain for S_index. By querying the LUT with the index determined by the operation module 14, the corresponding value of gain can be retrieved easily and then outputted as the gain signal 21. The saturation of the intermediate signals is adjusted by multiplying the first color component 15 and the second color component 17 by the gain signal 21. The adjusted intermediate signals are transformed back into RGB representation, and thereby the saturation adjustment of the image signal 11 is finished.
The gain module 16 receives the operational signal 19, and generates the gain signal 21 by querying the LUT with the operational signal 19 (i.e. the saturation index). The adjustment module 18 adjusts the saturation value of each of the intermediate signals in accordance with the gain signal 21. Then, the second transformation module 20 transforms the adjusted intermediate signals back into the pixels of the image signal 11, thereby the saturation of the image signal 11 is adjusted.
In an embodiment of the apparatus 1 according to the invention, the gain module 16 has a buffer for storing a plurality of reference gain signals associated with a plurality of previous image signals, and the gain module 16 generates the gain signal 21 in accordance with the operational signal 19 and the reference gain signals. In general, the changes between adjacent frames in a video sequence are insignificant, especially in a rate of 60 f/sec. Considering also the process time needed by the hardware, the saturation adjustment of the current frame can adopt the gains computed for previous frames. However, adjusting the current frame by only referring to the gain of the previous frame often causes flicker when displaying a continuous video sequence. As a result, a smoothed gain is obtained by calculating the average gain of a certain number of previous frames, e.g. 30 frames, to avoid the flicker caused by abrupt change in saturation between continuous image signals. Also, the gain module generates the gain for the current frame in accordance with the operational signal 19, and pushes it into the buffer.
Referring to
The first transformation module 52 receives the image signal 51 and transforms the pixels of the image signal 51 into a plurality of intermediate signals, where each of the intermediate signals has a respective saturation value.
In an embodiment, each of the intermediate signals includes a brightness component 53, a first color component 55 and a second color component 57. The saturation value of each of the intermediate signals is defined by the first color component 55 and the second color component 57.
The operation module 540, electrically connected to the first transformation module 52, receives the intermediate signals and generates, based on the intermediate signals, an operational signal 61. Specifically, the operation module 540 calculates a histogram relative to the saturation values of the intermediate signals, and then generates the operational signal 61 in accordance with the distribution of saturation values of the intermediate signals in the histogram.
In an embodiment, the saturation value of each of the intermediate signals is defined as the sum of the absolute values of the first color component 55 and the second color component 57. In another embodiment, the saturation value of each of the intermediate signals is defined as the sum of the square values of the first color component 55 and the second color component 57.
The gain module 542, electrically connected to the operation module 540, receives the operational signal 61, and generates, according to the operational signal 61, the gain signal 59. In an embodiment, the gain module 542 includes a look-up table (not shown in
The adjustment module 56, electrically connected to the gain module 542 and the first transformation module 52 respectively, receives the gain signal 59 and the intermediate signals, and adjusts, according to the gain signal 59, the saturation value of each of the intermediate signals.
The second transformation module 58, electrically connected to the adjustment module 56, receives the adjusted intermediate signals, and transforms the adjusted intermediate signals back into the pixels of the image signal 51, thereby the saturation of the image signal 51 is adjusted.
Referring to
Initially, step S 71 is performed to receive the image signal and transform the pixels of the image signal into a plurality of intermediate signals, where each of the intermediate signals has a respective saturation value.
In an embodiment, each of the intermediate signals comprises a brightness component, a first color component and a second color component. The saturation value of each of the intermediate signals is defined by the first color component and the second color component.
Next, step S73 is performed to generate an operational signal based on the intermediate signals. Specifically, step S73 calculates a histogram relative to the saturation values of the intermediate signals, and then generates the operational signal in accordance with the distribution of saturation values of the intermediate signals in the histogram.
In an embodiment, the saturation value of each of the intermediate signals is defined as the sum of the absolute values of the first color component and the second color component. In another embodiment, the saturation value of each of the intermediate signals is defined as the sum of the square values of the first color component and the second color component.
Afterwards, a gain signal is generated in accordance with the operational signal (step S75). In an embodiment, step S75 generates the gain signal in accordance with the operational signal and a look-up table. In another embodiment, step S75 generates the gain signal in accordance with the operational signal and a plurality of reference gain signals associated with a plurality of previous image signals.
According to the gain signal generated in step S75, the saturation value of each of the intermediate signals is adjusted (step S77). Finally, step S79 is performed to transform the adjusted intermediate signals back into the pixels of the image signal and thereby the saturation of the image signal is adjusted.
With the example and explanations above, the features and spirits of the invention will be hopefully well described. Those skilled in the art will readily observe that numerous modifications and alterations of the device may be made while retaining the teaching of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
94104338 A | Feb 2005 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5289295 | Yumiba et al. | Feb 1994 | A |
5337083 | Murata et al. | Aug 1994 | A |
7042520 | Kim | May 2006 | B2 |
7193659 | Huang et al. | Mar 2007 | B2 |
20020167467 | Kao et al. | Nov 2002 | A1 |
20040247199 | Murai et al. | Dec 2004 | A1 |
Number | Date | Country |
---|---|---|
1 457 925 | Sep 2004 | EP |
6-124329 | Oct 1992 | JP |
6-124329 | May 1994 | JP |
10-023279 | Jun 1996 | JP |
10-283470 | Apr 1997 | JP |
11-069181 | Aug 1997 | JP |
10-023279 | Jan 1998 | JP |
10-283470 | Oct 1998 | JP |
2000-224607 | Jan 1999 | JP |
11-69181 | Mar 1999 | JP |
2001-230941 | Feb 2000 | JP |
2000-224607 | Aug 2000 | JP |
2001-230941 | Aug 2001 | JP |
2004-282377 | Mar 2003 | JP |
2004-336714 | Mar 2004 | JP |
2004-282377 | Oct 2004 | JP |
2004-336714 | Nov 2004 | JP |
514950 | Apr 2001 | TW |
Number | Date | Country | |
---|---|---|---|
20060181741 A1 | Aug 2006 | US |