Gradation corrector

Abstract: A gradation corrector for use in a television receiver which can subject a signal at any luminance level to non-linear correction to provide optimum image quality. Memory (8) stores therein luminance histogram of an input signal. On the basis of the data, a circuit (33) detects a total frequency, a circuit (34) detects luminance distribution, and a circuit (35) detects the expanse of the luminance distribution. A circuit (36) calculates a fixed value to be added. Further, a circuit (38) detects a minimum luminance level, and a circuit (32) detects an average luminance level. A circuit (39) calculates an accumulation starting point and a circuit (40) calculates an accumulation stopping point. An adder (37) adds the calculated fixed value to the data in the memory (8). A circuit (9) accumulates the results in the range from the accumulation starting point to the accumulation stopping point. The accumulation result is stored in memory (10). A circuit (41) detects the maximum cumulative value, and a circuit (11) normalizes all the data stored in the memory (10) by use of this maximum value. The normalized data are stored in a memory (12). Thus, the input signal is subjected to optimum normalization by use of the normalized data.

Description: BACKGROUND OF THE INVENTION The present invention relates to a gradation corrector used in correcting the gradation of a video signal in a television receiver, a video tape recorder, a video camera, a video disk or the like. In recent years, great importance has been attached to a gradation corrector in order to provide a more clear image which is required with the increase in size of a color television receiver and the improvement in image quality thereof, and more especially, in order to expand the dynamic range of an image on a CRT by passing a video signal through a non-linear amplifier to correct the gradation of the video signal. A U.S. patent application No. 838,844 entitled "Gradation corrector" was filed on February 21, 1992 and post published as EP-A-0 501 728 (on basis of Japanese patent application No. 3-32794 filed on February 2, 1991). A U.S. patent application No. 846,143 entitled "Video signal gradation corrector" was filed on March 5, 1992 and post published as EP-A-0 505 073 (on basis of Japanese patent application No. 3-58657 filed on March 22, 1991). A patent application entitled "Video signal gradation corrector" is filed on basis of Japanese patent application Nos. 3-123647 and 3-123468 filed on May 28, 1991 and post published as EP-A-0 516 084. These three patent application have been assigned to the same assignee with the present application. An explanation will be given of a gradation corrector proposed precedently to the present application. Fig. 3 is a block diagram of the preceding gradation corrector. In Fig. 3, reference numeral 1 designates a black detection circuit for detecting a signal corresponding to a black portion in an input luminance signal to output a black detection signal. Numeral 2 designates a gain control circuit for gain-controlling the black detection signal in accordance with a gain control signal to output an amplified black detection signal. Numeral 3 designates an adder for adding the input luminance signal to the amplified luminance signal to output an output luminance signal. Numeral 4 designates a black peak-hold circuit for holding the black peak level of the output luminance signal to output the voltage with the level as a black peak hold voltage. Numeral 5 designates a comparator for comparing the black peak-hold voltage with a reference voltage. Numeral 6 designates a voltage source for generating the reference voltage. The operation of the gradation corrector thus constructed will be explained with reference to Fig. 4. Fig. 4 shows waveforms of signals at several points of the gradation corrector of Fig. 3. First, an input luminance signal a is inputted to the black detection circuit which extracts the black signal corresponding to the portion lower than a predetermined value of the luminance signal to be outputted as a black detection signal b . The black detection signal b is inputted to the gain control circuit 2 which controls its gain in accordance with a gain control voltage f to output an amplified black detection signal c . The signal c is inputted to the adder 3 which adds it to the input luminance signal a to output an output luminance signal d with an extended dynamic range on the black side. The signal d is outputted externally and also inputted to the black peak-hold circuit 4. The peak-hold circuit 4 detects the highest black luminance signal level to output the voltage with the level as a black peak-hold voltage e . The comparator 5 compares the peak-hold voltage e with a reference voltage r generated by the voltage source 6 to feed back a difference between them as a gain control voltage f to the gain control circuit 2. This feed-back system is stabilized when the black peak voltage e becomes equal to the reference voltage g . In this way, where there is a black-detection component, if the corresponding peak voltage is controlled to be always equal to the reference voltage, the dynamic range is extended on the black side to provide gradation correction. Fig. 5 is a block diagram of another precedent gradation corrector. Reference numeral 7 designates an A/D converter for converting an input luminance signal into a digital value. Numeral 8 designates a histogram memory for obtaining a luminance histogram of the input luminance signal. In general, the luminance level enters an address of the memory 2 and the frequency enters as the data thereof. Numeral 9 designates a histogram accumulation circuit for accumulating the output signals from the histogram memory 8. Numeral 10 designates a cumulative histogram memory for storing therein the result of accumulation by the histogram accumulation circuit 9. In general, the luminance level enters an address of the memory 9 and the frequency enters as data thereof. Numeral 11 designates a look-up table operating circuit which normalizes the respective data from the cumulative histogram memory 10 so that the maximum value resulting from accumulation becomes the maximum value of the output luminance signal. Numeral 12 designates a look-up table memory for storing therein the output signal normalized by the look-up table operating circuit 11. In general, the input luminance level enters an address of the memory 12 and the frequency enters as the data thereof. Numeral 13 designates a D/A converter which converts an output luminance signal in digital value corrected by the look-up table memory 12 into an analog signal. Numeral 14 designates a timing control circuit 14 which makes sequencing of various operations and control for the memories. The operation of the gradation corrector circuit thus constructed will be explained below. Fig. 6 shows the manner of conversion in the circuit. First, an input luminance signal a is inputted to the A/D converter 7 which converts it into a digital value to be outputted as a converted input luminance signal h . The histogram memory 8 takes the converted input luminance signal h as an address and adds 1 to the data at the address for each access. By performing this operation during one vertical scanning period, it is possible to detect a histogram distribution of the input luminance signal a . The histogram distribution is shown in Fig. 6(A). The contents of the histogram memory 8 are cleared at every predetermined period to make all the data zero. Usually, this period is set for one vertical scanning period or its integer-times. Next, data of the histogram memory 8 are read sequentially from the address of 0 by the histogram accumulation circuit 9 which in turn receives the output signals i . The accumulation result j is stored in the cumulative histogram memory 10. It is shown in Fig. 6(B). The look-up table operating circuit 11 determines a normalization coefficient so that the maximum value of the cumulative histogram memory 10 is the maximum output luminance level. The look-up table operating circuit 11 performs a normalization operation on all the data in the cumulative histogram memory 10 by use of the determined normalization coefficient. The operation result is stored in the look-up table memory 12. It is shown in Fig. 6(C). Data in the look-up table memory 12 is read with a converted input luminance signal h as an address and the read data is outputted as a corrected output luminance signal as a corrected output luminance signal m . Fig. 6(D) shows a histogram of the corrected luminance signal m . The D/A converter converts the corrected output luminance signal m into an analog signal d to be outputted. The timing control circuit 14 controls the operations of various circuits so that the respective parts are performed in the order as described above. The above precedent correctors have the following defects. The first corrector has a problem that since only a black signal is subjected to gradation correction, a high luminance level signal or an intermediate luminance level signal is not gradation-corrected, and so the dynamic range cannot be improved sufficiently. The second corrector which is directed to "histogram flattening processing" can extend the dynamic range to 100 %. But a normal video signal when subjected to such processing results in quite unlike an actual image. SUMMARY OF THE INVENTION The present invention intends to solve the above problems involved with the precedent correctors. An object of the present invention is to provide a gradation corrector which subjects a high luminance level signal or an intermediate level signal as well as a black side signal to sufficient gradation correction and prevents excessive extension of the dynamic range so that the gradation correction can be realized with high fidelity and contrast. The present invention, which is set out in the claim, performs the following operation in accordance with the construction described above. The limiter circuit limits the upper limit of the frequency of an extracted luminance histogram to a predetermined value. Thereafter, the total frequency detection circuit detects the total frequency of a luminance histogram. Further, the luminance distribution detection circuit detects the luminance distribution of the luminance histogram. On the basis of these results, the dispersion coefficient calculating circuit calculates the degree of expanse of the luminance histogram and the adding value calculating circuit a certain value to be added when a cumulative histogram is acquired. The adder adds the adding value to the output signal from the histogram memory. The histogram accumulation circuit accumulates the adding results. The cumulative histogram memory stores the accumulation results. In this case, it should be noted that the accumulation is carried out within a range from a starting point detected by the accumulation starting luminance level calculating circuit to a stopping point detected by the accumulation stopping luminance level calculating circuit. The accumulation stopping point is calculated on the basis of the average luminance level of the input video signal detected by the average luminance level detecting circuit. The accumulation starting point is calculated on the basis of the minimum level of the luminance histogram detected by the minimum value detecting circuit, the above average level and dispersion coefficient. On the basis of maximum value of the cumulative histogram detected by the maximum cumulative value detecting circuit, the look-up table operating circuit normalizes the respective data of the cumulative histogram. The operating result is stored in the look-up table memory. The input video signal is converted on the normalized data. Thus, the luminance histogram of the input video signal is detected by use of the histogram memory to perform histogram flattening processing usually performed. In this case, with the feature of the high dynamic range maintained, the processing optimum to the video signal can be carried out. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of the gradation corrector according to an embodiment of the present invention; Fig. 2 are waveforms for explaining the operation of the gradation corrector according to the present invention; Fig. 3 is a block diagram of a gradation corrector proposed precedently to the present application; Fig. 4 are waveforms for explaining the operation of the gradation corrector of Fig. 3; Fig. 5 is a block diagram of another gradation corrector proposed precedently to the present application; and Fig. 6 are waveforms for explaining the operation of the gradation corrector of Fig. 5. DESCRIPTION OF THE PREFERRED EMBODIMENT Now referring to the drawings, an explanation will be given of one embodiment of the present invention. Fig. 1 is a block diagram of the gradation corrector according to the present invention. In Fig. 1, reference numeral 7 designates an A/D converter; 8 a histogram memory; 9 a histogram accumulation circuit; 10 a cumulative histogram memory; 11 a look-up table operating circuit; 12 a look-up table memory; 13 a D/A converter. These components are the same as the corresponding components in the second prior art. Numeral 31 designates a limiter circuit which limits the frequency of luminance histogram so that it does not exceed a certain value. Numeral 32 designates an average luminance level detecting circuit which detects the average luminance level of an input video signal. Numeral 33 designates a total frequency detecting circuit which detects the total frequency of the luminance histogram processed. Numeral 34 designates a luminance distribution detecting circuit which detects the expanse of luminance distribution. Numeral 35 designates a dispersion coefficient calculating circuit which calculates the expanse of the luminance histogram. Numeral 36 designates an adding value calculating circuit which calculates a certain value to be added when a cumulative histogram is acquired. Numeral 37 designates an adder which adds the output signal from the histogram memory 8 to that from the adding value calculating circuit 36. Numeral 38 designates a minimum value detecting circuit which detects the minimum level of the luminance histogram. Numeral 39 designates an accumulation starting luminance level calculating circuit which calculates the starting luminance level in the cumulative histogram operation. Numeral 40 designates an accumulation stopping luminance level calculating circuit which calculates the stopping luminance level in the cumulative histogram operation. Numeral 41 designates a maximum cumulative value detecting circuit which detects the maximum value of the cumulative histogram. Numeral 14 designates a timing control circuit which controls the operation order of the above circuits and the memories. The operation of the gradation corrector thus constructed will be explained. First, the luminance histogram of an input video signal is stored in the histogram memory 8. It is shown in Fig. 2(A). With a certain upper limit given for the frequency of the luminance histogram, the limiter circuit 31 limits the frequency within the upper limit level. This is shown in Fig. 2(B). Thereafter, on the basis of the luminance histogram thus processed, respective operations will be performed. First, the total frequency detecting circuit 33 detects the area of the luminance histogram, i.e., the total of the respective frequencies. The luminance distribution detecting circuit acquires the frequencies corresponding to 10 % and 90 % of the detected total frequency, and on the basis of the data from the histogram memory 8, detects the luminance level range in which the frequencies from 10 % to 90 % are included. The dispersion coefficient calculating circuit 35 calculates the expanse of the luminance histogram on the detected total frequency and luminance distribution. The adding value calculating circuit 36 calculates a certain value to be added when a cumulative histogram is acquired from the calculated dispersion coefficient (see Fig. 2(C)). The adding value influences the correction effect in such a way that the larger the adding value, the weaker is the correction effect whereas the smaller the adding value, the more strong is the correction effect. The adder 37 adds the output signal from the histogram memory 8 to that from the adding value calculating circuit 36. The minimum value detecting circuit 38 detects the minimum luminance level of the luminance histogram on the basis of the output signal from the histogram memory 8. The average luminance level detecting circuit 32 detects the average level of the input video luminance signal. On the basis of the detected minimum luminance level and average luminance level and the above dispersion coefficient, the accumulation starting luminance level calculating circuit 39 calculates the luminance level where accumulation should be started when the cumulative histogram is to be acquired. On the basis of the detected average luminance, the accumulation stopping luminance level calculating circuit 40 calculates the luminance level where accumulation should be stopped when the cumulative histogram is to be acquired. The histogram accumulating circuit 9 accumulates the output signals within a range from the luminance level calculated by the accumulation starting luminance level calculating circuit to that calculated by the accumulation stopping luminance level calculating circuit 40, and stores the accumulation result in the cumulative histogram memory 10. The accumulation result is shown in Fig. 2(D). The maximum cumulative value detecting circuit 41 detects a maximum cumulative value on the basis of data stored in the cumulative histogram memory 10. The look-up table operating circuit 11 calculates a normalization coefficient so that the detected maximum value is the maximum value of a corrected output luminance level, and normalizes the respective data stored in the cumulative histogram memory using this coefficient. The normalization result is shown in Fig. 2(E). The operating result is stored in the look-up table memory 12 to complete the setting for gradation correction. The corrected output luminance signal is obtained on the basis of the data at an address of the input luminance signal in the look-up table memory 12. The histogram with the luminance converted is shown in Fig. 2(F). As described above, in accordance with this embodiment, provided are the histogram memory 8, the histogram accumulation circuit 9, the cumulative histogram memory 10, the look-up table operating circuit 11, the look-up table memory 12, the timing control circuit 14, the limiter circuit 31, the average level detecting circuit 32, the total frequency detecting circuit 33, the luminance distribution detecting circuit 34, the dispersion coefficient calculating circuit 35, the adding value calculating circuit 36, the adder 37, the minimum value detecting circuit 38, the accumulation starting luminance level calculating circuit 39, the accumulation stopping luminance level calculating circuit 40 and the maximum cumulative value detecting circuit 41. By use of such an arrangement, the histogram flattening processing can be applied to the gradation correction for a video signal such as a television signal. Further, since the correction effect is controlled by the constant adding value, accumulation starting luminance level and accumulation stopping luminance level which are detected from the luminance histogram, unlike the prior art, a high luminance level signal or an intermediate level signal as well as a black side signal is subjected to sufficient gradation correction and excessive extension of the dynamic range is prevented so that the gradation correction can be realized with high fidelity and contrast. Accordingly, in the arrangement composed of a histogram memory, a limiter circuit, the histogram accumulation circuit, a total frequency detecting circuit, a luminance distribution detecting circuit, a dispersion coefficient calculating circuit, an adding value calculating circuit, an adder, a minimum value detecting circuit, an average luminance detecting circuit, an accumulation starting luminance level calculating circuit, an accumulation stopping luminance level calculating circuit, a histogram accumulation circuit, a histogram memory, a maximum cumulative value detecting circuit, a look-up table operating circuit, a look-up table memory and a timing circuit, the present invention can provide a gradation corrector which subjects a high luminance level signal or an intermediate level signal as well as a black side signal to sufficient gradation correction and prevents excessive extension of the dynamic range so that the gradation correction can be realized with high fidelity and contrast.

