IMAGE DITHERING MODULE

Abstract
An image dithering module is provided. The image dithering module includes a plurality of data processing channels. The data processing channels respectively process image data of each pixel or sub-pixel in an image frame. Each of the data processing channels includes a bit processing unit and a bit truncator unit. The bit processing unit mixes first pixel data with random data to generate second pixel data. The bit truncator unit truncates partial bits of the second pixel data to generate third pixel data.
Description
CROSS-REFERENCE TO RELATED APPLICATION

This application claims the priority benefit of Taiwan application serial no. 100144377, filed on Dec. 2, 2011. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.


BACKGROUND OF THE INVENTION

1. Field of the Invention


The invention relates to an image processing module. Particularly, the invention relates to an image dithering module suitable for image processing.


2. Description of Related Art


Generally, due to characteristics of liquid crystal molecules, when the liquid crystal is driven, a display driving device generally uses a frame inversion technique to drive pixels on a display panel through voltages of positive and negative polarities, so that polarities of the liquid crystal molecules are frequently inverted. However, since the voltages of different polarities may have some offsets, tilt angles of the liquid crystal molecules are different, and a color shift phenomenon is occurred between pixels. Therefore, when a plurality of frames is sequentially displayed, the pixels of each frame are all driven by a voltage of the positive polarity or the negative polarity, and are alternately displayed, and now the image frame may have a flicker phenomenon. In order to mitigate the flicker phenomenon of the image frames, the conventional technique develops a line inversion mode and a dot inversion mode to drive the liquid crystal display (LCD) panel. In this way, the color viewed by human eyes is an average of the pixels of the positive polarity and the negative polarity, and the flicker phenomenon is not occurred when the frames are switched.


On the other hand, considering the cost, a bit number of a driving device of the LCD panel is probably smaller than a grayscale depth required to be performed by the image frame. Now, in order to reconstruct the grayscles, a frame rate control (FRC) technique is generally used to implement modulation of a time axis, or an approach of a spatial domain grayscale average is used for implementation. When the FRC technique is used, a cycle pattern capable of being regularly appeared on the time axis is required to be found, so that values of a part of the pixels are interpolated grayscale values. Moreover, during the interpolation, polarity driving relationship of the pixels is required to be noticed, so as to avoid abnormal phenomenon of the image frame such as rolling lines or the flicker phenomenon, etc. Moreover, when the approach of the spatial domain grayscale average is used to implement the FRC technique, if a fixed interpolation pattern is used, abnormity of the image frames is easy to be perceived by eyes.


SUMMARY OF THE INVENTION

An image dithering module is disclosed, which can avoid frame abnormity generated under a frame rate control (FRC) technique.


An embodiment of the invention provides an image dithering module. The image dithering module includes a plurality of data processing channels. The data processing channels respectively process image data of each pixel or sub-pixel in an image frame. Each of the data processing channels includes a bit processing unit and a bit truncator unit. The bit processing unit mixes first pixel data with random data to generate second pixel data. The bit truncator unit truncates partial bits of the second pixel data to generate third pixel data.


In an embodiment of the invention, the bit processing unit adds the first pixel data with the random data to generate the second pixel data.


In an embodiment of the invention, the random data is added to a least significant bit of the first pixel data.


In an embodiment of the invention, a random value of the random data is within a specific range, and the specific range is determined according to a bit number of the first pixel data.


In an embodiment of the invention, the bit truncator unit outputs partial bits of the second pixel data to serve as the third pixel data, and a bit number of the third pixel data is less than a bit number of the second bit number.


In an embodiment of the invention, the bit truncator unit replaces values of the partial bits of the second pixel data with zero to generate the third pixel data.


In an embodiment of the invention, the partial bits of the second pixel data are least significant bits of the second pixel data.


In an embodiment of the invention, the image dithering module further includes at least one random generator unit. Each of the random generator units provides the random data to the bit processing unit of at least one of the data processing channels.


In an embodiment of the invention, a number of the random generator units is equal to a number of the data processing channels, and each of the data processing channels exclusively corresponds to at least one of the random generator units.


In an embodiment of the invention, the number of the random generator units is less than the number of the data processing channels, and at least two of the channel processing channels share a same random generator unit.


