CN103841385B - Image dithering process method and device - Google Patents

Image dithering process method and device Download PDF

Info

Publication number
CN103841385B
CN103841385B CN201210486875.8A CN201210486875A CN103841385B CN 103841385 B CN103841385 B CN 103841385B CN 201210486875 A CN201210486875 A CN 201210486875A CN 103841385 B CN103841385 B CN 103841385B
Authority
CN
China
Prior art keywords
dithering process
pixel value
value
view data
random array
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210486875.8A
Other languages
Chinese (zh)
Other versions
CN103841385A (en
Inventor
吕玉鹏
彭茂
毛水江
傅璟军
胡文阁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Semiconductor Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201210486875.8A priority Critical patent/CN103841385B/en
Publication of CN103841385A publication Critical patent/CN103841385A/en
Application granted granted Critical
Publication of CN103841385B publication Critical patent/CN103841385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The present invention discloses a kind of image dithering process method, and it comprises the following steps: obtain view data; Generate N number of random array according to the N number of pixel value in described view data, wherein, N be greater than 0 integer; According to described N number of random array, described the N+1 pixel value is carried out dithering process, wherein, the N+1 pixel value is carrying out generating in dithering process process the intermediate value of described the N+1 pixel value; Intermediate value according to described the N+1 pixel value generates N+1 random array; According to described N+1 random array, described the N+2 pixel value is carried out dithering process, until the pixel value of described view data all processes complete. The method can keep the dependency of neighbor, it is possible to keeps the consistence of adjacent pixels color while effectively removing the problems such as colour band. The invention also discloses a kind of image dithering process device.

Description

Image dithering process method and device
Technical field
The present invention relates to technical field of image processing, in particular to a kind of image dithering process device and a kind of image dithering process method.
Background technology
Dither(shake) be a kind of noise deliberately caused in order to randomization quantizing error, with stop significantly draw cause during the image of Shen picture Banding(colour band) such problem. Pass through dithering process, it is possible to increase the details composition of image, make image sand grains, the phenomenons such as the water ripples of removal of images simultaneously.
Due to the restriction of image each point pixel bit wide, create the algorithm of a large amount of compensation truncation errors, namely produce randomized number, for comparing with image each point pixel, generate corresponding pixel value by different algorithms, namely generate the new images after shake.
Algorithm practical at present is matrix method, and this algorithm is saved resource and easily realized. This algorithm mainly generates the matrix of 2 �� 2 or 3 �� 3 according to experience, compare with matrix corresponding element value with low 2 or low 3 of existing pixel value (scope is the two-value data of 0 ~ 255), if the value of low 2 or low 3 is greater than the value of homography element, then to adjacent high-order carry, value by low 2 or low 3 resets simultaneously. Circular treatment according to this, until processing entire image.
The specific implementation method of prior art is: the value arranged by the first of image the first row pixel value and the first row first of matrix compares, if low 2 or low 3 the element values being greater than this matrix of pixel value, then to high-order carry 1, the value of low 2 or low 3 is reset simultaneously, then compare by the first row the 2nd row value of the 2nd of the first row the pixel and matrix, the rest may be inferred, until processing the image of the first row. Then the value arranged by first pixel of image the 2nd row and matrix the 2nd row first compares, and the rest may be inferred, until processing the image of the 2nd row. Then next line is processed, until processing entire image.
The shortcoming that prior art exists is, according to value approximate with the contrast choosing matrix, only increase pixel details part, and do not consider the impact of neighbor, or say that the matrix just generated according to experience contrast produces fixed value, the new color and the adjacent image difference that generate like this may be very big, it is easy to produce the phenomenon of chromatic noise.
Summary of the invention
The object of the present invention is intended at least solve one of above-mentioned technological deficiency.
For this reason, first object of the present invention is to propose a kind of image dithering process method, and the method can keep the dependency of neighbor, it is possible to keeps the consistence of adjacent pixels color while effectively removing the problems such as colour band.
2nd object of the present invention is to propose a kind of image dithering process device.
For achieving the above object, the image dithering process method that the embodiment of first aspect present invention proposes, comprises the following steps:
Obtain view data;
Generate N number of random array according to the N number of pixel value in described view data, wherein, N be greater than 0 integer;
According to described N number of random array, described the N+1 pixel value is carried out dithering process, wherein, the N+1 pixel value is carrying out generating in dithering process process the intermediate value of described the N+1 pixel value;
Intermediate value according to described the N+1 pixel value generates N+1 random array;
According to described N+1 random array, described the N+2 pixel value is carried out dithering process, until the pixel value of described view data all processes complete.
Image dithering process method according to embodiments of the present invention, adopts the process of the intensity according to the adjustment shake of adjacent pixel, while increasing Randomized Quantizing error, keeps the dependency of neighbor. Meanwhile, participate in Jitter Calculation by multiple pixel, enhance the kinetic characteristic of image. In addition, this treatment process while effectively removing the problems such as colour band, can keep the consistence of adjacent pixels color.
For achieving the above object, the image dithering process device that the embodiment of second aspect present invention proposes, comprising: acquisition module, for obtaining view data; Dithering process module, described dithering process module generates N number of random array according to the N number of pixel value in described view data, and according to described N number of random array, described the N+1 pixel value carried out dithering process, and the intermediate value according to described the N+1 the pixel value carrying out described the N+1 pixel value in dithering process process producing generates N+1 random array, and according to described N+1 random array, described the N+2 pixel value is carried out dithering process, until the pixel value of described view data all processes complete, wherein, N be greater than 0 integer.
Image dithering process device according to embodiments of the present invention, it is possible to according to the intensity of adjacent pixel adjustment shake, while increasing Randomized Quantizing error, keep the dependency of neighbor. Meanwhile, participate in Jitter Calculation by multiple pixel, enhance the kinetic characteristic of image. In addition, this treatment unit while effectively removing the problems such as colour band, can keep the consistence of adjacent pixels color.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by the practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obviously with it should be readily understood that wherein from the following description of the accompanying drawings of embodiments:
Fig. 1 is the schema of image dithering process method according to embodiments of the present invention;
Fig. 2 is the schema that dither functions switch is selected in image dithering process method according to an embodiment of the invention;
Fig. 3 is the schema selecting YCbCr color space to export in image dithering process method according to an embodiment of the invention;
Fig. 4 is the schema of the image dithering process method according to the present invention's specific embodiment;
Fig. 5 is the schema selecting RGB color to export in image dithering process method in accordance with another embodiment of the present invention;
Fig. 6 is the skeleton diagram of image dithering process device according to embodiments of the present invention;
Fig. 7 A is the skeleton diagram that image dithering process device selects RGB color to export in accordance with another embodiment of the present invention; And
Fig. 7 B is the skeleton diagram that the image dithering process device according to another embodiment of the present invention selects RGB color output.
Embodiment
Being described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish. It is exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and limitation of the present invention can not be interpreted as.
Disclosing hereafter provides many different embodiments or example is used for realizing the different structure of the present invention. In order to simplify disclosing of the present invention, hereinafter parts and setting to specific examples are described. Certainly, they are only example, and object is not restriction the present invention. In addition, the present invention can in different example repeat reference numerals and/or letter. This kind repeats to be to simplify and clearly object, itself does not indicate the relation between discussed various embodiment and/or setting. In addition, various specific technique that the present invention provides and the example of material, but those of ordinary skill in the art can recognize the property of can be applicable to of other techniques and/or the use of other materials. In addition, fisrt feature described below second feature it " on " structure can comprise the embodiment that the first and second features are formed as directly contact, can also comprising the embodiment that other feature is formed between the first and second features, such first and second features may not be direct contact.
In describing the invention, it should be noted that, unless otherwise prescribed and limit, term " installation ", " being connected ", " connection " should be interpreted broadly, such as, can be mechanically connected or electrical connection, can also be the connection of two element internals, it is possible to be directly be connected, it is also possible to be indirectly connected by intermediary, for the ordinary skill in the art, it is possible to understand the concrete implication of above-mentioned term according to particular case.
With reference to description below and accompanying drawing, it will be clear that these and other aspects of embodiments of the invention. Describe at these and in accompanying drawing, specifically disclose the particular implementation of some in embodiments of the invention, represent some modes of the principle implementing embodiments of the invention, it is understood that the scope of embodiments of the invention is not limited. On the contrary, embodiments of the invention comprise all changes within the scope of the spirit and intension falling into attached claim book, amendment and etc. jljl.
The image dithering process method and device that propose according to embodiments of the present invention are described with reference to the accompanying drawings.
As shown in Figure 1, the image dithering process method that first aspect present invention embodiment proposes comprises the following steps:
S101, obtains view data.
Wherein, this view data belongs to YCbCr color space. Wherein, Y refers to brightness component, and Cb refers to chroma blue component, and Cr refers to red color component.
Further, in an embodiment of the present invention, owing to input image data is the data of YCbCr, if demand does dithering process at YCbCr color space, then image dithering process process is directly entered; If demand does dithering process at rgb space, then need by view data from YCbCr color space conversion to RGB color, and then enter image dithering process process. Wherein, R is red, and G is green, and B is blue.
S102, generates N number of random array according to the N number of pixel value in view data, wherein, N be greater than 0 integer.
Further, in one embodiment of the invention, as N=1, step S102 is specially: using the value corresponding to the default position of first pixel value as first random array, for the process of the 2nd pixel value. In embodiments of the present invention, the dither functions adjusting strength in dithering process process can be selected according to the image effect of the image obtained, because the view data obtained is the binarized pixel value of 0 ~ 255, so such as low 2 or low 3, the default position of view data can be selected to do dithering process according to image effect, if such as picture colour band this kind of situation is obvious, default position can be selected low 3, otherwise, preset position and select low 2. Wherein, when selecting default position to be low 2, dithering process is relatively weak.
In an example of the present invention, selection according to dither functions intensity, when N value is 1, the value of low 2 or low 3 of record first pixel, as random array YG_DELTA, CB_DELTA and CR_DELTA of the first pixel, for the calculating of the 2nd pixel. And the value of the first pixel does not process, directly export.
S103, according to N number of random array, carries out dithering process to the N+1 pixel value, wherein, the N+1 pixel value is carrying out generating in dithering process process the intermediate value of the N+1 pixel value.
In one embodiment of the invention, by following formula, the N+1 pixel value is carried out dithering process to generate the intermediate value of the N+1 pixel value:
YG_GRE_M=YG_GRE+YG_DELTA;
CB_BLU_M=CB_BLU+CB_DELTA;
CR_RED_M=CR_RED+CR_DELTA;
Wherein, YG_GRE, CB_BLU and CR_RED are the N+1 pixel value, YG_DELTA, CB_DELTA and CR_DELTA are N number of random array, YG_GRE_M, CB_BLU_M and CR_RED_M are the intermediate value of the N+1 pixel value of YCbCr or RGB produced in treating processes, determine by above-mentioned color-space choosing.
That is, in an example of the present invention, random array according to first pixel also processes current the 2nd pixel value by above-mentioned formula, thus obtain intermediate value YG_GRE_M, CB_BLU_M, CR_RED_M of the 2nd pixel, wherein YG_GRE_M, CB_BLU_M, CR_RED_M value can represent the value of Y, CB, CR or R, G, B respectively, determines by the selection of color space before. Meanwhile, if the value of YG_GRE_M, CB_BLU_M, CR_RED_M generated is greater than 255, then it is 255 by this variable assignment, otherwise does not process.
In an embodiment of the present invention, according to N number of random array, the N+1 pixel value is carried out dithering process to comprise further: export after the value of the default position of YG_GRE_M, CB_BLU_M and CR_RED_M being reset. Namely say, the value YG_GRE_M, the value of low 2 or low 3 of CB_BLU_M, CR_RED_M that are produced by step S103 reset, assignment is to new pixel value YG_GRE_DEAL, CB_BLU_DEAL, CR_RED_DEAL, and its value is the result of dithering process, as final output.
S104, generates N+1 random array according to the intermediate value of the N+1 pixel value.
In one embodiment of the invention, using the value of the default position of YG_GRE_M, CB_BLU_M and CR_RED_M as N+1 random array. That is, process intermediate value YG_GRE_M, CB_BLU_M, CR_RED_M of N+1 pixel value is obtained by step S103. The default position getting them respectively is such as low 2 or low 3, obtain the random array of N+1 pixel value, then assignment is to YG_DELTA, CB_DELTA and CR_DELTA respectively, and the value of the random array N number of pixel value generated overrides, for the calculating of the N+2 pixel value.
S105, according to N+1 random array, carries out dithering process to the N+2 pixel value, until the pixel value of view data all processes complete.
In one embodiment of the invention, after obtaining view data, it is possible to by selecting the switch of dither functions to judge whether this view data is carried out dithering process. As shown in Figure 2, after input YCbCr data, the flow process that dither functions switch is selected comprises the following steps:
S201, judges whether to need dithering process. If it does, then perform next step S202; If not, then step S203 is performed.
S202, enters image dithering process process.
S203, directly carries out image output.
In the present embodiment, that is, after obtaining YCbCr data, it is possible to select the switch of dither functions as required. When such as taking image, colour band is relatively more serious, then can select to open the switch of dither functions thus view data is carried out dithering process, increases the dynamicrange of image, eliminates colour band to the impact of image effect. Otherwise, it is possible to select to close dither functions, directly carry out image output.
Wherein, in one embodiment of the invention, as shown in Figure 3, the N+1 pixel value is carried out dithering process further comprising the steps:
S301, judges whether that the Y value to the N+1 pixel value carries out dithering process. If it does, then perform step S302; If not, then step S303 is performed.
S302, exports YG_GRE_DEAL.
S303, directly exports the Y value of the N+1 pixel value, namely exports YG_GRE.
S304, judges whether that the Cb value to the N+1 pixel value and Cr value carry out dithering process. If it does, then perform step S305; If not, then step S306 is performed.
S305, exports CB_BLU_DEAL, CR_RED_DEAL.
S306, directly exports Cb value and the Cr value of the N+1 pixel value, namely exports CB_BLU, CR_RED.
S307, exports the image of YCbCr format.
In the present embodiment, it is possible to the Y value of the N+1 pixel value directly exported, that is, Cb value and Cr value and to the N+1 pixel value carry out dithering process thus CB_BLU_DEAL, CR_RED_DEAL value of obtaining replaces exporting; Or, for black white image, brightness has the image that water ripples shape changes, it is possible to the Y value of the N+1 pixel value is carried out dithering process, eliminates water ripple phenomenon, and the Cb value of the N+1 pixel value and Cr value is directly exported.
Specifically, in one embodiment of the invention, as shown in Figure 4, above-mentioned image dithering process method also comprises the following steps:
S401, obtains YCbCr data.
S402, selects color space, such as YCbCr color space. That is, it is possible to select YCbCr color space that view data is carried out dithering process, it is also possible to select RGB color that view data is carried out dithering process.
S403, judge whether Y��Y_TH, namely being compared by the brightness value Y and luminance threshold Y_TH of data image, judge whether the pixel value in view data is carried out dithering process according to comparative result, wherein Y_TH selects the good Y_TH value of image effect according to practical situation. If it does, then perform step S404; If not, then step S410 is performed.
S404, selects dithering process intensity. Dither functions adjusting strength is selected according to image effect, the YCbCr view data obtained is the binarized pixel value of 0 ~ 255, can by selecting such as low 2 or low 3, the default position of data to do dithering process, if such as picture colour band this kind of situation is obvious, default position can be selected low 3, otherwise, preset position and select low 2.
S405, determines whether first pixel of YCbCr image. If it does, then perform step S407; If not, then step S406 is performed.
S406, record YG_DELTA, CB_DELTA and CR_DELTA.
S407, calculates YG_GRE_M, CB_BLU_M and CR_RED_M.
S408, upgrades YG_DELTA, CB_DELTA and CR_DELTA.
S409, calculates YG_GRE_DEAL, CB_BLU_DEAL, CR_RED_DEAL.
S410, output image.
In another embodiment of the present invention, as shown in Figure 5, for, when requiring finally to export the image for RGB color, this image dithering process method mainly comprises the following steps:
S501, obtains YCbCr data.
S502, judges whether to select RGB color to carry out dithering process. If it does, then perform step S503; If not, then step S504 is performed.
S503, carries out color space conversion, by view data from YCbCr color space conversion to RGB color.
S504, carries out dithering process at YCbCr color space, then performs step S506.
S505, carries out dithering process at RGB color.
S506, carries out color space conversion, and after being about to process, view data is from YCbCr color space conversion to RGB color.
S507, exports the image of rgb format.
Therefore, for the image requiring that last output is RGB color, it is possible to select after Y, Cb, Cr are carried out dithering process by YCbCr color space, be then converted to RGB color and export. Can also select to be first RGB color by YCbCr color space conversion, after then R, G, B being carried out dithering process, directly export.
Image dithering process method according to embodiments of the present invention, adopts the process of the intensity according to the adjustment shake of adjacent pixel, while increasing Randomized Quantizing error, keeps the dependency of neighbor. Meanwhile, participate in Jitter Calculation by multiple pixel, enhance the kinetic characteristic of image. In addition, this treatment process while effectively removing the problems such as colour band, can keep the consistence of adjacent pixels color.
As shown in Figure 6, the image dithering process device that second aspect present invention embodiment proposes comprises acquisition module 10 and dithering process module 20. If this image dithering process device is by judging the brightness information of the pixel value of the image of acquisition, select the process range of shake, and select color space according to demand, the value of the details part of the preceding pixel of record sign, in order to process current pixel value, finally export.
Wherein, acquisition module 10 is for obtaining view data. Dithering process module 20 is for generating N number of random array according to the N number of pixel value in view data, and according to N number of random array, the N+1 pixel value carried out dithering process, and the intermediate value according to the N+1 the pixel value carrying out the N+1 pixel value in dithering process process producing generates N+1 random array, finally according to N+1 random array, the N+2 pixel value is carried out dithering process, until the pixel value of this view data all processes complete, wherein, N be greater than 0 integer.
In an embodiment of the present invention, the view data of acquisition belongs to YCbCr color space.
In one embodiment of the invention, as shown in Figure 6, this image dithering process device also comprises register 30. Register 30 is connected with acquisition module 10, and register 30 internal memory contains luminance threshold Y_TH, for the switch of the brightness according to the view data obtained and the comparative result control dithering process module 20 of this luminance threshold Y_TH. Wherein, Y_TH selects the good Y_TH value of image effect according to practical situation. Namely saying, when the brightness value Y of data image is less than or equal to luminance threshold Y_TH, register 30 controls to open the dither functions of dithering process module 20.
In the present embodiment, that is, register 30 can select the switch of dither functions as required. When such as taking image, colour band is relatively more serious, then can select to open dither functions and carry out dithering process, increases the dynamicrange of image, eliminates colour band to the impact of image effect. Otherwise, it is possible to select to close dither functions such as bypass dithering process module 20, directly carry out image output.
In another embodiment of the present invention, as shown in Figure 7 A, this image dithering process device also comprises space transforming module 40. Space transforming module 40 is connected with acquisition module 10, space transforming module 40 for will obtain view data from YCbCr color space conversion to RGB color. Owing to input image data is YCbCr data, if demand does dithering process at YCbCr color space, then directly carry out dithering process; If demand does dithering process at rgb space, then needing space transforming module 40 by view data from YCbCr color space conversion to RGB color, then dithering process module 20 carries out dithering process again.
Further, in one embodiment of the invention, as N=1, dithering process module 20 also for using the value corresponding to the default position of first pixel value as first random array, for the process of the 2nd pixel value. In embodiments of the present invention, dither functions adjusting strength can be selected according to the image effect of the image obtained, because the view data obtained is the binarized pixel value of 0 ~ 255, so such as low 2 or low 3, the default position of view data can be selected to do dithering process according to image effect, if such as picture colour band this kind of situation is obvious, default position can be selected low 3, otherwise, preset position and select low 2. Wherein, when selecting default position to be low 2, dithering process is relatively weak.
In an example of the present invention, dithering process module 20 according to the selection of dither functions intensity, when N value is 1, the value of low 2 or low 3 of record first pixel, as random array YG_DELTA, CB_DELTA and CR_DELTA of the first pixel, for the calculating of the 2nd pixel. And the value of the first pixel does not process, directly export.
In one embodiment of the invention, the N+1 pixel value is also carried out dithering process to generate the intermediate value of the N+1 pixel value by following formula by dithering process module 20:
YG_GRE_M=YG_GRE+YG_DELTA;
CB_BLU_M=CB_BLU+CB_DELTA;
CR_RED_M=CR_RED+CR_DELTA;
Wherein, YG_GRE, CB_BLU and CR_RED are the N+1 pixel value, YG_DELTA, CB_DELTA and CR_DELTA are N number of random array, YG_GRE_M, CB_BLU_M and CR_RED_M are the intermediate value of the N+1 pixel value of YCbCr or RGB produced in treating processes, determine by above-mentioned color-space choosing.
That is, in an example of the present invention, random array according to first pixel also processes current the 2nd pixel value by above-mentioned formula, thus obtain intermediate value YG_GRE_M, CB_BLU_M, CR_RED_M of the 2nd pixel, wherein YG_GRE_M, CB_BLU_M, CR_RED_M value can represent the value of Y, CB, CR or R, G, B respectively, determines by the selection of color space before. Meanwhile, if the value of YG_GRE_M, CB_BLU_M, CR_RED_M generated is greater than 255, then it is 255 by this variable assignment, otherwise does not process.
In an embodiment of the present invention, dithering process module 20 also exports after the value of the default position of YG_GRE_M, CB_BLU_M and CR_RED_M being reset. That is, the value of low 2 or low 3 of intermediate value YG_GRE_M, CB_BLU_M, CR_RED_M is reset by dithering process module 20, assignment is to new pixel value YG_GRE_DEAL, CB_BLU_DEAL, CR_RED_DEAL, its value is the result of dithering process module 20 dithering process, as final output.
In one embodiment of the invention, dithering process module 20 also for the Y value of the N+1 pixel value is directly exported, and the Cb value and Cr value to the N+1 pixel value carries out dithering process thus CB_BLU_DEAL, CR_RED_DEAL value of obtaining replaces exporting; Or, for black white image, brightness has the image that water ripples shape changes, and the Y value of the N+1 pixel value can be carried out dithering process by dithering process module 20, eliminates water ripple phenomenon, and the Cb value of the N+1 pixel value and Cr value is directly exported.
In one embodiment of the invention, dithering process module 20 also for using the value of the default position of YG_GRE_M, CB_BLU_M and CR_RED_M as the random array of N+1. That is, dithering process module 20 choose respectively the process intermediate value YG_GRE_M of the N+1 pixel value obtained above, CB_BLU_M, CR_RED_M default position such as low 2 or low 3, as the random array of N+1 pixel value, then assignment is distinguished to YG_DELTA, CB_DELTA and CR_DELTA, override with the value of the random array that N number of pixel value is generated, for the calculating of the N+2 pixel value.
Analogizing successively, the N+2 pixel value is also carried out dithering process according to N+1 random array by dithering process module 20, until the pixel value of view data all processes complete.
In yet another embodiment of the present invention, as shown in Figure 7 B, for the image requiring that last output is RGB color, register 30 can control dithering process module 20 and select after Y, Cb, Cr are carried out dithering process by YCbCr color space, then controls space transforming module 40 and the view data after process is exported to RGB color from YCbCr color space conversion. In another embodiment of the present invention, as shown in Figure 7 A, register 30 can also be selected first to control space transforming module 40 by data image from YCbCr color space conversion to RGB color, after then R, G, B are carried out dithering process by control dithering process module 20, directly exports.
Image dithering process device according to embodiments of the present invention, it is possible to according to the intensity of adjacent pixel adjustment shake, while increasing Randomized Quantizing error, keep the dependency of neighbor. Meanwhile, participate in Jitter Calculation by multiple pixel, enhance the kinetic characteristic of image. In addition, this treatment unit while effectively removing the problems such as colour band, can keep the consistence of adjacent pixels color.
Describe and can be understood in schema or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the performed instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carrying out n-back test, this should be understood by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the performed instruction for realizing logic function can be considered as, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as based on system for computer, the system comprising treater or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or use in conjunction with these instruction execution systems, device or equipment. With regard to this specification sheets, " computer-readable medium " can be any can comprise, store, communicate, propagate or transmission program for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment. The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or dodge speed storer), fiber device, and portable optic disk read-only storage (CDROM). In addition, computer-readable medium is it is even possible that be paper or other the suitable media that can print described program thereon, because can such as by paper or other media be carried out optical scanning, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, then store it in computer memory.
It is to be understood that each several part of the present invention can realize with hardware, software, firmware or their combination. In the above-described embodiment, multiple step or method can realize with the software stored in memory and perform by suitable instruction execution system or firmware. Such as, if realized with hardware, the same with in another enforcement mode, can realize with the arbitrary item in following technology well known in the art or their combination: the discrete logic with the logic gates for data signal being realized logic function, there is the application specific integrated circuit of suitable combinational logic gating circuit, programmable gate array (PGA), field-programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can be completed by the hardware that program carrys out instruction relevant, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it is also possible to is that the independent physics of each unit exists, it is also possible to two or more unit are integrated in a module. Above-mentioned integrated module both can adopt the form of hardware to realize, it is also possible to adopts the form of software function module to realize. If described integrated module realize using the form of software function module and as independent production marketing or when using, it is also possible to be stored in a computer read/write memory medium.
The above-mentioned storage media mentioned can be read-only storage, disk or CD etc.
In the description of this specification sheets, at least one embodiment that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to be contained in the present invention in conjunction with concrete feature, structure, material or feature that this embodiment or example describe or example. In this manual, the schematic representation of above-mentioned term is not necessarily referred to identical embodiment or example. And, the concrete feature of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although it has been shown and described that embodiments of the invention, for the ordinary skill in the art, being appreciated that and these embodiments can be carried out multiple change, amendment, replacement and modification without departing from the principles and spirit of the present invention, the scope of the present invention is by claims and equivalent limits.