Claims: A gradation corrector comprising: a histogram memory device (8) for storing the luminance histogram of a video luminance signal; a limiter circuit (31), connected with said histogram memory, for processing the data supplied from said histogram memory (8); a total frequency detecting circuit (33) for detecting the total frequency of the luminance histogram on the basis of the output signal from said histogram memory (8); a luminance distribution detecting circuit (34) for detecting the luminance distribution of said luminance histogram on the basis of the output signal from said total frequency detecting circuit (33) and that from said histogram memory (8); a dispersion coefficient calculating circuit (35) for calculating the expanse of said luminance histogram on the basis of the output signal from said luminance distribution detecting circuit (34) and that from said total frequency detecting circuit (33); an adding value calculating circuit (36) for calculating a fixed value to be added when a cumulative histogram is acquired on the basis of the calculation result supplied from said dispersion coefficient calculating circuit (35); an adder (37) for adding the calculation result from said adding value calculating circuit (36) to the output signal from said histogram memory (8); a minimum value detecting circuit (38) for detecting the minimum luminance level of said luminance histogram on the basis of the output signal from said histogram memory (8); an average luminance level detecting circuit (32) for detecting the average luminance level of the video signal inputted to said histogram memory (8); an accumulation starting luminance level calculating circuit (39) for calculating the luminance level where accumulation should be started when the cumulative histogram is to be acquired, on the basis of the output signals from said average luminance level detecting circuit (32), said minimum value detecting circuit (38) and said dispersion coefficient calculating circuit (35); an accumulation stopping luminance level calculating circuit (40) for calculating the luminance level where accumulation should be started when the cumulative histogram is to be acquired, on the basis of the output signal from said average luminance level detecting circuit (32); a histogram accumulation circuit (9) for accumulating the outputs from said adder (37) while they are controlled by the output signals from said accumulation starting luminance level calculating circuit (39) and said accumulation stopping luminance level calculating circuit (40); a cumulative histogram memory device (10) for storing the accumulation result; a maximum cumulative value detecting circuit (41) for detecting the maximum value of the cumulative histogram on the basis of the output signal from said cumulative histogram memory (10); a look-up table operating circuit (11) for normalizing the output signal from said cumulative histogram memory (10) on the basis of the output signal from said maximum cumulative value detecting circuit (41); a look-up table memory device (12) for storing the operation result in said look-up table operating circuit (11) to convert the inputted video luminance signal on the basis of the corresponding data and outputting the converted signal; and a timing control circuit (14) for controlling the operation of each of said circuits.

Inventors: KAGEYAMA ATSUHISA, TSUJI TOSHIAKI, KAGEYAMA, ATSUHISA, TSUJI, TOSHIAKI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1992
Main classification: H04N1
IPC codes: H04N5, G06T5, H04N1