This application claims priority from Korean Patent Application No. 2003-48464, filed Jul. 15, 2003 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference for its entirety.
1. Field of the Invention
The present invention relates to an apparatus for image enhancement and a method of using the same, and more specifically, to an apparatus for image enhancement and a method of using the same capable of enhancing image quality by adaptively increasing a gradation display of dark or bright area according to an average brightness of an input image.
2. Description of the Related Art
According to development of technology, a display apparatus has been introduced using new technologies such as an organic electroluminescence (OEL), an electronic paper, a plasma display panel (PDP), and a thin film transistor liquid crystal display (TFT-LCD). An aim of these advanced displays is to make a total thickness of the display very thin and to reproduce a vivid image as if seen in-person. Accordingly, in order to reproduce the vivid image on the display apparatus, several image processing algorithms are used.
However, if such image processing algorithms are applied to the display having a panel which is inferior to a cathode ray tube (CRT) with respect to a gradation display of the dark image like a TV using digital light processing (DLP) technology, the dark image may not be displayed clearly. This darkened display deteriorates in cases where a black/white level stretch algorithm is applied.
To solve the darkened display problem mentioned above, an automatic beam limiter (ABL) circuit may be added. The ABL circuit is used to maintain a steady brightness suitable for high performance image processing. For example, as for the CRT, a brightness of a screen varies in proportion to a quantity of a beam flowing in the CRT. If the beam greater than a predetermined level flows in the CRT, the brightness becomes saturated and a life-span of the CRT is shortened. If a beam flows that is less than the predetermined level, a recognition ability of the image reproduced to the CRT is deteriorated. To prevent this, the ABL circuit should be applied to control the overflow or underflow of the beam. That is, in case of the underflow in which the recognition ability of the reproduced image is deteriorated, a mapping function as shown in
However, the conventional method for adjusting the brightness of the dark or white area on the screen has a disadvantage that it is difficult to manufacture the thin display apparatus, due to a requirement for additional hardware, such as the ABL circuit. In addition, a fixed mapping function is used without consideration of the average brightness of the input image. Accordingly, there is another disadvantage that a dynamic range for the gradation display may be reduced in processing a high definition image.
The present invention has been made to solve the above disadvantages, and an aspect is to provide an image enhancing apparatus capable of enhancing the image by adaptively improving a gradation display according to an average brightness of an input image without requiring an additional ABL circuit, and a method of using the same.
To achieve the above aspect, the image enhancing apparatus according to an embodiment of the present invention comprises a PDF calculation unit for calculating a probability density function according to a distribution of a luminance value of each pixel of an input image, an average brightness calculation unit for calculating an average brightness of the input image based on the probability density function, an adaptive overflow threshold calculation unit for calculating an overflow threshold adaptive to the average brightness, a BUBO (Bin Underflow Bin Overflow) unit for calculating a probability density function of adjusted distribution, based on the overflow threshold and a predetermined underflow threshold, a CDF calculation unit for calculating a cumulative distribution function with respect to the adjusted probability density function, a CDF compensating unit for compensating for an influence that the BUBO unit has on the cumulative distribution function in calculating the adjusted probability density function, and a mapping unit for using the compensated cumulative distribution function as a mapping function, adjusting and outputting the luminance value with respect to each pixel of the input image.
The BUBO unit calculates the overflow threshold using a predetermined first scale factor in accordance with the following formulas:
th_o[k]=th_o_high, for k≧th_low
In order to adjust the probability density function, the BUBO unit removes a value exceeding the overflow threshold and sets a value less than the underflow threshold to the underflow threshold.
The CDF compensation unit compensates for the cumulative distribution function in accordance with the following formula:
Preferably, the image enhancing apparatus further comprises an adaptive gain calculation unit for calculating a predetermined gain value. The CDF compensation unit compensates for the cumulative distribution function using the predetermined gain value in accordance with the following formula:
The adaptive gain calculation unit calculates the gain value in accordance with the following formula:
A method for enhancing an image according to an embodiment of the present invention comprises the steps of calculating a probability density function according to a distribution of a luminance value of each pixel of an input image, calculating an average brightness of the input image based on the probability density function, calculating an overflow threshold adaptive to the average brightness, calculating a probability density function of adjusted distribution, based on the overflow threshold and a predetermined underflow threshold, calculating a cumulative distribution function with respect to the adjusted probability density function, compensating for an influence that the BUBO unit has on the cumulative distribution function in calculating the adjusted probability density function, calculating the compensated cumulative distribution function, using the compensated cumulative distribution function as a mapping function, and adjusting and calculating the luminance value with respect to each pixel of the input image.
In the step of calculating the adaptive overflow threshold, the overflow threshold is calculated using a predetermined first scale factor in accordance with the following formulas:
th_o[k]=th_o_high, for k≧th_low
In the step of calculating the adaptive overflow threshold, the probability density function is adjusted in such a manner that a value exceeding the overflow threshold is removed and a value less than the underflow threshold is set to the underflow threshold.
In the step of calculating the compensated cumulative distribution function, the cumulative distribution function is compensated in accordance with the following formulas:
According to a further embodiment, calculating a predetermined gain value is also performed. In the step of calculating the compensated cumulative distribution function, the cumulative distribution function is compensated using the predetermined gain value in accordance with the following formula:
In the step of calculating the gain value, the gain value is calculated in accordance with the following formula:
The above aspects, and/or other features and advantages of the present invention will become more apparent after a reading of the following detailed description when taken in conjunction with the drawing figures, in which:
Reference will now be made in detail to an embodiment of the present invention, examples of which are illustrated in the accompanying drawing figures, wherein like reference numerals refer to like elements throughout. The embodiments are described to explain the present invention by referring to the drawing figures.
The PDF calculation unit 100 detects a luminance value of each pixel forming an input image and calculates a probability density function (hereinafter, referred to as “PDF”) based on the detected luminance value. The PDF indicates a rate that an irregular signal has a certain value.
The average brightness calculation unit 110 calculates an average brightness of the input image using the PDF that is calculated in the PDF calculation unit 100. The input unit 120 is inputted with a scale factor used for the calculation of an overflow threshold and a gain by a user, which will be described later. The adaptive overflow threshold calculation unit 130 analyzes the average brightness of the input image and calculates the overflow threshold adaptively. The BUBO unit 140 adjusts the PDF which is calculated using the overflow threshold and a predetermined underflow threshold. The CDF calculation unit 150 calculates a cumulative distribution function (hereinafter, referred to as “CDF”) using the adjusted PDF. The adaptive gain calculation unit 160 calculates a gain to be used for compensation in the CDF compensation unit 170. The CDF compensation unit 170 compensates for an influence that the BUBO unit 140 has on the CDF according to the PDF adjustment. The mapping unit 180 enhances the image by adjusting a pixel value of the input image by using the compensated CDF in the CDF compensation unit 170 as a mapping function.
The adaptive overflow threshold calculation unit 130 uses the average brightness calculated in the average brightness calculation unit 110 and a first scale factor inputted by the user through the input unit 120 so as to calculate the variable overflow threshold in accordance with the following formula 1 (S210):
The BUBO unit 140 detects the overflow and the underflow, using the calculated overflow threshold and the predetermined underflow threshold, which is determined experimentally, and accordingly adjusts the calculated PDF (S215). That is, the BUBO unit 140 uses the calculated overflow threshold and the predetermined underflow threshold so as to detect the overflow and the underflow from the calculated PDF in accordance with the following formula 2:
if pdf[k]<th_u then underflow
if pdf[k]>th_o[k] then overflow (2)
Upon detecting the overflow and the underflow, the BUBO unit 140 removes values in the calculated PDF that exceed the overflow threshold and adjusts values less than the underflow threshold to the underflow threshold in accordance with the following formula 3:
pdf[k]=th_u, in case of the underflow
pdf[k]=th_o[k], in case of the overflow
pdf[k]=pdf[k], in case of the rest (3)
After the PDF is adjusted, the CDF calculation unit 150 calculates the CDF with respect to the adjusted PDF in accordance with the following formula 4 (S220):
The adaptive gain calculation unit 160 calculates the gain in accordance with the following formula 5 (S225):
The CDF compensation unit 170 compensates for the influence that the BUBO unit 140 has on the CDF according to the PDF adjustment. At this time, the compensation is performed basically using the following formulas 6, and
For example, referring to equation 4 above, if the luminance value of each pixel of the input image ranges from 0 to 255, N−1=255. Further, if the luminance value of each pixel of the input image ranges from 0 to 255, ‘k’ of cdf(k), and pdf(k), becomes a value between 0 and 255. Alternatively, referring to equation 6, if the luminance value of each pixel of the input image ranges from 0 to 255, N=256 and C=the total number of pixels/255.
As another embodiment having the same effect as with the ABL circuit, in compensating for the influence on the CDF from the BUBO unit 140, a line ‘k’ may be figured with a line adaptive to the average brightness of the input image or a non-linear function. For example, in adding a difference between the CDF and a line drawn from an origin to a maximum value, to a line fitted for a normal scale, the line fitted for the normal scale may be figured with the non-linear function adaptive to the average brightness of the input image. Alternatively, the non-linear function may be used by being approximated to the line. In the two formulas of the formula 6, used in the CDF compensation unit 170, the former formula may be added to the gain calculated in the adaptive gain calculation unit 160 in order to increase the difference between the line and the CDF, as shown in formula 7 and
The mapping unit 180 uses the compensated CDF as the mapping function and adjusts the input image (S235) in accordance with the following formula 8:
g(i, j)=CDF[f(i, j)] (8)
According to the above method, the image is enhanced by adaptively improving the gradation display of the dark area in accordance with the input image signal. In one embodiment, even though the dark area, i.e., a black area is taken as the example, the method can be also applied to a white area. Hence, it is also possible to enhance the image by improving the gradation display of the white area in the input image.
As aforementioned, the method according to an embodiment of the present invention is capable of enhancing the image by adaptively improving the gradation display of the dark or light area according to the input image. Also, an ABL circuit is not additionally used, thereby reducing the manufacturing cost and the size of the display apparatus.
While exemplary embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims shall be construed to include both the exemplary embodiments described and all such variations and modifications as fall within the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2003-48464 | Jul 2003 | KR | national |