Claims (16)

1. an image dithering process method, it is characterised in that, comprise the following steps:
Obtain view data;
Generate N number of random array according to the N number of pixel value in described view data, wherein, N be greater than 0 integer;
According to described N number of random array, described the N+1 pixel value is carried out dithering process, wherein, the N+1 pixel value is carrying out generating in dithering process process the intermediate value of described the N+1 pixel value, and is crossing following formula and described the N+1 pixel value is carried out dithering process to generate described intermediate value:
YG_GRE_M=YG_GRE+YG_DELTA,
CB_BLU_M=CB_BLU+CB_DELTA,
CR_RED_M=CR_RED+CR_DELTA, wherein, described YG_GRE, CB_BLU and CR_RED are described the N+1 pixel value, described YG_DELTA, CB_DELTA and CR_DELTA are described N number of random array, and described YG_GRE_M, CB_BLU_M and CR_RED_M are the intermediate value of YCbCr or RGB produced in treating processes;
Intermediate value according to described the N+1 pixel value generates N+1 random array;
According to described N+1 random array, described the N+2 pixel value is carried out dithering process, until the pixel value of described view data all processes complete.
2. image dithering process method as claimed in claim 1, it is characterised in that, described view data belongs to YCbCr color space.
3. image dithering process method as claimed in claim 2, it is characterised in that, described the N+1 pixel value is carried out dithering process and comprises further:
The Y value of described the N+1 pixel value is directly exported, and the Cb value and Cr value to described the N+1 pixel value carries out dithering process;
Or, the Y value of described the N+1 pixel value is carried out dithering process, and Cb value and the Cr value of described the N+1 pixel value is directly exported.
4. image dithering process method as claimed in claim 2, it is characterised in that, after described acquisition view data, also comprise:
By described view data from described YCbCr color space conversion to RGB color.
5. image dithering process method as described in item as arbitrary in claim 1-4, it is characterised in that, as N=1, the described step generating N number of random array according to the N number of pixel value in described view data, is specially:
Using the value corresponding to the default position of first pixel value as first random array.
6. image dithering process method as claimed in claim 1, it is characterised in that, described according to N number of random array, described the N+1 pixel value carried out dithering process and comprise further:
Export after the value of the default position of described YG_GRE_M, CB_BLU_M and CR_RED_M is reset.
7. image dithering process method as claimed in claim 1, it is characterised in that, the described intermediate value according to the N+1 pixel value generates N+1 random array and comprises further:
Using the value of the default position of described YG_GRE_M, CB_BLU_M and CR_RED_M as described N+1 random array.
8. image dithering process method as claimed in claim 1, it is characterised in that, described generate N number of random array according to the N number of pixel value in described view data before, also comprise:
Brightness and luminance threshold to described view data compare;
Judge whether the pixel value in described view data is carried out dithering process according to comparative result.
9. an image dithering process device, it is characterised in that, comprising:
Acquisition module, for obtaining view data;
Dithering process module, described dithering process module generates N number of random array according to the N number of pixel value in described view data, and according to described N number of random array, described the N+1 pixel value carried out dithering process, and the intermediate value according to described the N+1 the pixel value carrying out described the N+1 pixel value in dithering process process producing generates N+1 random array, and according to described N+1 random array, described the N+2 pixel value is carried out dithering process, until the pixel value of described view data all processes complete, wherein, N be greater than 0 integer, described the N+1 pixel value is carried out dithering process to generate described intermediate value by following formula by described dithering process module:
YG_GRE_M=YG_GRE+YG_DELTA,
CB_BLU_M=CB_BLU+CB_DELTA,
CR_RED_M=CR_RED+CR_DELTA,
Wherein, described YG_GRE, CB_BLU and CR_RED are described the N+1 pixel value, described YG_DELTA, CB_DELTA and CR_DELTA are described N number of random array, and described YG_GRE_M, CB_BLU_M and CR_RED_M are the intermediate value of YCbCr or RGB produced in treating processes.
10. image dithering process device as claimed in claim 9, it is characterised in that, also comprise:
Register, described register is connected with described acquisition module, and described register memory contains luminance threshold, for controlling the switch of described dithering process module according to the brightness of described view data obtained and the comparative result of described luminance threshold.
11. image dithering process devices as claimed in claim 9, it is characterised in that, described view data belongs to YCbCr color space.
12. image dithering process devices as claimed in claim 11, it is characterised in that, also comprise:
Space transforming module, described space transforming module is connected with described acquisition module, for by described view data from described YCbCr color space conversion to RGB color.
13. image dithering process devices as claimed in claim 11, it is characterised in that, described dithering process module is also for directly exporting the Y value of described the N+1 pixel value, and the Cb value and Cr value to described the N+1 pixel value carries out dithering process;
Or, the Y value of described the N+1 pixel value is carried out dithering process, and Cb value and the Cr value of described the N+1 pixel value is directly exported.
Image dithering process device as described in 14. items as arbitrary in claim 9-13, it is characterised in that, described dithering process module also for using the value corresponding to the default position of first pixel value as first random array.
15. image dithering process devices as claimed in claim 9, it is characterised in that, described dithering process module also exports after the value of the default position of described YG_GRE_M, CB_BLU_M and CR_RED_M being reset.
16. image dithering process devices as claimed in claim 9, it is characterised in that, described dithering process module also for using the value of the default position of described YG_GRE_M, CB_BLU_M and CR_RED_M as the random array of described N+1.
CN201210486875.8A 2012-11-26 2012-11-26 Image dithering process method and device Active CN103841385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210486875.8A CN103841385B (en) 2012-11-26 2012-11-26 Image dithering process method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210486875.8A CN103841385B (en) 2012-11-26 2012-11-26 Image dithering process method and device

