CN101567089B - Image color transferring device and method thereof - Google Patents
Image color transferring device and method thereof Download PDFInfo
- Publication number
- CN101567089B CN101567089B CN2008100923603A CN200810092360A CN101567089B CN 101567089 B CN101567089 B CN 101567089B CN 2008100923603 A CN2008100923603 A CN 2008100923603A CN 200810092360 A CN200810092360 A CN 200810092360A CN 101567089 B CN101567089 B CN 101567089B
- Authority
- CN
- China
- Prior art keywords
- pattern sample
- colour pattern
- pass
- frame index
- image color
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Color Television Systems (AREA)
Abstract
The invention provides an image color transferring device and a method thereof. The image color transferring device at least comprises one data converter, one weight generator, one regulator and one adder. The invention solves the problem of the insufficient gradient simulation of a known method by regulating a quantization error range and color transferring pattern contents and matching with a frame modulation technology.
Description
Technical field
The present invention is relevant for Flame Image Process, especially relevant for a kind of image color graded (dithering) device that is applied to image display device with and method.
Background technology
Image color graded is a kind of technology that often is used in computer graphics or shows the field, can produce more color effect under limited color depth (color depth).As a full color mode (full color, each pixel has three colors of RGB, each color has 8 positions) signal will be shown in a high color pattern (high color, each pixel has three colors of RGB, each color has 6 positions) display (for example cathode ray tube (CRT) display or LCD (LCD)) time, if do not use image color graded technology, then Chang Yong method is directly to give up minimum 2 positions (truncation).
But thus, originally beautiful full-color picture, it is true inadequately that its color just becomes, and the result who gives up 2 minimum positions can produce so-called quantization error (quantization error), with regard to the above-mentioned example of giving up minimum 2 positions, quantization error just equals { position 1, position 0}.For improving the quantization error that is produced in the above-mentioned figure place transfer process, in 1976, people such as Robert W.Floyd disclose a kind of Floyd-Steinberg and pass the look algorithm, are to be a block with 9 pixels, and the quantization error of each pixel is incorporated pixel (or point) around it with following ratio:
This algorithm can scan whole picture by left-to-right, from top to bottom, and image color graded this algorithm that all adopts of at present a lot of software processes can obtain good treatment effect.Yet, just must pay a high price if utilize hardware to carry out this algorithm, because system must have impact damper (buffer), increase hardware cost.
Another method of improving above-mentioned quantization error is frame modulation (frame rate control) technology: for example, the green of supposing signal source with 8 represent, the green of display represents with 6, when the original green value of one pixel S is one of them of 64 (0100_0000), 65 (0100_0001), 66 (0100_0010) or 67 (0100_0011), if quantization error is got 2 minimum positions, then pixel S equally is 16 (010000) in the shown value of display, but its quantization error is respectively 0,1,2,3.The frame modulation tech is exactly to utilize different quantization error value to do modulation, with reference to figure 1, in 4 frames (frame 0~frame 3), quantization error value is big more, pixel S (X, Y) (original pixel value=16) to be added into the ratio of weights (weight) 1 (new pixel value=17) just high more, in other words, this pixel of quantization error value size decision S (X, GTG Y) (gray scale) depth ratio.Yet the method has a shortcoming, can cause the phenomenon of fluorescent screen flicker exactly.The sweep frequency of supposing display is 60/second, with per 4 frames among Fig. 1 is that a circulation is an example, the frame modulation tech is to reach by the demonstration time that adds up 4 frames of each pixel to make the GTG visual effect, cause it to show that effectively speed drops to 60/4=15, frequency than persistence of vision is also low, therefore, naked eyes are experienced the phenomenon of fluorescent screen flicker easily.
The third improvement method is to pass colour pattern sample technology: suppose that signal source represents with 6 with 8, display color, and the picture of display is divided into 2 * 2 of a fritter, a fritter passs look block (also can be 3 * 3 or 2 * 3 pass look block), each 2 * 2 is passed the look block and comprises four pixel S0, S1, S2, S3, shown in Fig. 2 A.At first, the quantization error size of decision object pixel (supposing it is S0) then, is taken out the corresponding colour pattern sample (pattern) of passing again, is used for quantization error with object pixel S0 to incorporate this and pass neighbor in the colour pattern sample.With reference to figure 2B, this method has 4 and passs the colour pattern sample, with corresponding 4 quantization errors (being respectively 0,1,2,3); Each pass the colour pattern sample be 2 * 2 pass the colour moment battle array, respectively pass the colour moment battle array and comprise 4 weights altogether, 4 weights summations from 0 to 3 of passing the colour pattern sample do not wait, in order to show 4 different GTGs.Basically, it is to sacrifice the increase that resolution exchanges gradient for that tradition is passed colour pattern sample technology, but even so, in signal source is that 8, display are under 6 the situation, in fact display can only simulate 253 gradients (gray scale), the just so-called look boundary limitation (ditheringboundary condition) of passing.This is because when the gradient of display arrives lower border value (0) or upper boundary values (63), for fear of underflow (underflow) or overflow (overflow), can stop the increase or the minimizing of display gradient, therefore can simulate 3 gradients less.
For solve tradition pass hardware cost that colour pattern sample technology caused increase and pass look boundary limitation problem, also in order to solve the film flicker phenomenon that the conventional frame modulation is caused, therefore the present invention is proposed.
Summary of the invention
Because the problems referred to above, one of the object of the invention by the scope of adjusting quantization error and the content of passing the colour pattern sample, cooperates the frame modulation tech for a kind of image color graded method is provided simultaneously, to solve the not enough problem of gradient simulation.
For reaching above-mentioned purpose, image color graded method of the present invention comprises following steps: the P bit data of a pixel of a frame is converted to a Q bit data and a quantization error; Pass colour pattern sample, a plurality of second according to this pixel value, a preset range, one first frame index, a plurality of first and pass colour pattern sample and this pixel, obtain corresponding weights in the address of this frame; According to this preset range, adjust this Q bit data to produce an end value; And, with this end value and this weights addition, pass the look output valve to obtain one of this pixel; Wherein, P, Q are integer, and P>Q, and simultaneously, respectively this first passs the colour pattern sample and respectively this second is passed the colour pattern sample and all comprise a plurality of weights.
Further objective of the present invention is provides a kind of image color transferring device, comprise: a data converter, receive all pixels of a frame one by one, the P bit data of a pixel be converted to a Q bit data and a quantization error, and according to a preset range to produce a control signal; One weights generator, be connected to this data converter, internal memory a plurality of first is passed colour pattern sample and a plurality of second and is passed the colour pattern sample, according to a vertical synchronizing signal (VSYNC), this control signal, this pixel in address and this quantization error of this frame, to produce weights; One adjuster is connected to this data converter, in order to according to this control signal, adjusts this Q bit data and produces an end value; And a totalizer is connected to this adjuster and this weights generator, with this end value and this weights addition, passs the look output valve to produce one; Wherein, P, Q are integer, and P>Q, and simultaneously, respectively this first passs the colour pattern sample and respectively this second is passed the colour pattern sample and all comprise a plurality of weights.
Now the detailed description and the claim that cooperate following diagram, embodiment, will on address other objects and advantages of the present invention and be specified in after.
Description of drawings
Fig. 1 shows in the conventional frame modulation tech, the graph of a relation between quantization error, frame number and the pixel value;
Fig. 2 A demonstration tradition is passed in the colour pattern sample technology, passs an example of colour pattern sample;
Fig. 2 B shows that one group of tradition with 4 gradients passs the colour pattern sample;
Fig. 3 is the process flow diagram of an embodiment of the image color graded method of the present invention;
Fig. 4 A shows as the present invention to be applied in the upper boundary values of display when neighbouring that quantization error, frame index value and first are passed an example of the relation of colour pattern sample;
Fig. 4 B shows as the present invention to be applied in the upper boundary values of display when neighbouring that quantization error, frame index value and second are passed a graph of a relation between the colour pattern sample;
Fig. 4 C is a truth table, shows near 8 input data that upper boundary values is, in 6 output datas of carrying out being produced after the image color graded method of the present invention;
Fig. 5 A shows as the present invention to be applied in the lower border value of display when neighbouring that quantization error, frame index value and first are passed an example of the relation of colour pattern sample;
Fig. 5 B shows as the present invention to be applied in the lower border value of display when neighbouring that quantization error, frame index value and second are passed another graph of a relation between the colour pattern sample;
Fig. 5 C is a truth table, shows near 8 input data that lower border value is, in 6 output datas of carrying out being produced after the image color graded method of the present invention;
Fig. 6 is the configuration diagram of an embodiment of image color transferring device of the present invention.
Drawing reference numeral
600 image color transferring devices, 601 present frames
610 data converters, 620 weights generators
630 storage elements, 640 selected cells
650 adjusters, 660 counters
670 totalizers
Embodiment
The image color graded method of the present invention can be utilized hardware, software, firmware (firmware) wherein one, or the combination in any of former three is implemented, for example: the example that pure hardware is implemented is a field programmable gate array (field programmable gate array, FPGA) design, an or Application Specific Integrated Circuit (application specific integrated circuit, ASIC) design, and hardware and firmware merge the example of implementing be a digital signal processor (digital signal processor, DSP) and the combination of The built-in firmware.
Pass the look boundary limitation problem of passing that colour pattern sample technology is caused for solving tradition, when the upper and lower boundary value of display gradient convergence, the present invention is by the scope of adjusting quantization error and the content of passing the colour pattern sample, and cooperation frame modulation tech, not only solve the not enough problem of gradient simulation, more improved the film flicker phenomenon that the conventional frame modulation is caused.
Image color transferring device of the present invention and method are to be P position the image color graded image that to be processed into a color depth be the Q position with a color depth, and wherein, P, Q are integer, and P>Q.Image color transferring device of the present invention and method all can be applicable to various image output device, for example: cathode-ray tube display, LCD, printer etc.Explain that for convenient following embodiment all utilizes P=8, Q=6 does explanation.
Fig. 3 is the process flow diagram of an embodiment of the image color graded method of the present invention.Below, with reference to figure 3, each step of the image color graded method of the present invention is described.Note that before this method is carried out, must earlier the first frame index FC be reset to a preset value (being assumed to be 0).
Step S310: with a pixel S of order former frame
i8 bit data M
iBe converted to one 6 bit data N
iWith a quantization error QE
i, wherein i is an integer.Suppose this 6 bit data N
iBe to get this 8 bit data M
i6 positions of higher (MSB), quantization error QE
iJust equal 8 bit data divided by last remainder values after 4, be expressed as QE with mathematical expression
i=(M
iMod 4).
Step S320: judge this 6 bit data N
iSize whether be positioned at a preset range (equaling 0~61).Note that in another embodiment of the present invention, also can utilize this pixel 8 bit data M
iSize make a decision, at this moment, the preset range of being arranged in pairs or groups equals 0~247.
Step S330: work as N
iIn the time of between preset range 0~61, according to quantization error QE
iThe value size and the first frame index FC pass the colour pattern sample from 8 first, choose one of them and first pass the colour pattern sample, simultaneously, control signal ADJ are made as 0 (or logic low level state).Work as N
iWhen being positioned at preset range, the present invention just uses tradition to pass colour pattern sample technology to carry out image color graded processing basically.
Fig. 4 A is depicted as quantization error, frame index value and first is passed an example of the relation of colour pattern sample.For example, work as N
iBetween preset range 0~61, quantization error QE
i=0 and during FC=1, just choose first of Fig. 4 A lower left corner and pass the colour pattern sample.Fig. 4 A comprises first of two covers up and down and passs the colour pattern sample (cover has four first and passs the colour pattern sample, can produce four gradients), it promptly is that four tradition of Fig. 2 B are passed the colour pattern sample that first cover (FC=0) first passs the colour pattern sample, and it is to be basic derived out (weights are at diverse location) with first cover (FC=0) that second cover (FC=1) first passs the colour pattern sample.In fact, can only use a cover first wherein pass the colour pattern sample in this step, just can show four gradients, and use two covers (or overlap more than two), first advantage of passing the colour pattern sample to be in this step: picture can be more even, visual effect is better.
Be noted that, two covers that this step is used totally 8 first pass these eight that the colour pattern sample is not limited among Fig. 4 A and pass the colour pattern sample, prerequisite is that every suit first is passed the colour pattern sample and must be shown four gradients, and same group two first pass colour pattern sample (with Y-axis, a group has two first and passs the colour pattern sample) and have different weights pattern (QE as far as possible
i=0 exception) (just weights being broken up), so picture can feel more even.
Step S340: work as N
iWhen being positioned at outside the preset range (greater than 61), according to quantization error QE
iWith the first frame index FC, from 8 groups (Y-axis) of the present invention, two row (X-axis) totally 16 second pass the colour pattern sample and (to be shown as a cover second as Fig. 4 B and to pass the colour pattern sample, have 16 type samples, can completely present 8 gradients), choose one of them and second pass the colour pattern sample, simultaneously, control signal ADJ is made as 1 (or the accurate state of logic high).Each second pass the colour pattern sample be 2 * 2 pass the colour moment battle array, each is passed the colour moment battle array and comprises 4 weights altogether.
Step S350: according to pixel S
iAddress (X
i, Y
i), pass colour pattern sample or second from previous step rapid selected first and pass the colour pattern sample, obtain one of them weights W
iSuppose pixel S
iThe address or the coordinate that are positioned at this frame equal (X
i, Y
i), utilize formula ((X
iMod 2), (Y
iMod 2)) can take out corresponding weights.For example, work as X
i=159, Y
i=378 o'clock, according to formula ((X
iMod 2), (Y
iMod 2)) calculate (1,0), just choose the upper right corner weights W that passs the colour pattern sample
i
Step S360: judge whether control signal ADJ equals 1 (or the accurate state of logic high).This step is to judge 6 bit data N
iThe necessity whether adjustment is arranged is if jump to step S370; Then leap to step S380 if need not adjust.
Step S370: adjust 6 bit data N
iThe present invention is for cooperating quantization error QE
iScope is adjusted to 3 positions by 2 positions, (expression N when control signal ADJ equals 1
iValue may be 62 or 63), N
iBe set without exception and equal 62, shown in the truth table of Fig. 4 C.
Step S380: with 6 bit data N
iWith weights W
iAddition.
Step S390: judge whether this frame is still waiting processed pixels.If, get back to step S310, otherwise, jump to step S391.
Step S391: when system receives next effectively (active) state of a vertical synchronizing signal VSYNC (verticalsynchronization), the first frame index FC is added 1, and get back to step S310.Note that when the first frame index FC=2 can be reset was 0 (figure does not show), so in this step, the first frame index FC can circulation back and forth between 0 and 1.
In step S340, work as N
iGreater than 61 o'clock, the present invention by change pass the colour pattern sample content (by select first pass the colour pattern sample change into select second to pass the colour pattern sample) and with quantization error QE
iScope is adjusted to 3 positions (shown in Fig. 4 C) by 2 positions, simultaneously, collocation frame modulation scheme, tradition in the bounds (248~255) is passed the limit that colour pattern sample technology can be simulated: 5 gradients (248~252) are expanded into 8 gradients (248~255).The present invention utilizes 8 groups, two row second to pass colour pattern sample (please refer to Fig. 4 B) and carry out image color graded processing, and because second to pass the colour pattern sample be 2 * 2 matrix, in a frame, can only show 4 gradients, in order to reach the purpose that shows 8 gradients, the present invention further utilizes the frame modulation scheme, makes 8 gradients complete presenting in former and later two frames; In other words, each group second is passed the colour pattern sample and need be comprised two second and pass the colour pattern sample, and two frames before and after being implemented on respectively could completely present 8 gradients.
Shown in Fig. 4 B, two row, 8 group second pass the colour pattern sample, by left-to-right, quantization error QE
iBy 0 to 7, respectively organizing the second weights summation of passing the colour pattern sample then is from 1 to 8, forms 8 gradients altogether.Each group second is passed the colour pattern sample and is comprised two second and pass the colour pattern sample, utilizes the first frame index FC (0 or 1) to come the corresponding address of index with two frames before and after being implemented on respectively.Circulate as one with per 4 frames compared to the conventional frame modulation tech, be as a circulation in the frame modulation tech that the present invention implemented with per two frames, the demonstration time ratio of each pixel is shorter, show that effectively speed only drops to about 60/2=30 (opening/second), approximate the frequency of persistence of vision greatly, therefore, naked eyes relatively are not easy to experience the phenomenon of fluorescent screen flicker.
Please note, can completely present under the prerequisite of 8 gradients, each group second is passed the colour pattern sample and also can be comprised second more than two and pass the colour pattern sample, frame before and after being implemented on respectively more than two, certainly, this moment the first frame index value FC number second number of passing the colour pattern sample that must equal that each group second passs that the colour pattern sample comprised.For example, in step S340, can adopt two covers second to pass the colour pattern sample, just have 8 groups, 4 row totally 32 second pass the colour pattern sample, wherein, each row comprises 8 second and passs the colour pattern sample, and comprising 4 second, each group passs the colour pattern sample, at this moment, the number of the first frame index FC equals 4 (FC=0~3), the prerequisite of using is that every suit second is passed the colour pattern sample and must be shown 8 gradients, and same group 4 second pass the colour pattern sample and have different weights patterns (just weights being broken up) as far as possible, and so picture can feel more even, smooth and easy.
Subsidiary one carry be, using one of two covers, first reason of passing colour pattern sample (FC=0/1) in step S330 is to use the same first frame index FC for matching step S340, and step S330 and S340 use the benefit of the same first frame index FC is that the easier enforcement of system, program are better write, in fact, the same first frame index FC of necessary use among the step S330.In another embodiment of the present invention, step S330 only uses a cover first to pass colour pattern sample (passing the colour pattern sample for 4 first), at this moment, and need only be according to quantization error QE
iSize promptly can be passed the colour pattern sample from 4 first, chooses one of them and first passs the colour pattern sample, does not index and need not use the first frame index FC.In further embodiment of this invention, step S330 is to use quadruplet first to pass colour pattern sample (passing the colour pattern sample for totally 16 first) and uses another second frame index FC2 to index, and not with the shared first frame index FC of step S340, because the numerical value covering scope of the second frame index FC2 (0,1,2,3) is not equal to the numerical value covering scope (0,1) of the first frame index FC, wherein, the second frame index FC2 also is that effective status number of times according to above-mentioned vertical synchronizing signal produces.
It is noted that the embodiment of Fig. 3 is the upper boundary values 63 that is applied in display increasing the simulation gradient, thus arrange in pairs or groups first pass colour pattern sample (Fig. 4 A) and second and pass the weights of colour pattern sample (Fig. 4 B) and be integer and N more than or equal to 0
iPreset range be to equal 0~61.On the contrary, the image color graded method of the present invention can also be applied in the lower border value 0 of display to increase the simulation gradient, near 8 lower border value input data (0~7), its quantization error QE
iThe truth table that scope is adjusted to 3 positions by 2 positions shown in Fig. 5 C, at this moment, in step S320, the N that arranges in pairs or groups
iPreset range equal 2~63, pass the colour pattern sample then shown in Fig. 5 A for 8 first among the step S330, pass the colour pattern sample then shown in Fig. 5 B for 16 second among the step S340, can observe from Fig. 5 A and Fig. 5 B, first passs colour pattern sample and second passs the weights of colour pattern sample and all is adjusted to and is less than or equal to 0 integer, implementation step as for other is identical with the coboundary principle all fully, at this not in giving unnecessary details.
Fig. 6 is the configuration diagram of an embodiment of image color transferring device of the present invention.With reference to figure 6, image color transferring device 600 of the present invention comprises a data converter 610, a weights generator 620, an adjuster 650 and a totalizer 670.Present embodiment is to illustrate with the situation that increases the simulation gradient with the upper boundary values 63 that is applied in display.
Wherein, weights generator 620 comprises a storage element 630, a selected cell 640 and a counter 660 again.Storage element 630 is passed colour pattern sample and 16 second and is passed the colour pattern sample in order to store 8 first.When control signal ADJ=0 (or logic low level state), storage element 630 is according to quantization error QE
iWith the first frame index FC, choose 8 first conduct outputs wherein of passing the colour pattern sample; When control signal ADJ=1 (or the accurate state of logic high), storage element 630 is according to quantization error QE
iWith the first frame index FC, choose or 16 second of index pass the colour pattern sample wherein one as output.Counter 660 comes accumulative total frame sum by the effective status number of times that calculates vertical synchronizing signal (VSYNC), and this first frame index FC is used as in output; The initial value of the first frame index FC equals 0, and when the first frame index FC was incremented to 2, counter 660 can reset to 0 with the first frame index FC, therefore when first frame index FC circulation primary between 0 and 1, just equaled complete execution frame modulation once of the present invention.As for 640 of, selected cells according to pixel S
iIn the address of frame 601 (X
i, Y
i), first passed colour pattern sample or second and pass the colour pattern sample from what storage element 630 exported, select a weights W
iOutput.
When control signal ADJ=1 (or the accurate state of logic high), adjuster 650 is with N
iBe made as 62 back outputs as an end value; And when control signal ADJ=0 (or logic low level state), 650 in adjuster is output (bypass) N directly
iValue is as this end value.At last, totalizer 670 is with the weights addition of this end value and 620 generations of weights generator, to produce with respect to pixel S
iOne pass the look output valve.
Subsidiary one carry be, storing one of two covers, first reason of passing the colour pattern sample in the storage element 630 is in order to cooperate second to pass the number of colour pattern sample to use the same first frame index FC, and the benefit of using the same first frame index FC is that the easier enforcement of system, program are better write, during practical application, storage element 630 is being chosen the first necessary first frame index FC of use when passing the colour pattern sample, and the present invention equally can implement.In another embodiment of the present invention, 630 of storage elements store cover (4) first and pass the colour pattern sample, need only be according to quantization error QE
i, just can choose 4 first one of them of passing the colour pattern sample as output, do not index and need not use the first frame index FC.In further embodiment of this invention, storage element 630 is to store quadruplet first to pass the colour pattern sample and use another second frame index FC2 (for example FC2=0/1/2/3) to choose first and pass the colour pattern sample, and do not pass the shared first frame index FC of colour pattern sample with second, because the numerical value covering scope of the second frame index FC2 (0,1,2,3) is not equal to the numerical value covering scope (0,1) of the first frame index FC.Wherein, the second frame index FC2 produces by the effective status number of times that counter 660 calculates vertical synchronizing signal (VSYNC), because the second frame index FC2 is not a necessary signals in the present invention, so be represented by dotted lines in the drawings.
Image color transferring device 600 of the present invention can also be applied in the lower border value 0 of display to increase the simulation gradient, the difference of implementing is, stored 8 first of storage element 630 pass colour pattern sample (is example with Fig. 5 A) and 16 second weights of passing colour pattern sample (is example with Fig. 5 B) are to be less than or equal to 0 integer.At this moment, totalizer 670 is with this end value and negative weights addition, and function aspects is equivalent to a subtracter in fact.
The specific embodiment that is proposed in the detailed description of preferred embodiment is only in order to convenient explanation technology contents of the present invention, but not with narrow sense of the present invention be limited to the foregoing description, in the situation that does not exceed spirit of the present invention and following claim, the many variations of being done is implemented, and all belongs to scope of the present invention.
Claims (29)
1. image color graded method is characterized in that the method includes the steps of:
The P bit data of one pixel of one frame is converted to a Q bit data and a quantization error;
Pass colour pattern sample, a plurality of second according to described pixel value, a preset range, one first frame index, a plurality of first and pass colour pattern sample and described pixel, obtain corresponding weights in the address of described frame;
According to described preset range, adjust described Q bit data to produce an end value; And
With this end value and described weights addition, pass the look output valve to obtain one of described pixel;
Wherein, P, Q are integer, and P>Q, and simultaneously, each described first is passed colour pattern sample and each described second and pass the colour pattern sample and all comprise a plurality of weights.
2. image color graded method as claimed in claim 1, it is characterized in that, described first frame index is that the effective status number of times according to a vertical synchronizing signal produces, the initial value of this first frame index equals one first preset value simultaneously, and when this first frame index during greater than one second preset value, this first frame index is reset and equals this first preset value.
3. image color graded method as claimed in claim 1 is characterized in that, this is obtained described corresponding weights step and comprises:
When described pixel value is positioned at described preset range, first pass the colour pattern sample according to described quantization error, described pixel in the address of described frame and described these, choose described weights; And
In the time of outside described pixel value is positioned at described preset range, according to described quantization error, described pixel in the address of described frame, described first frame index and described this a few second pass the colour pattern sample, chooses described weights.
4. image color graded method as claimed in claim 3 is characterized in that, this is obtained described corresponding weights step and comprises:
When described pixel value is positioned at described preset range, according to described quantization error, first pass the colour pattern sample from described these, choose one of them and first pass the colour pattern sample;
In the time of outside described pixel value is positioned at described preset range,, second pass the colour pattern sample, choose one of them and second pass the colour pattern sample from described these according to described quantization error and described first frame index; And
According to the address of described pixel in described frame, described first pass colour pattern sample or described second and pass the colour pattern sample from what choose, obtain described weights.
5. image color graded method as claimed in claim 4, it is characterized in that, describedly choose one of them and first pass in the colour pattern sample step, be also according to one second frame index or described first frame index, first pass the colour pattern sample to choose one of them, wherein, described second frame index is different from described first frame index.
6. image color graded method as claimed in claim 5 is characterized in that, the numerical value covering scope of described second frame index is not equal to the numerical value covering scope of described first frame index.
7. image color graded method as claimed in claim 5, it is characterized in that, described second frame index is that the effective status number of times according to a vertical synchronizing signal produces, the initial value of described second frame index equals one the 3rd preset value, and when described second frame index during greater than one the 4th preset value, described second frame index is reset and equals described the 3rd preset value.
8. image color graded method as claimed in claim 1 is characterized in that P equals 8, and Q equals 6.
9. image color graded method as claimed in claim 8, it is characterized in that, described these second are passed the colour pattern sample and are divided into 8 groups, each group second is passed the colour pattern sample and is comprised at least two second and pass the colour pattern sample, simultaneously, described first frame index comprise at least two different values with correspond to each the group second described at least two second of passing in the colour pattern sample pass the colour pattern sample.
10. image color graded method as claimed in claim 8 is characterized in that, the multiple that described these first numbers of passing the colour pattern sample equal 4.
11. image color graded method as claimed in claim 8, it is characterized in that, when described pixel value equals described Q bit data, described preset range is from 0 to 61, and when described Q bit data equaled 63, described end value equaled 62, simultaneously, each described first is passed colour pattern sample and each described second and passs described these weights that the colour pattern sample comprised and be integer more than or equal to 0.
12. image color graded method as claimed in claim 8, it is characterized in that, when described pixel value equals described Q bit data, described preset range is from 2 to 63, and when described Q bit data equaled 0, described end value equaled 1, simultaneously, each described first is passed colour pattern sample and each described second and passs described these weights that the colour pattern sample comprised and be and be less than or equal to 0 integer.
13. image color graded method as claimed in claim 8 is characterized in that, described these first pass the colour pattern sample and described these second pass the colour pattern sample be 2 * 2 pass the colour moment battle array.
14. image color graded method as claimed in claim 1 is characterized in that, described pixel value is to equal the size of described Q bit data or the size of described P bit data.
15. an image color transferring device is characterized in that, this device comprises:
One data converter receives all pixels of a frame one by one, and the P bit data of a pixel is converted to a Q bit data and a quantization error, and according to a preset range to produce a control signal;
One weights generator, be connected to described data converter, internal memory a plurality of first is passed colour pattern sample and a plurality of second and is passed the colour pattern sample, according to a vertical synchronizing signal, described control signal, described pixel in the address and the described quantization error of described frame, to produce weights;
One adjuster is connected to described data converter, in order to according to described control signal, adjusts described Q bit data and produces an end value; And
One totalizer is connected to described adjuster and described weights generator, with described end value and described weights addition, passs the look output valve to produce one;
Wherein, P, Q are integer, and P>Q, and each described first is passed colour pattern sample and each described second and pass the colour pattern sample and all comprise a plurality of weights.
16. image color transferring device as claimed in claim 15 is characterized in that, described weights generator comprises:
One counter is according to the effective status number of times of described vertical synchronizing signal, to produce one first frame index;
One storage element, be connected to described data converter and described counter, described these of internal memory first are passed the colour pattern sample and described these second are passed the colour pattern sample, the described quantization error of described storage element, described control signal and described first frame index, from described these first pass the colour pattern sample and described these second pass the colour pattern sample choose one of them output and be used as an output and pass the colour pattern sample; And
One selected cell is connected to described storage element, according to the address of described pixel in described frame, passs the colour pattern sample from described output, selects weights as output.
17. image color transferring device as claimed in claim 16, it is characterized in that, the initial value of described first frame index equals one first preset value, and when described first frame index during greater than one second preset value, described counter resets to described first preset value with described first frame index.
18. image color transferring device as claimed in claim 16, it is characterized in that, when described control signal equals one first logic state, described storage element is according to described quantization error, pass the colour pattern sample to select described these first outputs wherein of passing the colour pattern sample to be used as described output, when described control signal equals one second logic state, described storage element is passed the colour pattern sample according to described quantization error and described first frame index to select described these second outputs wherein of passing the colour pattern sample to be used as described output.
19. image color transferring device as claimed in claim 18, it is characterized in that, when described control signal equals described first logic state, described storage element is also according to one second frame index or described first frame index, pass the colour pattern sample to select described these first outputs wherein of passing the colour pattern sample to be used as described output, wherein, described second frame index is different from described first frame index.
20. image color transferring device as claimed in claim 19 is characterized in that, the numerical value covering scope of described second frame index is not equal to the numerical value covering scope of described first frame index.
21. image color transferring device as claimed in claim 19, it is characterized in that, described counter is the effective status number of times of the described vertical synchronizing signal of foundation also, to produce described second frame index, and, the initial value of described second frame index equals one the 3rd preset value, and when described second frame index during greater than one the 4th preset value, described counter resets to described the 3rd preset value with described second frame index.
22. image color transferring device as claimed in claim 15 is characterized in that P equals 8, Q equals 6.
23. image color transferring device as claimed in claim 22, it is characterized in that, described these second are passed the colour pattern sample and are divided into 8 groups, each group second is passed the colour pattern sample and is comprised at least two second and pass the colour pattern sample, simultaneously, described first frame index comprise at least two different values with correspond to each the group second described at least two second of passing in the colour pattern sample pass the colour pattern sample.
24. image color transferring device as claimed in claim 22 is characterized in that, the multiple that described these first numbers of passing the colour pattern sample equal 4.
25. image color transferring device as claimed in claim 22 is characterized in that, described these first pass the colour pattern sample and described these second pass the colour pattern sample be 2 * 2 pass the colour moment battle array.
26. image color transferring device as claimed in claim 22 is characterized in that, described data converter is that more described pixel value and described preset range are to produce described control signal.
27. image color transferring device as claimed in claim 26 is characterized in that, described pixel value is to equal the size of described Q bit data or the size of described P bit data.
28. image color transferring device as claimed in claim 26, it is characterized in that, when described pixel value equals described Q bit data, described preset range is from 0 to 61, and when described Q bit data equaled 63, described end value equaled 62, simultaneously, each described first is passed colour pattern sample and each described second and passs described these weights that the colour pattern sample comprised and be integer more than or equal to 0.
29. image color transferring device as claimed in claim 26, it is characterized in that, when described pixel value equals described Q bit data, described preset range is from 2 to 63, and when described Q bit data equaled 0, described end value equaled 1, simultaneously, each described first is passed colour pattern sample and each described second and passs described these weights that the colour pattern sample comprised and be and be less than or equal to 0 integer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100923603A CN101567089B (en) | 2008-04-24 | 2008-04-24 | Image color transferring device and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100923603A CN101567089B (en) | 2008-04-24 | 2008-04-24 | Image color transferring device and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101567089A CN101567089A (en) | 2009-10-28 |
CN101567089B true CN101567089B (en) | 2011-12-28 |
Family
ID=41283234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100923603A Expired - Fee Related CN101567089B (en) | 2008-04-24 | 2008-04-24 | Image color transferring device and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101567089B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270435A (en) * | 2010-06-07 | 2011-12-07 | 联咏科技股份有限公司 | LCD control apparatus and method thereof |
CN104424899B (en) * | 2013-08-30 | 2017-09-08 | 联咏科技股份有限公司 | Liquid crystal display and its image color graded compensation method |
US9640146B2 (en) | 2013-09-04 | 2017-05-02 | Himax Technologies Limited | Method for performing dithering upon both normal mode and self refresh mode in lower transmission data rate and related apparatus |
CN117079587B (en) * | 2023-10-16 | 2024-01-09 | 长春希达电子技术有限公司 | Active Micro-LED uniformity compensation method and display device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1703072A (en) * | 2004-05-28 | 2005-11-30 | 瑞昱半导体股份有限公司 | Dithering method and related apparatus using aperiodic tiling rule |
CN1797507A (en) * | 2004-12-29 | 2006-07-05 | 晨星半导体股份有限公司 | Method and device for eliminating interference noise inside signal source |
CN1856011A (en) * | 2005-03-31 | 2006-11-01 | 晨星半导体股份有限公司 | Clamp control method and related circuit |
CN1946181A (en) * | 2005-03-30 | 2007-04-11 | 日本电气株式会社 | Apparatus and method for image processing, compression, decompression, transfer, transmission, and reception, and program and display device |
CN101047865A (en) * | 2006-03-28 | 2007-10-03 | 联詠科技股份有限公司 | Image process device and method for selecting image color graded |
-
2008
- 2008-04-24 CN CN2008100923603A patent/CN101567089B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1703072A (en) * | 2004-05-28 | 2005-11-30 | 瑞昱半导体股份有限公司 | Dithering method and related apparatus using aperiodic tiling rule |
CN1797507A (en) * | 2004-12-29 | 2006-07-05 | 晨星半导体股份有限公司 | Method and device for eliminating interference noise inside signal source |
CN1946181A (en) * | 2005-03-30 | 2007-04-11 | 日本电气株式会社 | Apparatus and method for image processing, compression, decompression, transfer, transmission, and reception, and program and display device |
CN1856011A (en) * | 2005-03-31 | 2006-11-01 | 晨星半导体股份有限公司 | Clamp control method and related circuit |
CN101047865A (en) * | 2006-03-28 | 2007-10-03 | 联詠科技股份有限公司 | Image process device and method for selecting image color graded |
Also Published As
Publication number | Publication date |
---|---|
CN101567089A (en) | 2009-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104952412B (en) | The driving method and driving device of liquid crystal panel | |
KR102023184B1 (en) | Display device, data processing apparatus and method thereof | |
CN108133692B (en) | Method and device for compensating and adjusting pixel data and liquid crystal display panel | |
CN104537974B (en) | Data acquisition submodule and method, data processing unit, system and display device | |
US5952994A (en) | Method for scaling an image | |
EP0112057B1 (en) | Colour video system using data compression and decompression | |
CN109147644B (en) | Display panel and display method | |
KR100261688B1 (en) | Apparatus for displaying on screen television being created pixel arthmetic by using display scan memory for horizontal scanning | |
CN1012302B (en) | Color image dispaly system | |
CN107342037B (en) | Data conversion method, device and computer readable storage medium | |
EP0264302A2 (en) | Apparatus for processing image signal | |
CN101567089B (en) | Image color transferring device and method thereof | |
CN109461400B (en) | Sub-pixel rendering method and device for converting RGB (red, green and blue) image into RGBW (red, green and blue) image | |
CN105611256B (en) | A kind of Bayer format interpolation method based on gradient and the display device based on FPGA | |
JPH06301364A (en) | Method and device for block parallel error diffusion | |
CN104350743A (en) | Systems, methods, and computer program products for compound image demosaicing and warping | |
CN104240672A (en) | Video processing device and method | |
US11183146B1 (en) | Curvature interpolation for lookup table | |
CN100437746C (en) | Character display apparatus, character display method, character display program, and recording medium | |
CN108875733A (en) | A kind of infrared small target quick extraction system | |
KR20040082601A (en) | Memory access control apparatus | |
CN105427816A (en) | Information processing method and electronic equipment | |
US8681165B2 (en) | Image rotation method and apparatus | |
EP0112056A2 (en) | Colour video system using data compression and decompression | |
CN112289274B (en) | Display method and device |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111228 Termination date: 20170424 |