In an embodiment of the invention, the image dithering module further includes at least one multiplexer. The multiplexer selects one of random data generated by at least two of the random generator units for providing to one of the data processing channels for utilization.


In an embodiment of the invention, the bit processing unit mixes the first pixel data with compensation data to generate the second pixel data. A value of the compensation data is determined according to a position of the first pixel data in the image frame.


In an embodiment of the invention, the image dithering module further includes a pattern generator unit. The pattern generator unit generates a pattern of the image frame. The pattern represents a compensation bit of each pixel or sub-pixel in the image frame.


In an embodiment of the invention, the image dithering module further includes at least one compensation determination unit. The compensation determination unit determines whether the bit processing unit mixes the compensation data.


In an embodiment of the invention, the pattern is a random pattern or a fixed pattern.


According to the above descriptions, the image dithering module can mix the random data to the image frame with relatively more bit number, and truncates the bit number of the mixed image frame. In this way, relatively less bit number can be used to implement a high grayscale depth.


In order to make the aforementioned and other features and advantages of the invention comprehensible, several exemplary embodiments accompanied with figures are described in detail below.





BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.



FIG. 1 is a block schematic diagram of an image dithering module according to an embodiment of the invention.



FIG. 2 is a block schematic diagram of an image dithering module according to another embodiment of the invention.



FIG. 3 is a block schematic diagram of an image dithering module according to another embodiment of the invention.



FIG. 4 is a schematic diagram of a pattern generated by a pattern generator unit of FIG. 3.



FIG. 5 is a flowchart illustrating a dithering algorithm method according to an embodiment of the invention.





DETAILED DESCRIPTION OF DISCLOSED EMBODIMENTS


FIG. 1 is a block schematic diagram of an image dithering module according to an embodiment of the invention. Referring to FIG. 1, the image dithering module 100 of the present embodiment is adapted to perform a dithering algorithm processing in an image processing procedure, which, for example, can be implemented in front of or within a timing controller of an image display device, within a source driver, or following an image scaler. The location of the image dithering module in the image display device is not limited in the invention.


In the present embodiment, the image dithering module 100 includes three data processing channels 110R, 110G and 110B and three random generator units 120R, 120G and 120B. The data processing channels 110R, 110G and 110B respectively process image data of red, green and blue sub-pixels in an image frame. The random generator units 120R, 120G and 120B respectively provide random data to the data processing channels 110R, 110G and 110B.


In other words, the number of the random generator units 120R, 120G and 120B is equal to the number of the data processing channels 110R, 110G and 110B, so that each of the data processing channels exclusively corresponds one random generator unit. Namely, the image dithering module 100 processes image data based on sub-pixels, so as to reduce correlation between the sub-pixels, which has at least one advantage that pixel particles in the image frame perceived by human eyes are finer. However, the invention is not limited thereto. For example, in other embodiments, the image dithering module 100 can also process image data based on pixels, i.e. the three data processing channels 110R, 110G and 110B share a same random generator unit.


In detail, taking the data processing channel 110R as an example, it is used to process image data SR1 of a red pixel in the image frame and receive random data NR provided by the random generator unit 120R. In the present embodiment, the data processing channel 110R includes a bit processing unit 112R and a bit truncator unit 114R.


The bit processing unit 112R mixes the first pixel data SR1 with the random data NR to generate second pixel data SR2. Then, the bit truncator unit 114R truncates partial bits of the second pixel data SR2 to generate third pixel data SR3 after obtaining the second pixel data SR2. Detailed structure and operation flow of the bit processing unit 112R and the bit truncator unit 114R are described below.


In FIG. 1, a detailed structure of the bit processing unit 112R is illustrated. As shown in FIG. 1, the bit processing unit 112R includes a bit mapping and selector unit 113R and an adder unit 115R. The bit mapping and selector unit 113R receives the random data NR, and selects partial or all bits of the random data NR, and then maps the partial or all bits to a random value in a specific range. Then, the adder unit 115R adds the mapped random value to the first pixel data SR1, for example, adds the mapped random value to a least significant bit of the first pixel data SR1 to generate the second pixel data SR2. Namely, in the present embodiment, when the bit processing unit 112R performs the mixing step, the bit processing unit 112R uses the adder unit 115R to add the first pixel data SR1 with the random data NR to generate the second pixel data SR2.