Publications (2)

Publication Number Publication Date
CN103841385A CN103841385A (en) 2014-06-04
CN103841385B true CN103841385B (en) 2016-06-01

Family

ID=50804475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210486875.8A Active CN103841385B (en) 2012-11-26 2012-11-26 Image dithering process method and device

Country Status (1)

Country Link
CN (1) CN103841385B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282398B (en) * 2014-11-06 2018-07-06 宏祐图像科技(上海)有限公司 A kind of adaptive time domain spatial domain 3D dithering process methods
CN106612424B (en) * 2015-10-23 2018-10-19 广州汽车集团股份有限公司 Method for displaying image and device
CN110036634B (en) * 2016-12-05 2021-03-09 Eizo株式会社 Information processing apparatus, image display apparatus, and information processing recording medium
TWI739515B (en) * 2020-07-14 2021-09-11 瑞昱半導體股份有限公司 Debanding determination method for image and debanding determination circuit thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1957594A (en) * 2004-05-19 2007-05-02 精工爱普生株式会社 Dot data processing device, image output system, and method thereof
CN101630488A (en) * 2009-08-05 2010-01-20 硅谷数模半导体(北京)有限公司 Self-adaptive video image dithering method for digital display system and device thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001238080A (en) * 2000-02-25 2001-08-31 Oki Data Corp Dither generator
JP4325171B2 (en) * 2002-10-17 2009-09-02 パナソニック株式会社 Image display device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1957594A (en) * 2004-05-19 2007-05-02 精工爱普生株式会社 Dot data processing device, image output system, and method thereof
CN101630488A (en) * 2009-08-05 2010-01-20 硅谷数模半导体(北京)有限公司 Self-adaptive video image dithering method for digital display system and device thereof

