1. Field of the Invention
The invention relates to an image forming apparatus and an image forming method for forming output image data by processing input image data as predetermined.
2. Description of the Related Art
Conventionally, in television and other video display apparatus, video signals have been processed by gradation conversion. Such gradation correction processing is to process the video signal by predetermined gradation conversion in consideration of display characteristic, contrast of image data, and degree of gradation. For example, in the technology called black expansion, expression of black is emphasized by assigning a greater number of black gradations for video signal. In liquid crystal television, the broadcasting station side displays after converting the gradation (reverse gamma conversion) for returning the gradation conversion process of video signal to original signal, and returning the characteristic of video signal to linear characteristic. For gradation correction processing, generally, a look-up table (LUT) is used. The LUT is composed of a set of input and output corresponding to the input, and when data is entered, output data corresponding to the input data is issued. The LUT used in video display apparatus or the like is often designed so that the input and output characteristic may draw a curve, and hence it is generally called gamma conversion curve or gamma curve.
Recently, a new technique called dynamic gamma process is proposed, which is intended to execute optimum gradation correction processing in each scene (frame) of video. This is generally intended to correct the input data so that each scene image may be optimized visually depending on the degree of distribution of pixels in each scene or degree of change between scenes.
Japanese Patent Application Publication No. 7-99862 discloses a gradation correction apparatus having a recursive filter circuit. Japanese Patent Application Publication No. 7-99862 discloses a gradation correction apparatus having a circuit for forming an image on the basis of frequency distribution, and a recursive filter for suppressing oscillation of signal after correction due to fluctuation of frequency distribution by noise or the like. Furthermore, the gradation correction apparatus also includes a scene change detecting circuit for following up video scene changes.
Japanese Patent Application Laid-Open No. 2001-103338 discloses an image quality correcting circuit having a change suppressing part. Japanese Patent Application Laid-Open No. 2001-103338 discloses an image quality correcting circuit having a circuit for forming an image on the basis of frequency distribution, and a change suppressing part for suppressing deterioration of image quality due to extreme changes of brightness by image correction by extreme change of distribution state.
Japanese Patent Application Laid-Open No. 7-77963 discloses an image processing method for detecting the gradation distribution of luminance of image when displaying input video signal data on liquid crystal panel, and detecting the frequency of gradation in each predetermined gradation region of detected gradation distribution. This Japanese Patent Application Laid-Open No. 7-77963 judges if the frequency of gradation in each predetermined region is over the predetermined reference value or not. This judging is intended to vary the output gradation corresponding to input gradation in the look-up table for gradation conversion. That is, the process is intended to change the gamma conversion curve depending on the frequency distribution.
The problems to be solved by the invention are described by referring to
That is,
The recursive filter disclosed in Japanese Patent Application Publication No. 7-99862, and the change suppressing part disclosed in Japanese Patent Application Laid-Open No. 2001-103338 could not solve these problems. The image forming method disclosed in Japanese Patent Application Laid-Open No. 7-77963 discloses determination of luminance level of input data in frequency distribution in a predetermined class unit. However, the technology disclosed in Japanese Patent Application Laid-Open No. 7-77963 is a technology of improving the dark contrast of image particularly small in gradation distribution at low luminance side, by flattening the distribution of luminance of image. That is, in any video signal data, the luminance is averaged uniformly in the class not exceeding a reference value, and matched to a specific input and output gradation conversion characteristic. Hence it cannot be applied in compilation of gamma conversion data depending on the characteristic of video signal as shown in
The invention is devised to solve these problems, and it is hence an object thereof to present an image forming apparatus and an image forming method capable of forming an image favorably by following up changes of video signal.
To achieve above-mentioned object, according to the present invention, there is preferably provided an image forming apparatus for executing gradation correction processing to input image data, comprising: adding unit adapted to add any signal value in a range of predetermined lower limit and upper limit in every pixel, to each pixel value of the input image data; measuring unit adapted to measure gradation distribution divided in a plurality of distribution ranges on the basis of gradation values of a predetermined number of pixels to which the signal values are added by the adding unit; and generating unit adapted to generate gradation correction data for correcting the input image data in each pixel of the predetermined number on the basis of the gradation distribution measured by the measuring unit.
According to the invention, there is preferably provided an image forming apparatus for executing gradation correction processing to input image data, comprising: measuring unit adapted to measure gradation distribution of a predetermined number of pixels in each pixel of the predetermined number in input image data; and generating unit adapted to generate gradation correction data for correcting the input image data in each pixel of the predetermined number on the basis of the gradation distribution measured by the measuring unit, wherein the gradation distribution is divided into a plurality of distribution ranges by a predetermined range boundary value, and the predetermined range boundary value is varied in each pixel measured by the measuring unit in a predetermined lower limit and upper limit range.
According to the invention, there is preferably provided an image forming method for executing gradation correction processing to input image data, comprising: an adding step of adding any signal value in a range of predetermined lower limit and upper limit in every pixel, to each pixel value of the input image data; a measuring step of measuring gradation distribution divided in a plurality of distribution ranges on the basis of gradation values of a predetermined number of pixels to which the signal values are added at the adding step; and a generating step of generating gradation correction data for correcting the input image data in each pixel of the predetermined number on the basis of the gradation distribution measured at the measuring step.
According to the invention, there is preferably provided an image forming method for executing gradation correction processing to input image data, comprising: a measuring step of measuring gradation distribution of a predetermined number of pixels in each pixel of the predetermined number in input image data; and a generating step of generating gradation correction data for correcting the input image data in each pixel of the predetermined number on the basis of the gradation distribution measured at the measuring step, wherein the gradation distribution is divided into a plurality of distribution ranges by a predetermined range boundary value, and the predetermined range boundary value is varied in each pixel measured at the measuring step in a predetermined lower limit and upper limit range.
Preferred embodiments of the invention are described below.
The image forming method of the invention includes an image forming method using frequency distribution, such as dynamic gamma, black expansion, and white expansion, and the dynamic gamma is, in particular, preferred for the invention because it uses frequency distribution having a plurality of classes.
An embodiment of the invention is specifically described below by referring to an example of dynamic gamma in
In
In the embodiment, luminance data a of each pixel for composing image data for calculating frequency distribution is entered in the input terminal 100. The luminance data a is entered in the discrete data addition unit 101 as adding means in every pixel, and in the gradation conversion unit 104 as gradation correcting means. In the embodiment, color difference data is not processed particularly. By processing only the luminance data, dynamic gamma is realized. However, the invention can be also applied in other signal data than luminance data. For example, individual gradation data of R, G, and B can be used.
The discrete data addition unit 101 adds discrete data to each one of luminance data a, and generates discrete luminance data b. The discrete data is not specific fixed value, but is arbitrary data such as Gaussian distribution or ramp waveform varying within a specific distribution by every addition. If the value after addition of discrete data is smaller than 0, the value is limited to 0. If exceeding the maximum value of luminance data, too, the value is limited to the maximum value. To realize the invention, numerical data varying within predetermined range may be added to the luminance value of each pixel. For example, a random number having a specific amplitude is generated, and the random number is added to the luminance value of each pixel. The degree of amplitude should be determined appropriately by using the class width or evaluation result of image quality. In the embodiment, the distribution range of discrete data is set larger than the class width of histogram determined in the histogram measurement unit as measuring means.
Thus, by individually adding data varying in a specific range to the luminance data of each pixel of input video signal, the data after addition is dispersed. Therefore, even in the case of input video signal showing frequency only in a specific class, the signal data after addition of discrete data also appears as frequency in other class. The histogram measurement unit 102 measures the discrete luminance data b for the period of one frame, and generates histogram data c.
The gamma curve calculating unit 103 as generating means calculates by using the histogram data c, and obtains gamma conversion curve d. The method of calculation is described later.
Using this gamma conversion curve d, the gradation conversion unit 104 converts the gradation of input luminance data a, and issues output luminance data e to the output terminal 105. The invention is more specifically described below by referring to specific examples.
The input luminance data a is supposed to be 8-bit data.
The discrete data addition unit 101 adds discrete data to input luminance data a. The discrete data is not specific fixed value, but is data varying by every addition. Herein, as shown in
The histogram measurement unit 102 counts the discrete luminance data b to which discrete data is added for the period of one frame, and generates histogram data c using the number of pixels in each luminance value as frequency. The histogram generated by the histogram measurement unit 102 is predetermined the range of luminance values in four regions (classes), 0 to 63, 64 to 127, 128 to 191, and 192 to 255. It is shown in
The gamma curve calculating unit 103 calculates and generates an appropriate gamma conversion curve for gradation correction of image of the one frame from the histogram data c. Generation of gamma conversion curve is explained, in this example, by referring to the known histogram averaging method. Meanwhile, the gamma conversion curve may be calculated by any other method.
The maximum value (maximum frequency) of broken line of
The gradation conversion unit 104 processes input image data a by gamma conversion by using this gamma conversion curve d. Specifically, the gradation conversion unit 104 operates as follows. The gradation conversion unit 104 is composed of LUT consisting of a set of input and output as shown in
Referring further to
The gradation of concentration of frequency is changing from gradation 129 to 191, but this change is variation of image data within class CL3. Therefore, in the conventional method, only the same gamma conversion curve was obtained in both cases. However, by employing the method of the invention, the gamma conversion curve changes between
As described herein, in the embodiment, discrete data is added to the luminance value of each pixel in one frame of input video signal data, and the histogram of pixels added discrete data is measured, and hence an optimum gamma conversion curve can be generated. It hence solve the problems of the related art, such as excessive changes of gradation correction process leading to poor and undesired images or inappropriate gradation correction.
In other embodiment of the invention, an example of dynamic gamma is specifically described below by referring to
In
In this embodiment, the histogram measurement control unit 200 controls to change the boundary value of each class of histogram every time the histogram measurement unit 102 counts the luminance data of pixels contained in one frame.
Same as in embodiment 1, the luminance data a is explained as 8-bit data in this embodiment.
The histogram measurement control unit 200 controls to vary the range of each class of histogram every time the histogram measurement unit 102 counts the luminance value of pixel data of the object of calculation of histogram. The default range of each class is as shown in
In
CL1d after variation=default CL1d=0
CL1u after variation=default CL1u+alpha
CL2d after variation=default CL2d+alpha=CL1u after variation
CL2u after variation=default CL2u+alpha
CL3d after variation=default CL3d+alpha=CL2u after variation
CL3u after variation=default CL3u+alpha
CL4d after variation=default CL4d+alpha=CL3u after variation
CL4u after variation=default CL4u=255
The variation value “alpha” is ramp waveform data varying between −32 and +32 as shown in
At this time, if the upper limit or lower limit of each class becomes smaller than 0, the value is limited to 0. If larger than 255, the value is limited to 255. If the upper limit of class is 0, the pixel of which luminance data value is 0 should be the count value of one class higher (for example, if the upper limit of CL1 is 0, the count value of CL2). If the lower limit of class is 255, the count value of one class lower is used (for example, if the lower limit of CL4 is 255, the count value of CL3).
Referring to the drawings, the operation of the embodiment is explained.
In the class range shown in
Similarly, every time counting the luminance data, the upper limit and lower limit of each class can be changed. Even if luminance data of same value is counted, the class to be counted can be changed. During execution of counting, by varying the boundary value of class, substantially same effects as when discrete data is added to luminance data can be obtained as in embodiment 1. In this embodiment, however, only the boundary value is varied virtually, and the number of pixels is counted in the object class, and as the histogram for obtaining the gamma conversion curve d finally, a histogram having default class boundary value is used. Therefore, if the pixel of luminance value 128 is counted in CL2 due to variation of class boundary value, when returned to the default histogram, it remains to be counted as the pixel of CL2.
Hence, if all pixels of one frame are entered as data of luminance value 128, histogram data dispersed into CL2 and CL3 can be obtained as shown in
Therefore, in this embodiment, too, dispersed histogram data can be obtained. That is, from this histogram data, same as in embodiment 1, the gamma conversion curve capable of improving the related art can be obtained. Hence, in this embodiment, same as in embodiment 1, it is possible to solve the problems of related art, such as excessive change of gradation correction processing to cause undesired worsening of image, or failure in optimum gradation correction.
Subsequently, a different embodiment of the invention is explained by referring to an example of dynamic gamma shown in
In
The SED 301 is a display device capable of varying the gamma characteristic by drive voltage. The mechanism of SED is explained below.
The driving method of SED includes pulse width modulation (PWM) drive method. The PWM is a method of controlling the luminescence intensity by the applying time of voltage by making use of the linear relation of applying time and luminescence intensity of phosphor when voltage is applied to the electron emission source. The voltage applied at this time is called drive voltage. The PWM is further described by referring to
Meanwhile, by varying the drive voltage Vf which is usually constant, a method is proposed to provide the SED with gamma characteristic. This is explained below. The relation of drive voltage and luminescence intensity is plotted in a downward convex increase curve as shown in
Herein, the drive voltage Vf being use data specific value regardless of applying time is controlled to increase along with lapse of time as shown in
Or when the relation of applying time and drive voltage is controlled in each frame, the gamma characteristic of SED can be changed in each frame.
Based on the above-described fact, the explanation of the embodiment continues. The drive voltage control unit 300 generates drive voltage control signal g on the basis of histogram data c. The drive voltage control signal g is a signal for instructing the drive voltage Vf in each applying time.
The method of generating drive voltage control signal g from histogram data c is explained. First, same as in embodiment 1 and embodiment 2, a gamma conversion curve is obtained from histogram data by histogram averaging method. This gamma conversion curve is supposed to be f(x). Herein, x is an input gradation. Next, increase function g (x) is obtained to show an increment per gradation of f(x). This function g(x) is expressed as follows.
g(x)=f(x)−f(x−1);
however, when x=0, g(x) is 0.
The drive voltage control unit supplies this g(x) to the SED in every frame as drive voltage control signal g. The SED multiplies this drive voltage control signal by Vf1 to obtain a drive voltage for driving the SED.
Thus, from the histogram data dispersed in each frame, gamma conversion curve d is obtained same as in embodiment 1 and embodiment 2. From this gamma conversion curve d, drive voltage control signal g is generated. By controlling the SED by using this drive voltage control signal g, it is possible to solve the problems of related art, such as excessive change of gradation correction processing to cause undesired worsening of image, or failure in optimum gradation correction due to gradation correction processing not following up the changes of image.
In the foregoing embodiments, the discrete data addition unit, histogram measurement unit, gamma conversion curve calculating unit, and gradation conversion unit can be all composed of hardware. Similar effects can be obtained by applying the program for executing the functions of each part in an applicable computer environment. Not to mention, the invention can be realized by using both hardware and software.
In the embodiments, luminance data of input video signal is processed. The invention is, however, not limited to processing of luminance data. The number of classes or the width of class can be freely selected by any party carrying out the invention.
As mentioned herein, gradation correction processing following up changes of video can be realized in any video. At the same time, images are formed favorably while suppressing deterioration of image quality due to excessive correction by gradation correction processing.
This application claims priority from Japanese Patent Application No. 2005-114220 filed Apr. 12, 2005 and Japanese Patent Application No. 2006-054624 filed Mar. 1, 2005, which are hereby incorporated by reference herein.
Number | Date | Country | Kind |
---|---|---|---|
2005-114220 | Apr 2005 | JP | national |
2006-054624 | Mar 2006 | JP | national |