1. Field of the Invention
The present invention relates to a display device having a dithering circuit and a gray scale processing system which performs gray scale processing on an input video signal.
2. Description of the Related Art
There is a known display device for displaying images which incorporates a gray scale processing circuit that performs gray scale processing on an input video signal to provide an increased number of pseudo-levels of gray scale.
For example, known as such a gray scale processing technique is a dithering technique in which four different dither coefficients “a” to “d” are each added to pixel data associated with each pixel in a set of four pixels that are adjacent to each other in the horizontal and vertical directions. For example, the dither coefficient “a” is added to the pixel data associated with the upper left pixel of the four pixels, the dither coefficient “b” is added to the pixel data associated with the upper right pixel, the dither coefficient “c” is added to the pixel data associated with the lower left pixel, and the dither coefficient “d” is added to the pixel data associated with the lower right pixel, respectively. However, in some cases, repeatedly adding the dither coefficients “a” to “d” to a screenful of pixel data in the aforementioned correspondence would cause a pseudo-pattern associated with the dither coefficients “a” to “d” to be perceived, i.e., a so-called dither noise would result.
In this context, another dithering technique was suggested in which the assignment of the dither coefficients “a” to “d” each to be added to pixel data associated with each of the four pixels adjacent to each other is changed for each field of an input video signal (e.g., see FIG. 8 in Japanese Patent Kokai No. 2001-312244; Patent Document 1). However, an addition operation according to this dithering technique may cause the average brightness level over the entire screen to vary from field to field, thus producing flicker.
A conventionally known display device for displaying images comprises a gray scale processing circuit which performs gray scale processing on an input video signal by error diffusion and dithering to provide an increased number of brightness levels for an image to be displayed on the screen (e.g., see FIGS. 24 to 27 in Japanese Patent Kokai No. 2000-227778; Patent Document 2).
In the error diffusion, for example, the input video signal is first converted to 8-bit pixel data associated with each pixel of the display, with the six high order bits being interpreted as display data and the remaining two least significant bits being interpreted as error data. Each error data of the aforementioned pixel data associated with each surrounding pixel is assigned a weight and added, thus allowing the resulting data to be reflected on the aforementioned display data. Such an operation allows the pseudo-brightness of the original pixel commensurate with the two least significant bits to be represented by the aforementioned surrounding pixels. Therefore, the display data of 6 bits being less than 8 bits makes it possible to represent the same levels of brightness as the aforementioned pixel data of 8 bits. The error diffusion pixel data of 6 bits obtained through the error diffusion is subjected to dithering.
In the dithering, a plurality of pixels adjacent to each other is defined as one pixel unit, and then different dither coefficients are each assigned to the aforementioned error diffusion pixel data associated with each pixel in the one pixel unit and then added, thereby providing dither added pixel data. In terms of the aforementioned one pixel unit, such an addition of the dither coefficients makes it possible to provide image data that enables only the four high order bits of the aforementioned dither added pixel data to represent the brightness corresponding to the 8 bits.
However, in some cases, the error diffusion and dithering performed on the input video signal as described above would result in a problem such as flicker.
The present invention has been developed to overcome the aforementioned problems. It is therefore an object of the present invention to provide a display device having a dithering circuit that can perform dithering on an input video signal without causing flicker and dither noise.
It is another object of the present invention to provide a gray scale processing system that can perform gray scale processing on an input video signal without causing problems such as flicker.
A display device according to a first aspect of the present invention displays an image in response to a video signal on a display screen having a plurality of display cells carrying pixels. The display device comprises: a dither coefficient generation component for generating a dither coefficient for each pixel group consisting of a plurality of the pixels corresponding to a location of each pixel in the pixel group; a dither adder for adding the dither coefficient to pixel data associated with each of the pixels in accordance with the video signal to obtain dither added pixel data; an average error computing component for determining, as an average error value, a difference between an average value of brightness levels represented by the pixel data associated with each of the pixels in the pixel group and an average value of brightness levels represented by the dither added pixel data associated with each of the pixels in the pixel group; a correction component for obtaining, as dithered pixel data, a result provided by adding a correction value for reducing the average error value to the dither added pixel data; and a display drive component for addressing the display in accordance with the dithered pixel data.
A gray scale processing system according to another aspect of the present invention is designed to increase the number of gray scale levels of image brightness expressed by a video signal. The gray scale processing system comprises: a frequency detector for detecting a frequency of the video signal; a gray scale processing circuit for performing gray scale processing on the video signal; and a gray scale process control component for controlling the operation of the gray scale processing circuit in response to the frequency.
A gray scale processing system according to further aspect of the present invention is designed to increase the number of gray scale levels of image brightness expressed by a video signal. The gray scale processing system comprises: a frequency detector for detecting a frequency of the video signal; a noise adding circuit for obtaining a noise added video signal by adding a noise signal to the video signal; a gray scale processing circuit for performing gray scale processing on the video signal; and a control component for controlling the operation of each of the gray scale processing circuit and the noise adding circuit in response to the frequency.
A display device according to a still further aspect of the present invention is designed to increase the number of gray scale levels of image brightness expressed by a video signal. The display device comprises: a frequency detector for detecting a frequency of the video signal; a gray scale processing circuit for performing gray scale processing on the video signal to generate a gray scaled video signal; a display component for displaying an image in response to the gray scaled video signal; and a gray scale process control component for controlling the operation of the gray scale processing circuit in response to the frequency.
Now, the present invention will be explained below with reference to the accompanying drawings in accordance with the embodiments.
Referring to
Referring to
A dither coefficient generation circuit 124 generates (n by m) dither coefficients A1,1 to An,m, having values different from each other, each associated with the location of each pixel in the n-row by m-column pixel block, and then supplies one by one the A1,1 to A1,m, A2,1 to A2,m, A3,1 to A3,m, . . . , and An,1 to An,m to the adder 122 in that order. At this time, the dither coefficient generation circuit 124 changes each value of the dither coefficients A1,1 to An,m each time a screenful of pixel data PD is supplied, i.e., for each field. For example, for a four-row by four-column pixel block, each value of the dither coefficients A1,1 to A1,4, A2,1 to A2,4, A3,1 to A3,4, and A4,1 to A4,4 changes as shown in FIG. 4(a) in the beginning first field, as shown in FIG. 4(b) in the subsequent second field, as shown in FIG. 4(c) in the third field, and as shown in FIG. 4(d) in the fourth field. In
The adder 122 adds the dither coefficients A supplied by the dither coefficient generation circuit 124 and the pixel data PD read on the memory 121 to obtain the resulting dither added pixel data DA of 8 bits, which is in turn supplied to a high order bit extracting circuit 125. That is, the adder 122 sequentially adds the pixel data PD1,1 to PDn,m in the n-row by m-column pixel block and the aforementioned dither coefficients A1,1 to An,m, each pair of pixel data PD and dither coefficient A being associated with the same pixel location. Then, the adder 122 sequentially supplies each of the resulting dither added pixel data DA1,1 to DAn,m thus obtained to the high order bit extracting circuit 125.
The high order bit extracting circuit 125 samples only a group of predetermined high order bits from the dither added pixel data DA to supply it to the subtractor 123 and an n-by-m block memory 126 as first dithered pixel data DP1. Here, the group of the predetermined high order bits is a group of contiguous high order bits including the most significant bit in the dither added pixel data DA, and the number of those bits depends on the minimum number of bits that is required to represent each of the aforementioned dither coefficients A1,1 to An,m in binary. For example, the dither coefficients A1,1 to A4,4 shown in
The subtractor 123 subtracts the pixel data PD read on the memory 121 from the aforementioned first dithered pixel data DP1 to thereby determine the difference therebetween, and then supplies the value of the difference to a brightness coefficient multiplier 127. That is, the subtractor 123 determines the difference between the brightness level represented by the pixel data PD and that represented by the first dithered pixel data DP1 obtained by performing dithering on the pixel data PD. The brightness coefficient multiplier 127 multiplies the value of the difference by a coefficient corresponding to the brightness level represented by the aforementioned pixel data PD to supply the resulting value to an n-by-m block average error logic circuit 128 and an n-by-m block memory 130 as an error value GV indicative of the final difference in brightness between the pixel data PD and the first dithered pixel data DP1.
The n-by-m block memory 126 sequentially stores the first dithered pixel data DP1 supplied by the high order bit extracting circuit 125. Then, having stored each of the first dithered pixel data DP11,1 to DP1n,m associated with the n-row by m-column pixel block, the n-by-m block memory 126 reads each of the first dithered pixel data DP11,1 to DP1n,m, for example, in the order of DP1,1 to DP1,m, DP2,1 to DP2,m, DP3,1 to DP3,m, . . . , and DPn,1 to DPn,m to supply these pieces of data to a pixel data correction circuit 131.
On the other hand, the n-by-m block memory 130 sequentially stores the error values GV supplied by the brightness coefficient multiplier 127. Then, having stored each of the error values GV1,1 to GVn,m associated with the n-row by m-column pixel block, the n-by-m block memory 130 reads each of the error values GV1,1 to GVn,m, for example, in the order of GV1,1 to GV1,m, GV2,1 to GV2,m, GV3,1 to GV3,m, . . . , and GVn,1 to GVn,m to supply those error values to a correction pixel data location detection circuit 129.
Each time the error values GV1,1 to GVn,m associated with the n-row by m-column pixel block are supplied by the brightness coefficient multiplier 127, the n-by-m block average error logic circuit 128 determines the average value of these error values GV1,1 to GVn,m to supply the resulting value to a correction pixel data count conversion circuit 132 as an average error value AG.
The correction pixel data count conversion circuit 132 converts the average error value AG to a count of the first dithered pixel data DP1 to be corrected and then supplies a correction pixel data count CN representative of the count to the correction pixel data location detection circuit 129. That is, the correction pixel data count conversion circuit 132 determines the count of the first dithered pixel data DP1 to be corrected in each n-row by m-column pixel block in accordance with the aforementioned average error value AG. At this time, the larger the average error value AG, the greater the correction pixel data count CN becomes.
The correction pixel data location detection circuit 129 first selects the error values GV by the count indicated by the aforementioned correction pixel data count CN from each of the error values GV1,1 to GVn,m associated with the n-row by m-column pixel block supplied by the n-by-m block memory 130 in descending absolute value order. When an error value GV having the same location as that of the selected error value GV in the n-row by m-column pixel block is read on the aforementioned n-by-m block memory 130, the correction pixel data location detection circuit 129 supplies a correction signal CD of logic level “1” for instructing to make a correction at that timing to the pixel data correction circuit 131. Otherwise, the correction pixel data location detection circuit 129 supplies a correction signal CD of logic level “0” to the pixel data correction circuit 131.
When having been supplied with a correction signal CD of logic level “0”, the pixel data correction circuit 131 supplies the first dithered pixel data DP1 read sequentially on the n-by-m block memory 126 as it is to a memory 133 as second dithered pixel data DP2. On the other hand, when having been supplied with a correction signal CD of logic level “1”, the pixel data correction circuit 131 corrects the first dithered pixel data DP1 with a correction value corresponding to a polarity signal PV indicative of the polarity of the average error value AG, the polarity signal PV being delivered by the aforementioned n-by-m block average error logic circuit 128 and supplied via the correction pixel data location detection circuit 129. The pixel data correction circuit 131 then supplies the resulting data as the second dithered pixel data DP2 to the memory 133. For example, when the average error value AG is indicative of the negative polarity, the pixel data correction circuit 131 adds a correction value of “1” to the first dithered pixel data DP1 to supply the resulting data as the second dithered pixel data DP2 to the memory 133. That is, when the average brightness of the n-row by m-column pixel block provided by the first dithered pixel data DP1 after dithering is lower than that of the n-row by m-column pixel block provided by the pixel data PD before dithering, the pixel data correction circuit 131 adds “1” to the first dithered pixel data DP1 in order to increase the average brightness. On the other hand, when the average error value AG is indicative of the positive polarity, the pixel data correction circuit 131 adds a correction value of “−1” to the first dithered pixel data DP1 to supply the resulting data as the second dithered pixel data DP2 to the memory 133. That is, when the average brightness of the n-row by m-column pixel block provided by the first dithered pixel data DP1 after dithering is higher than that of the n-row by m-column pixel block provided by the pixel data PD before dithering, the pixel data correction circuit 131 subtracts “1” from the first dithered pixel data DP1 in order to decrease the average brightness.
The memory 133 sequentially acquires each second dithered pixel data DP2 supplied by the pixel data correction circuit 131 for each n-by-m block to store the second dithered pixel data DP2 corresponding to the location of each pixel on the screen (n rows by m columns) of the display device 4. Then, each time a screenful of second dithered pixel data DP2 is stored, the memory 133 sequentially reads the second dithered pixel data DP2 for each display line to supply the data DP2 as the final dithered pixel data DPD to the aforementioned display drive circuit 3.
Now, by way of example, the operation of the dithering circuit 2 will be described below in which dithering is performed on the pixel data PD for each four-row by four-column pixel block.
The dither coefficient generation circuit 124 generates 16 dither coefficients of “0” to “15” (in decimal notation) while changing the locations assigned in the four-row by four-column pixel block for each field as shown in FIG. 5. Thus, each pixel data PD in the four-row by four-column pixel block and the aforementioned dither coefficient are added at the adder 122, and the high order bits of the resulting value excluding the four least significant bits are sampled to provide the first dithered pixel data DP1 representative of the following brightness levels in each of the first to fourth fields.
That is, as shown in
On the other hand, as shown in
Accordingly, an image displayed using the first dithered pixel data DP1 would provide an average brightness of “48” in the respective first and second fields while providing average brightness of “56” in the respective third and fourth fields. Therefore, the variation in the average brightness from the first to the fourth fields would result in flicker.
In this context, the flicker is prevented using the subtractor 123 shown in
That is, the difference between each pixel data PD in the n-row by m-column pixel block and the aforementioned first dithered pixel data DP1 associated with the position of the pixel is determined as an error value GV. Then, the average of the error values GV in the n-row by m-column pixel block is determined as the average error value AG. Then, the count of the first dithered pixel data DP1 to be corrected in the n-row by m-column pixel block is determined as the correction pixel data count CN in accordance with the average error value AG. Subsequently selected is the first dithered pixel data DP1 to be corrected from each first dithered pixel data DP1 in the n-row by m-column pixel block by the count indicated by the correction pixel data count CN in the descending order of the absolute value of the error value GV determined according to the DP1. A correction value corresponding to the polarity of the average error value AG determined according to the DP1 is added to the first dithered pixel data DP1 selected to produce the second dithered pixel data DP2, which is delivered as the final dithered pixel data.
For example, according to the aforementioned operation, in the first and second fields shown in
Therefore, no flicker will result because the average value of the respective second dithered pixel data DP2 in the pixel block from the first to the fourth fields is kept at “52”.
As described above, the dithering circuit 2 shown in
Now, the present invention will be explained below with reference to the accompanying drawings in accordance with other embodiments.
Referring to
Referring to
Referring to
Then, the high-frequency discriminator circuit 202 determines that the input video signal has a high frequency when the aforementioned total sum X is greater than a predetermined value to yield a high-frequency detection signal HD of logic level “1”, while determining that the input video signal has a low frequency when the total sum X is less than the predetermined value to yield a high-frequency detection signal HD of logic level “0”. The high-frequency discriminator circuit 202 then supplies the high-frequency detection signal HD of logic level “1” or “0” to each of the noise adding circuit 22, the error diffusion circuit 23, and the dithering circuit 24.
As shown in
In such an arrangement, when the input video signal has a lower frequency than the predetermined frequency, the noise adding circuit 22 supplies to the error diffusion circuit 23 the noise processed pixel data NPD obtained by adding a noise component to the aforementioned pixel data PD. On the other hand, when the input video signal has a higher frequency than the predetermined frequency, the noise adding circuit 22 supplies the pixel data PD as it is to the error diffusion circuit 23 without adding any noise component thereto.
As shown in
When the input video signal does not have a higher frequency than a predetermined frequency, the aforementioned arrangement allows the error diffusion circuit 23 to supply to the dithering circuit 24 the error diffusion pixel data ED obtained by performing error diffusion on the aforementioned noise processed pixel data NPD. On the other hand, when the input video signal has a higher frequency than the predetermined frequency, the error diffusion circuit 23 supplies the aforementioned pixel data PD as it is to the dithering circuit 24 without performing the error diffusion as mentioned above.
As shown in
When the input video signal does not have a higher frequency than a predetermined frequency, the aforementioned arrangement allows the dithering circuit 24 to supply to the memory 25 the dithered pixel data DP obtained by performing dithering on the error diffusion pixel data ED. On the other hand, when the input video signal has a higher frequency than the predetermined frequency, the dithering circuit 24 supplies the aforementioned pixel data PD as it is to the memory 25 without performing the dithering as mentioned above.
The memory 25 acquires the dithered pixel data DP or the pixel data PD supplied by the dithering circuit 24 to store the data corresponding to the location of each pixel on the screen (n rows by m columns) of the display device 4. Then, each time a screenful of pixel data (DP or PD) is stored, the memory 25 sequentially reads the pixel data for each display line to supply the data as the dithered pixel data MPD to the aforementioned display drive circuit 3.
As described above, the dithering circuit 2 shown in
Such a design makes it possible to display a good image without causing any problems such as flicker.
The dithering circuit 24 according to the aforementioned embodiment is to perform no dithering when the input video signal is higher in frequency than the predetermined frequency, however, the dither coefficients to be added may be changed depending on the frequency of the input video signal.
The dithering circuit 24 shown in
The high-frequency dither coefficient generation circuit 246 generates (n by m) dither coefficients B1,1 to Bn,m each corresponding to the location of each pixel in the n-row by m-column pixel block, and then sequentially supplies the dither coefficients to the selector 247. At this time, the high-frequency dither coefficient generation circuit 246 changes each value of the dither coefficients B1,1 to Bn,m in each one field (or one frame) of the input video signal. For example, for a two-row by four-column pixel block, each value of the dither coefficients B1,1 to B1,4 and B2,1 to B2,4 is changed so as to be as shown in the part (e) of
When having been supplied with the high-frequency detection signal HD of logic level “0” by the high-frequency detection circuit 21, the selector 247 supplies to the adder 248 the dither coefficients A1,1 to An,m supplied by the low-frequency dither coefficient generation circuit 245. On the other hand, when having been supplied with the high-frequency detection signal HD of logic level “1” by the high-frequency detection circuit 21, the selector 247 supplies to the adder 248 the dither coefficients B1,1 to Bn,m supplied by the high-frequency dither coefficient generation circuit 246. The adder 248 adds the pixel data (the error diffusion pixel data ED or the pixel data PD) supplied by the aforementioned error diffusion circuit 23 and the dither coefficients (A1,1 to An,m or B1,1 to Bn,m) each associated with the location of the pixel data in the pixel block, and then supplies the resulting data to the high order bit extracting circuit 249 as the dither added pixel data DA. The high order bit extracting circuit 249 samples only a group of the predetermined high order bits from the dither added pixel data DA and then supplies the resulting data to the aforementioned memory 25 as the dithered pixel data DP.
That is, when the input video signal is lower in frequency than the predetermined frequency, the dithering circuit 24 shown in
First, when a so-called low-frequency video signal is supplied which allows all the pixel data in the two-row by four-column pixel block shown in the part (a) of
However, suppose that dithering is performed, using the low-frequency dither coefficients “A” shown in the part (b) to the part (e) of
In this context, the dithering circuit 24 shown in
Furthermore, the aforementioned embodiment allows gray scale processing to be performed on an input video signal only when the input video signal is lower in frequency than a predetermined frequency. However, the aforementioned gray scale processing may not be performed when the input video signal is lower in frequency than the predetermined frequency, but may be performed only when the input video signal is higher in frequency than the predetermined frequency. At this time, it is necessary to choose the dither coefficients that can prevent flicker from being produced.
This application is based on Japanese Patent Applications Nos. 2002-376418 and 2002-371878 which are herein incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2002-371878 | Dec 2002 | JP | national |
2002-376418 | Dec 2002 | JP | national |
Number | Date | Country |
---|---|---|
2000-227778 | Aug 2000 | JP |
2001-312244 | Nov 2001 | JP |
Number | Date | Country | |
---|---|---|---|
20040125117 A1 | Jul 2004 | US |