For example, as shown in a following table, the bit mapping and selector unit 113R, for example, selects two least significant bits in the random data NR. Bit combinations of the two least significant bits include 00, 01, 10 and 11, and the specific range is, for example, random values from −2 to +1, wherein the bit combinations 00, 01, 10 and 11 respectively correspond to the random values +0, +1, −2 and −1, for example.
















Least significant bit (LSB)
Random value









00
+0



01
+1



10
−2



11
−1










Therefore, when the bit mapping and selector unit 113R selects the bit combination 00 from the random data NR, the bit mapping and selector unit 113R maps the bit combination 00 to the random value +0, and then the bit processing unit 112R uses the adder unit 115R to add the random value +0 to the least significant bit of the first pixel data SR1, so as to generate the second pixel data SR2. Deduced by analogy, when the selected bit combination is 01, 10 or 11, similar method can be used to obtain the corresponding second pixel data SR2.


It should be noted that the aforementioned mapping relationship, the specific range of the random values, the number of the selected bits of the random data, and the manner to mix the random value and the first pixel data, are not limited by the invention, and the disclosure of the present embodiment is only used as an example. In other embodiments, the mapped random values can be integer random values between a specific range of −1 and +1, and any two of the bit combinations probably correspond to a same integer random value in the specific range of −1 to +1. Moreover, the selected bits of the random data can be three least significant bits, and the mapped random value can be an integer random value between a specific range of −4 and +3, or −3 and +3, for example.


On the other hand, the number of the selected bits of the random data can be adjusted according to an actual design requirement. For example, the more the bit number of the first pixel data is, the more the number of the selected bits of the random data is, so as to increase diversity of the random data. Therefore, the random values represented by the random data are within a specific range, which can be determined by the bit number of the first pixel data.


On the other hand, after the second pixel data SR2 is obtained, the bit truncator unit 114R truncates partial bits in the second pixel data SR2, to generate the third pixel data SR3. Various truncating method can be used. In an embodiment, the bit truncator unit 114R truncates the least significant bits of the second pixel data SR2 to directly output the third pixel data SR3 with fewer bits. For example, the second pixel data SR2, for example, has 8 bits, and the bit truncator unit 114R converts it into the third pixel data SR3 with 6 bits. Alternatively, in another embodiment, the bit truncator unit 114R can also replace values of the partial bits, for example, the least significant bits of the second pixel data with zero to generate the third pixel data SR3.


The dithering algorithm of the present embodiment can be used to provide an 8 to 6-bit dithering function for a 6-bit source driver used for controlling the thin-film transistors of the liquid crystal panel. The dithering function can use a concept of average to enable human eyes to perceive a resolution of 4 times, i.e. a memory amount of 6-bit 64-color can be used to imitate a 8-bit 256-color display effect. Moreover, in the present embodiment, although the dithering operation of converting 8 bits to 6 bits is taken as an example for descriptions, conversion of other bit numbers, for example, a conversion from 10 bits to 8 bits, a conversion from 8 bits to 6 bits and a conversion from 6 bits to 4 bits can also be performed to implement the dithering operation.


As described above, the data processing channel 110R is used to process image data of the red sub-pixel in the image frame. The bit processing unit 112R adds the random data NR to the least significant bit of the first pixel data SR1 to generate the second pixel data SR2. The bit truncator unit 114R truncates the least significant bit of the second pixel data SR2 to generate the third pixel data SR3. Similarly, the data processing channel 110G is used to process image data of the green sub-pixel in the image frame. A bit processing unit 112G adds random data NG to a least significant bit of first pixel data SG1 to generate second pixel data SG2. A bit truncator unit 114G truncates a least significant bit of the second pixel data SG2 to generate third pixel data SG3. The data processing channel 110B is used to process image data of the blue sub-pixel in the image frame. A bit processing unit 112B adds random data NB to a least significant bit of first pixel data SB1 to generate second pixel data SB2. A bit truncator unit 114B truncates a least significant bit of the second pixel data SB2 to generate third pixel data SB3. Moreover, regarding structures and operation details of the data processing channels 110G and 110B, those skilled in the art can learn enough instructions and recommendations from related descriptions of the data processing channel 110R, so that detailed descriptions thereof are not repeated.