Also Published As

Publication number Publication date
CN103841385A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103841385B (en) Image dithering process method and device
KR100552695B1 (en) Method and apparatus for color control in color image
CN100409281C (en) Method and apparatus for displaying image and computer-readable recording medium for storing computer program
CN100470588C (en) Method of image color enhancement
CN109978788A (en) Convolutional neural networks generation method, image demosaicing methods and relevant apparatus
CN106409266A (en) Sub-pixel rendering and rendering device
CN107872662A (en) Display device
CN106488078A (en) Image processing equipment and image processing method
US8285071B2 (en) Content-adaptive contrast improving method and apparatus for digital image
CN109716427A (en) A kind of brightness adjusting method and terminal
CN106504281A (en) The image quality for being applied to cmos image sensor strengthens and filtering method
CN104981861A (en) Signal conversion device and method, and program and recording medium
CN109309826B (en) Image color balancing method and device, terminal equipment and readable storage medium
EP2953340B1 (en) Image processing device, image processing method, program, and recording medium
CN107392858A (en) Image highlight area processing method, device and terminal device
CN113392702B (en) Target identification method based on self-adaptive image enhancement under weak illumination environment
EP3855387A1 (en) Image processing method and apparatus, electronic device, and readable storage medium
CN101621704A (en) Color enhancement for graphic images
CN104836974A (en) Video player, display device, video playing system and video playing method
CN109000886A (en) A kind of light source detection method and device thereof, equipment and storage medium
CN101610342A (en) Color signal processing apparatus and method, color conversion apparatus and method
CN111341275A (en) Display control method, display device and storage medium
CN101616332B (en) Color domain expanding system and method
CN105554485A (en) Imaging method, imaging device and electronic device
CN110648297B (en) Image defogging method, system, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191230

Address after: 518119 1 Yanan Road, Kwai Chung street, Dapeng New District, Shenzhen, Guangdong

Patentee after: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

Address before: BYD 518118 Shenzhen Road, Guangdong province Pingshan New District No. 3009

Patentee before: BYD Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee after: BYD Semiconductor Co.,Ltd.

Address before: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee after: BYD Semiconductor Co.,Ltd.

Address before: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: BYD Semiconductor Co.,Ltd.

CP01 Change in the name or title of a patent holder