The present invention relates to a method for adjusting a black level in a video apparatus and a video apparatus using the same, and more particularly, to a method for improving video quality in a video apparatus by decoding a video signal of each frame input to the video apparatus to a luminance signal, analyzing the histogram of the decoded luminance signal, and accurately setting a black level for the video signal according to the result of the histogram analysis, and a video apparatus using the same.
In view of the variety of the types of external devices that transmit video signals to a video apparatus, the video signals are also various.
Among video signals input to the video apparatus, especially a Composite Video Blanking Sync (CVBS) signal or a High Definition Multimedia Interface (HDMI) signal includes a plurality of types of signals. Therefore, a black level should be adjusted differently for different signal types. A conventional video apparatus has limitations in accurately identifying the type of an input signal and thus a user should set a black level manually.
For example, the conventional video apparatus provides an additional user interface so that the user chooses one of high or low as the black level through the user interface.
However, in the case of the manual black level setting of a video signal input to the video apparatus, the user may adjust the black level without accurate knowledge of the type of an input signal. The resulting black and white saturation or the like brings about the degradation of video quality.
Even though the video apparatus receives information indicating the type of a video signal from an external device, transmission and reception of the type information are failed in many cases. As a consequence, errors occur due to wrong black level adjustment.
In this context, there exists a pressing need for developing a video apparatus for accurately identifying the type of a signal received from an external device at a video apparatus by analyzing the histogram of the received signal and adjusting the black level of the input signal according to its type in order to avoid the video quality degradation caused by black and white saturation and improve the output quality of the video signal.
An object of the present invention devised to solve the problem lies on a method for analyzing the luminance histogram of an input video signal and adjusting the black level of the video signal according to the histogram analysis in order to improve video quality in a video apparatus, and a video apparatus using the same.
The object of the present invention can be achieved by providing a video apparatus including a histogram analysis module for decoding a video signal of each frame input to the video apparatus to a luminance signal and analyzing a histogram of the decoded luminance signal, a black level detection module for determining a type of the video signal according to a result of the histogram analysis, and a black adjustment module for adjusting a black level of the video signal according to the type of the video signal.
In another aspect of the present invention, provided herein is a black level adjustment method including decoding a video signal of each frame input to a video apparatus to a luminance signal and analyzing a histogram of the decoded luminance signal, determining a type of the video signal according to a result of the histogram analysis, and adjusting a black level of the video signal according to the type of the video signal.
The type of a video signal input to a video apparatus is identified by analyzing the histogram of the video signal and the black level of the video signal is adjusted according to the signal type. The accurate adjustment of the black level of the video signal enables output of the video signal without quality degradation such as black and white saturation or the like.
The accompanying drawings, which are included to provide a further understanding of the invention, illustrate embodiments of the invention and together with the description serve to explain the principle of the invention.
In the drawings:
Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings.
Referring to
The histogram analysis may be carried out by measuring the luminance levels of the pixels of the frame and then counting the number of pixels included in each luminance level section.
Referring to
For example, the video apparatus may define level sections 0 to 255 for the luminance signal and count the number of pixels included in each level section.
The luminance level sections may be defined in various manners according to exemplary embodiments of the present invention. For instance, the level sections 0 to 255 may be divided into bins 0 to 32 so that the video apparatus may count the number of pixels included in each bin.
The video apparatus may confine the histogram analysis to a predetermined region of the frame of the video signal in order to reduce the volume of computation taken for the histogram analysis in an exemplary embodiment of the present invention.
Referring to
In step S103, the video apparatus counts the number of pixels included in a predetermined luminance level section. The video apparatus may further determine whether the number of pixels included in the predetermined luminance level section is equal to or larger than a threshold.
The predetermined luminance level section may vary with the type of a video signal to be identified.
Referring to
The threshold may vary in exemplary embodiments of the present invention. A small threshold narrows an error range and thus enables more accurate identification of a signal type. On the other hand, when noise occurs, the small threshold may cause errors because a wrong signal type is identified.
For example, the video apparatus may count the number of pixels included in a first level section 0 to 16 and the number of pixels included in a second level section 235 to 255 and compares the numbers with a threshold of 5.
If the number of pixels included in the predetermined section is equal to or larger than the threshold in step S103, the video apparatus identifies the video signal as a first signal in step S104. If the number of pixels included in the predetermined section is smaller than the threshold in step S103, the video apparatus identifies the video signal as a second signal in step S104.
For example, the video apparatus may count the number of pixels included in the first level section 0 to 16 and the number of pixels included in the second level section 235 to 255. If the sum of the counts is equal to or larger than 5, the video signal may be identified as a first signal and if the sum of the counts is smaller than 5, the video signal may be identified as a second signal.
Referring to
When it receives an HDMI signal, the video apparatus may identify the HDMI signal as a first signal, Digital TV (DTV) or as a second signal, Red, Green, Blue-Personal Computer (RGB-PC) according to the histogram analysis.
The results of the signal type identification according to an exemplary embodiment of the present invention are illustrated in
Referring to
For example, if the video apparatus identifies the video signal as the first signal, it adjusts the gain and offset value of the video signal so that the luminance signal of the video signal has a luminance level between 16 and 235. If the video apparatus identifies the video signal as the second signal, it just lets the video signal bypass without adjusting the black level of the video signal.
Referring to
Since the video apparatus identifies the type of a video signal received from an external device by analyzing the histogram of the video signal and adjusts the black level of the video signal according to the signal type, it applies an accurate black level to the video signal. Therefore, the video signal is output without degradation of video quality such as black and white saturation or the like.
In the mean time, it is not necessary to perform a histogram analysis on all frames of an input video signal. Hence, the video apparatus may sample a predetermined number of frames of the input video signal, analyze the histograms of the frames, and adjust the black levels of the frames according to the histogram analysis in an exemplary embodiment of the present invention. As a result, computation is reduced and a signal type is fast identified in black level adjustment.
Also, the type of an input video signal needs to be identified each time the external device changes. In accordance with an exemplary embodiment of the present invention, the operation described in
The histogram analysis module 701 decodes the luminance signal of a video signal of each frame input to the video apparatus and analyses the histogram of the decoded luminance signal. An exemplary embodiment of the histogram analysis has been described before with reference to
The histogram analysis module 701 may perform the histogram analysis by dividing the histogram of the luminance signal into a predetermined number of sections and counting the number of pixels included in a predetermined section among the predetermined number of sections.
For example, the histogram analysis module 701 counts the number of pixels at levels equal to or lower than a first level, level 16 and the number of pixels at levels equal to or higher than a second level, level 255. If the sum of the counts is equal to or larger than a predetermined number, the histogram analysis module 701 identifies the video signal as a first signal. If the sum of the counts is smaller than the predetermined number, the histogram analysis module 701 identifies the video signal as a second signal.
The histogram analysis module 701 may also decode the video signal of each of a predetermined number of frames input to the video apparatus to a luminance signal and analyze the histogram of the decoded luminance signal, to thereby reduce the computation volume taken for black level adjustment.
Also, the histogram analysis module 701 may decode the video signal of a predetermined region of each frame input to the video apparatus to a luminance signal and analyze the histogram of the decoded luminance signal, to thereby reduce the computation volume taken for black level adjustment.
Each time the external device that transmits a video signal to the video apparatus changes, the histogram analysis module 701 may decode a video signal to a luminance signal and analyze the histogram of the luminance signal.
The black level detection module 702 determines the type of the video signal according to the result of the histogram analysis.
The black level adjustment module 703 adjusts the black level of the video signal according to the type of the video signal.
For adjusting the black level of the video signal, the black level adjustment module 703 may apply a different gain and offset value for a different signal type.
The video apparatus according to the exemplary embodiment of the present invention has been described above and the afore-described same operations are applied to the video apparatus illustrated in
Various embodiments have been described in the best mode for carrying out the invention.
According to the present invention, an accurate black level is applied to a video signal received from an external device. Therefore, the video signal is output without the degradation of video quality such as black and white saturation or the like.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
10-2008-0037342 | Apr 2008 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR09/02076 | 4/21/2009 | WO | 00 | 10/21/2010 |