FIG. 2 is a block schematic diagram of an image dithering module according to another embodiment of the invention. Referring to FIG. 1 and FIG. 2, the image dithering module 200 of the present embodiment is similar to the image dithering module 100 of FIG. 1, and a main difference there between is that the image dithering module 200 further includes two multiplexers 230a and 230b. Each of the multiplexers is used to select one of random data generated by at least two of the random generator units (two of the random generator units are taken as an example) for providing to one of the data processing channels for utilization.


In detail, the multiplexer 230a selects one of the random data NR and NG generated by the random generator units 220R and 220G for providing to the data processing channel 210R for utilization, the multiplexer 230b selects one of the random data NG and NB generated by the random generator units 220G and 220B for providing to the data processing channel 210B for utilization. Namely, at least two of the channel processing channels of the present embodiment selectively share a same random generator unit. It should be noticed that the image dithering module 200 may also include at least one multiplexer to achieve the effect that the data processing channels share the random data. Therefore, the number of the multiplexers of the present embodiment is not limited to two.


Moreover, it should be noted that in other embodiments, when the number of the random generator units is less than the number of the number of the data processing channels, at least two of the channel processing channels can share a same random generator unit, and one to a plurality multiplexers can be used according to an actual need. For example, the image dithering module 200 may only include a single random generator unit, and the channel processing channels 210R, 210G and 210B can share the same random data. Now, the multiplexers are not configured in the image dithering module 200. In brief, the number of the random generator units can be equal to or less than the number of the data processing channels, or one to a plurality of multiplexers can be used such that at least two of the data processing channels share a same random generator unit.



FIG. 3 is a block schematic diagram of an image dithering module according to another embodiment of the invention. Referring to FIG. 2 and FIG. 3, the image dithering module 300 of the present embodiment is similar to the image dithering module 200 of FIG. 2, and a main difference there between is that the image dithering module 300 further includes a pattern generator unit 340 and three compensation determination units 350R, 350G and 350B. In the present embodiment, bit processing units 312R, 312G and 312B respectively mix the first pixel data SR1, S61 and SB1 with compensation data to generate second pixel data SR2, S62 and SB2, where a value of the compensation data can be determined according to positions of the first pixel data SR1, SG1 and SB1 in the image frame.


In detail, the pattern generator unit 340 generates a pattern of the image frame. The pattern is a random pattern or a fixed pattern, which represents a compensation bit of each pixel or sub-pixel in the image frame. The compensation determination units 350R, 350G and 350B are respectively disposed between bit mapping and selector units 313R, 313G and 313B and adder units 315R, 315G and 315B of the data processing channels 310R, 310G and 310B, as that shown in FIG. 3. The compensation determination units 350R, 350G and 350B can respectively determine whether the bit processing unit 312R, 312G and 312B mix the compensation data according to a compensation bit, which can be represented by a position of the currently processed pixel or sub-pixel in the pattern.



FIG. 4 is a schematic diagram of a pattern generated by the pattern generator unit of FIG. 3. Referring to FIG. 4, the pattern generated by the pattern generator unit 340 of the present embodiment is, for example, a fixed pattern, which presents the compensation bit of each of the sub-pixels in the image frame. The black color represents that the compensation is required, as indicated by compensation bit “1,” for example. On the other hand, the white color represents that the compensation is not required, i.e. the compensation bit is 0. Taking the data processing channel 310R as an example, after the determination of the compensation determination unit 350R, if it is determined to compensate the first pixel data SR1 of the sub-pixel, besides adding the mapped random value to the least significant bit of the first pixel data SR1, the adder unit 315R further adds the compensation bit represented by the sub-pixel shown in the fixed pattern of FIG. 4 to the first pixel data SR1, so as to generate the second pixel data SR2. Now, a magnitude of the random value mixed in the second pixel data SR2 is changed due to the compensation bit, so that pixel particles in the image frame perceived by human eyes are finer, and an influence of the mixed random value on the image frame perceived by human eyes can be reduced.


In another embodiment, the pattern generated by the pattern generator unit 340 is, for example, a random pattern. Besides the advantages of mixing the fixed pattern to the first pixel data SR1, the random pattern can further increase variation diversity of the mixed random values.



FIG. 5 is a flowchart illustrating a dithering algorithm method according to an embodiment of the invention. Referring to FIG. 1 and FIG. 5, the dithering algorithm method of the present embodiment is, for example, executed on the image dithering module 100 of FIG. 1, which includes following steps. First, in step S500, a plurality of random data is generated. In step S502, based on the sub-pixels, the random data is added to the first pixel data of each of the data processing channels to generate the corresponding second pixel data. It should be noted that as described above, such a step can be implemented based on pixels. In step S504, the least significant bit of the second pixel data is truncated to generate the third pixel data. Moreover, regarding details of the steps of the dithering algorithm method of the present embodiment, those skilled in the art can learn enough instructions and recommendations from related descriptions of the embodiments of FIG. 1-FIG. 4, so that detailed descriptions thereof are not repeated.


In summary, the image dithering module mixes the random data to the image frame with relatively more bit number, and truncates the bit number of the mixed image frame. In this way, relatively less bit number can be used to implement a high grayscale depth. By mixing the random data, frame abnormity generated under the frame rate control technique can be avoided. Moreover, according to the method, the strength of the random data can be controlled with an usage of a random or fixed pattern, so that pixel particles in the image frame perceived by human eyes are finer.


It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.

Claims
  • 1. An image dithering module, comprising: a plurality of data processing channels respectively processing image data of each pixel or sub-pixel in an image frame, wherein each of the data processing channels comprises: a bit processing unit mixing first pixel data with random data to generate second pixel data; anda bit truncator unit truncating partial bits of the second pixel data to generate third pixel data.
  • 2. The image dithering module as claimed in claim 1, wherein the bit processing unit adds the first pixel data with the random data to generate the second pixel data.
  • 3. The image dithering module as claimed in claim 2, wherein the random data is added to a least significant bit of the first pixel data.
  • 4. The image dithering module as claimed in claim 1, wherein a random value of the random data is within a specific range, and the specific range is determined according to a bit number of the first pixel data.
  • 5. The image dithering module as claimed in claim 1, wherein the bit truncator unit outputs partial bits of the second pixel data to serve as the third pixel data, and a bit number of the third pixel data is less than a bit number of the second bit number.
  • 6. The image dithering module as claimed in claim 1, wherein the bit truncator unit replaces values of the partial bits of the second pixel data with zero to generate the third pixel data.
  • 7. The image dithering module as claimed in claim 6, wherein the partial bits of the second pixel data are least significant bits of the second pixel data.
  • 8. The image dithering module as claimed in claim 1, further comprising: at least one random generator unit, each providing the random data to the bit processing unit of at least one of the data processing channels.
  • 9. The image dithering module as claimed in claim 8, wherein a number of the at least one random generator unit is equal to a number of the data processing channels, and each of the data processing channels exclusively corresponds to one of the at least one random generator unit.
  • 10. The image dithering module as claimed in claim 8, wherein the number of the at least one random generator unit is less than the number of the data processing channels, and at least two of the channel processing channels share a same random generator unit.
  • 11. The image dithering module as claimed in claim 8, further comprising at least one multiplexer selecting one of random data generated by at least two of the at least one random generator unit for providing to one of the data processing channels for utilization.
  • 12. The image dithering module as claimed in claim 1, wherein the bit processing unit mixes the first pixel data with compensation data to generate the second pixel data, wherein a value of the compensation data is determined according to a position of the first pixel data in the image frame.
  • 13. The image dithering module as claimed in claim 12, further comprising: a pattern generator unit generating a pattern of the image frame, wherein the pattern represents a compensation bit of each pixel or sub-pixel in the image frame.
  • 14. The image dithering module as claimed in claim 13, further comprising at least one compensation determination unit determining whether the bit processing unit mixes the compensation data according to the compensation bit.
  • 15. The image dithering module as claimed in claim 13, wherein the pattern is a random pattern.
  • 16. The image dithering module as claimed in claim 13, wherein the pattern is a fixed pattern.
Priority Claims (1)
Number Date Country Kind
100144377 Dec 2011 TW national