CN104092918B - The method of video conversion and the circuit for video conversion - Google Patents

The method of video conversion and the circuit for video conversion Download PDF

Info

Publication number
CN104092918B
CN104092918B CN201410315144.6A CN201410315144A CN104092918B CN 104092918 B CN104092918 B CN 104092918B CN 201410315144 A CN201410315144 A CN 201410315144A CN 104092918 B CN104092918 B CN 104092918B
Authority
CN
China
Prior art keywords
quotient
numerical sequence
parameter
pixel
gtg
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
Application number
CN201410315144.6A
Other languages
Chinese (zh)
Other versions
CN104092918A (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.)
Qisda Optronics Suzhou Co Ltd
Qisda Corp
Original Assignee
Qisda Optronics Suzhou Co Ltd
Qisda Corp
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 Qisda Optronics Suzhou Co Ltd, Qisda Corp filed Critical Qisda Optronics Suzhou Co Ltd
Priority to CN201410315144.6A priority Critical patent/CN104092918B/en
Publication of CN104092918A publication Critical patent/CN104092918A/en
Application granted granted Critical
Publication of CN104092918B publication Critical patent/CN104092918B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The present invention is on a kind of image conversion method, and for raw video to be converted into final image, conversion method is included:Orderly halftoning shade is provided, orderly halftoning shade includes the original numerical sequence of the first quantity, determines that the first quantity adjusts numerical sequence by original numerical sequence and adjusting parameter;GTG conversion parameter is determined by original gray-scale series and final GTG series, the grey decision-making of each pixel in raw video divided by GTG conversion parameter are obtained to the quotient and remainder of each pixel of correspondence;Original numerical sequence is divided into the second quantity group, the remainder of each pixel is compared with corresponding adjustment numerical sequence, and parameter is compared according to comparative result determination, if remainder is more than adjustment numerical sequence, determines to compare parameter by corresponding quotient and group;By the quotient of pixel one by one final image is determined with the corresponding parameter that compares.Each original numerical sequence of orderly halftoning shade is divided group by the present invention, improves colour band color lump phenomenon during video conversion.

Description

The method of video conversion and the circuit for video conversion
Technical field
Circuit the present invention relates to a kind of method of video conversion and for video conversion, when especially improving video conversion There is colour band or the image conversion method of color lump phenomenon.
Background technology
Halftoning conversion is a kind of to increase the method for gray scale variation degree using human eye vision illusion.Such technology is It is widely used in the field of image procossing, contains in printing, printing and some display (display) technologies.Due to original The gray scale variation that image is included, it is often more taller than the color change that printing apparatus can be provided.Changed by halftoning, can So that print result visually reduces or simulated real gray scale variation effect.For example, printer may be included only Black ink, but pass through halftoning conversion, it can but simulate the effect of GTG.
Fig. 1 is the schematic diagram of the circuit of the video conversion of prior art.Fig. 1 is refer to, video conversion circuit includes:Half color Adjust shade (half tone mask) 12, positioner 14, comparator 10.Wherein halftoning shade 12 is stored for multidigit Image data is converted to the halftoning numerical sequence of binary image data;Positioner 14 be used for control halftoning shade 12 with Just repeat to read the halftoning numerical sequence corresponding to current pixel threshold value according to image size and location of pixels;Comparator 10 is defeated Enter pixel threshold of the grey decision-making of each pixel with receiving from halftoning shade 12 in image to be compared, and grey decision-making is turned Into binary data.
In operating process, while video conversion starts, positioner 14, which produces one, to be included on level and hangs down The control signal of the information of straight position allows to read the halftoning numerical sequence in ad-hoc location.When being connected to control signal, half Tone shade 12 exports a halftoning numerical sequence corresponding to the pixel threshold of horizontal and vertical position to comparator 10.Compare Device 10 is compared the grey decision-making of input image pixel and the halftoning numerical sequence that is received from halftoning shade 12.If GTG Value is more than or equal to halftoning numerical sequence, the output logic high signal of comparator 10 " 1 ", if grey decision-making is less than halftoning ordinal number It is worth, then the output logic low signal of comparator 10 " 0 ".Then, the binary coding output of comparator 10 is printed on a piece of paper. Fig. 2A shows the grey decision-making of each pixel of raw video, and Fig. 2 B show correspond to pixel threshold half applied by halftoning shade 12 Tone numerical sequence, Fig. 2 C are shown in comparator 100 after threshold value of the pixel that will be shown in Fig. 2A with being shown in Fig. 2 B is compared Binary coding is exported.As being marked in Fig. 2 C, simply input multidigit video conversion into binary image tradition two System processing method reduces the quality of printing so that colour band or color lump (pattern) are produced on the final image printed Phenomenon, produce the uncomfortable result of human eye.
The content of the invention
It is an object of the invention to improve the phenomenon of the colour band occurred during video conversion or color lump.
In order to achieve the above object, the present invention proposes a kind of method of video conversion, and the image conversion method is used for original Beginning video conversion is final image, and the raw video has original gray-scale series, and the final image has final GTG series, should Image conversion method is included:The rapid A of pacing:Orderly half color shade is provided, the orderly halftoning shade has the first quantity original Numerical sequence, determines that the first quantity adjusts numerical sequence by the original numerical sequence of first quantity and adjusting parameter;Step B:By this Original gray-scale series and the final GTG series determine GTG conversion parameter, by the grey decision-making of each pixel in the raw video divided by The GTG conversion parameter is to obtain the quotient and remainder of each pixel of correspondence;Step C:The original numerical sequence of first quantity is divided into Second quantity group, the remainder of each pixel is compared with the corresponding adjustment numerical sequence, and is determined according to comparative result Compare parameter, if wherein the remainder is determined to compare parameter more than the adjustment numerical sequence by the corresponding quotient and the group;Step Rapid D:By the quotient of pixel one by one the final image is determined with the corresponding comparison parameter.
As optional technical scheme, in step A first quantity original numerical sequence be multiplied by respectively the adjusting parameter with Obtain first quantity adjustment numerical sequence.
As optional technical scheme, the original gray-scale series divided by the final GTG series are to obtain the ash in step B Rank conversion parameter.
As optional technical scheme, step C also includes:If the remainder is more than the adjustment numerical sequence, it is somebody's turn to do by corresponding Quotient and the group first determine comparison result, then the comparison result is subtracted the corresponding quotient to obtain the comparison parameter.
As optional technical scheme, step C also includes:If the remainder is more than the adjustment numerical sequence, in the quotient with being somebody's turn to do Searched in the corresponding form of group and determine the comparison result, the quotient and the generation step of the corresponding form of the group are as follows:Step Rapid 1:Using the ascending sequential of the second quantity group as transverse axis, second quantity is defined for P, the scope of the transverse axis For [1, P], using the ascending sequential of the quotient as the longitudinal axis, the final GTG series is defined for Q, the scope of the longitudinal axis is [0, Q-1];And step 2:The quotient is defined for i, if i is 0, each data value is 0 in the form generated;If i is less than Q Odd number, by from left to right be sequentially generated correspondence i form, wherein the data value generated at first be i, at least ultimately produce Data value is (i+1);If i is the even number less than Q, correspondence i form is sequentially generated by what is turned left from the right side, wherein generate at first Data value is i, and the data value at least ultimately produced is (i+1);If it is Q that i, which is equal to each data value in Q, the form generated,.
As optional technical scheme, the product of first quantity and the adjusting parameter is equal to the GTG conversion parameter.
The image conversion method of the present invention, by the way that each original numerical sequence in halftoning shade is divided into a plurality of groups, The grey decision-making divided by GTG conversion parameter of each pixel of raw video are obtained after quotient and remainder, if remainder is more than halftoning shade In corresponding adjustment numerical sequence, then determine to compare parameter according to the corresponding quotient of the remainder and group, and by comparing parameter business Number determines the grey decision-makings of the pixel in final images, handles finer and smoother by the grey decision-making of each pixel of final image, perfect, So that the visual effect of final image is more preferably, the problem of improving colour band in the prior art or serious color lump phenomenon.
In addition, the present invention also proposes a kind of circuit for video conversion, the circuit is used to be converted to raw video most Whole image, the raw video has original gray-scale series, and the final image has final GTG series, and the circuit is included in order partly Tone shade, first processing units, second processing unit, the 3rd processing unit and fourth processing unit.Orderly halftoning shade With the original numerical sequence of the first quantity;First processing units are used for according to the original numerical sequence of first quantity and adjusting parameter Determine that the first quantity adjusts numerical sequence;Second processing unit is used for true according to the original gray-scale series and the final GTG series Determine GTG conversion parameter, and by the grey decision-making divided by the converting image of each pixel of the raw video with obtain corresponding quotient and Remainder;3rd processing unit is used to the original numerical sequence of first quantity being divided into the second quantity group, and each pixel The remainder compares with the corresponding adjustment numerical sequence, and compares parameter according to comparative result determination, if wherein the remainder is more than The adjustment numerical sequence, then determined to compare parameter by the corresponding quotient and the group;Fourth processing unit be used for according to one by one as The quotient of element determines the final image with the corresponding comparison parameter.
As optional technical scheme, the first processing units are joined according to the original numerical sequence of first quantity with the adjustment Several products determines that first quantity adjusts numerical sequence.
As optional technical scheme, the second processing unit is according to the original gray-scale series divided by the final GTG series Business determine the GTG conversion parameter.
As optional technical scheme, when the remainder of each pixel is compared with the corresponding adjustment numerical sequence, if should Remainder is more than the adjustment numerical sequence, then first determines comparison result by the corresponding quotient and the group, then the comparison result is subtracted The corresponding quotient is gone to obtain the comparison parameter.
As optional technical scheme, if the remainder is more than the adjustment numerical sequence, in the quotient and the corresponding table of the group The fixed comparison result of group is searched in lattice, the quotient and the setting of the corresponding form of the group are as follows:(1):By second quantity The ascending sequential of group defines second quantity for P as transverse axis, and the scope of the transverse axis is [1, P], by the quotient by It is small to arrive big sequential as the longitudinal axis, the final GTG series is defined for Q, and the scope of the longitudinal axis is [0, Q-1];(2):Definition should Quotient is i, if i is 0, each data value is 0 in the form generated;If i is the odd number less than Q, by order from left to right Generation correspondence i form, wherein the data value generated at first is i, the data value at least ultimately produced is (i+1);If i be less than Q even number, by the form for being sequentially generated correspondence i turned left from the right side, wherein the data value generated at first is i, is at least ultimately produced Data value be (i+1);If it is Q that i, which is equal to each data value in Q, the form generated,.
The video conversion circuit of the present invention, by the way that each original numerical sequence in halftoning shade is divided into a plurality of groups, The grey decision-making divided by GTG conversion parameter of each pixel of raw video are obtained after quotient and remainder, if remainder is more than halftoning shade In corresponding adjustment numerical sequence, then determine to compare parameter according to the corresponding quotient of the remainder and group, and by comparing parameter business Number determines the grey decision-makings of the pixel in final images, handles finer and smoother by the grey decision-making of each pixel of final image, perfect, So that the visual effect of final image is more preferably, the problem of improving colour band in the prior art or serious color lump phenomenon.
Below in conjunction with the drawings and specific embodiments, the present invention will be described in detail, but not as a limitation of the invention.
Brief description of the drawings
Fig. 1 is the schematic diagram of the circuit of the video conversion of prior art;
Fig. 2A is the schematic diagram of the grey decision-making of each pixel of image for prior art video conversion Central Plains;
Fig. 2 B are the schematic diagram of the halftoning numerical sequence of halftoning shade in prior art video conversion;
Fig. 2 C are binary-coded schematic diagram after Fig. 2A is compared with Fig. 2 B in prior art video conversion;
Fig. 3 A are the circuit diagram according to one embodiment of the invention video conversion;
Fig. 3 B are the flow chart of the video conversion of the present invention;
Fig. 4 A are the schematic diagram of an embodiment of orderly halftoning shade;
Fig. 4 B are showing for the adjustment numerical sequence that is determined jointly with adjusting parameter of original numerical sequence in orderly halftoning shade It is intended to;
Fig. 5 A are the schematic diagram of the grey decision-making of each pixel corresponding to orderly halftoning shade;
The schematic diagram for the quotient that Fig. 5 B obtain for the grey decision-making divided by GTG conversion parameter of each pixel in raw video;
The schematic diagram for the remainder that Fig. 5 C obtain for the grey decision-making divided by GTG conversion parameter of each pixel in raw video;
Fig. 6 is the schematic diagram after original numerical sequence point group in orderly halftoning shade;
Fig. 7 is the corresponding schematic diagram for comparing parameter of each pixel;
Fig. 8 is the schematic diagram of the grey decision-making of each pixel of final image;
Fig. 9 A are the generation schematic diagram of corresponding each data value when quotient is 1;
Fig. 9 B are the generation schematic diagram of corresponding each data value when quotient is 2;
Fig. 9 C are the generation schematic diagram of corresponding each data value when quotient is 3;
Fig. 9 D are the generation schematic diagram of corresponding each data value when quotient is 4;
Figure 10 is the schematic diagram of the reverted image halftoning shade obtained after halftoning shade reverted image in Fig. 4 A.
Embodiment
Fig. 3 A are refer to, Fig. 3 A are according to one embodiment of present invention in the circuit of video conversion.As shown in Figure 3A, shadow As change-over circuit includes orderly halftoning shade 100, positioner 200, first processing units 300, second processing unit 400th, the 3rd processing unit 500 and fourth processing unit 600.Orderly halftoning shade 100 is used to store corresponding to each pixel Original numerical sequence, positioner 200 is used for the original ordinal number for controlling orderly halftoning shade 100 to export each pixel with repetition Value.
First processing units 300 are used to determine adjustment numerical sequence according to original numerical sequence and adjusting parameter;Second processing list Member 400 is used to determine GTG conversion parameter Z according to the original gray-scale series of raw video and the final GTG series of final image, And by the grey decision-making G divided by GTG conversion parameter Z of each pixel of raw video to obtain corresponding quotient and remainder;3rd processing Unit 500 is used to the original numerical sequence of orderly halftoning shade 100 being divided into the second quantity group, and by the remainder of each pixel It is compared with corresponding adjustment numerical sequence, and parameter is compared according to comparative result determination, if wherein remainder is more than adjustment ordinal number Value, then determined to compare parameter by corresponding quotient and group;Fourth processing unit 600 be used for according to the quotient of pixel one by one with it is right The comparison parameter answered determines final image.
The circuit of the video conversion of the present invention, may be disposed in printer, projector or electronic display unit, with printer Exemplified by, if raw video is 8 images, and final image is 2 images, by video conversion circuit by the raw video of 8 Be converted to the final image of 2, and during video conversion, do not use by the grey decision-making of each pixel directly with halftoning shade The mode that is compared of numerical sequence, it is also not direct according to the comparative result between the numerical sequence of depression of order remainder and halftoning shade Draw and compare parameter, but by being closed corresponding with the foundation of depression of order quotient after each numerical sequence in orderly halftoning shade point group System, finds comparison result further according to the comparative result of depression of order remainder and orderly halftoning shade, is come again really according to comparison result Surely compare parameter, thus the grey decision-making of each pixel of final image is handled finer and smoother, it is perfect so that final image is regarded Feel better, more improve the problem of there is colour band or color lump (pattern) in final image in the prior art.
It refer to the flow chart that Fig. 3 A and Fig. 3 B, Fig. 3 B are image conversion method.The image conversion method of the present invention is used for Raw video is converted into final image, raw video has original gray-scale series, and final image has final GTG series.Shadow It is as follows as the step of conversion:
Step A:There is provided orderly halftoning shade as shown in S100 in Fig. 3 B, the orderly halftoning shade includes the first number The original numerical sequence of amount, determines that the first quantity adjusts numerical sequence by the original numerical sequence of first quantity with adjusting parameter T;
Step B:As shown in S200 in Fig. 3 B, GTG conversion ginseng is determined by the original gray-scale series and the final GTG series Number, by the grey decision-making of each pixel in the raw video divided by the GTG conversion parameter to obtain the quotient of each pixel of correspondence and remaining Number;
Step C:As shown in S300 in Fig. 3 B, the original numerical sequence of first quantity is divided into the second quantity group, will The remainder of each pixel compares with the corresponding adjustment numerical sequence, and compares parameter according to comparative result determination, if wherein should Remainder is more than the adjustment numerical sequence, then determines to compare parameter by the corresponding quotient and the group;And
Step D:As shown in S400 in Fig. 3 B, determine that this is final with the corresponding comparison parameter by the quotient of pixel one by one Image.
In practical operation, adjustment numerical sequence can be determined according to the product of original numerical sequence and adjusting parameter;Can also be according to original Business obtained by the original gray-scale series of beginning image divided by the final GTG series of final image determines GTG conversion parameter;Also may be used According to the quotient of pixel one by one with it is corresponding comparing parameter and determine the grey decision-making of respective pixel in final image, then determine Final image.
In practical operation, raw video can be the image being shown on the screen of electronic display unit, be beaten when needing to pass through When raw video is printed or cast out raw video by projector by print machine, due to the ash of electronic display unit Class number is different from the GTG series of printer, then needs progress video conversion to be described in detail with reference to specific embodiment State in each step, the present embodiment, calculate and express for convenience, set the original gray-scale series of raw video as 256 ranks (i.e. one Individual pixel can be expressed by 0~256 gray level), and the final GTG series of final image is 4 rank that (i.e. one pixel can be by 0,1,2,3, or 4 gray level expresses).In practical operation, user can be finally grey according to specific original gray-scale sum of series Class number calculates parameters value, is not 256 ranks using above-mentioned original gray-scale series and final GTG series is that 4 ranks are used as limit System.
Step A is carried out first there is provided orderly halftoning shade 100, and orderly halftoning shade 100 is former comprising the first quantity Beginning numerical sequence, determines that the first quantity adjusts numerical sequence by the original numerical sequence of the first quantity with adjusting parameter T.
Fig. 4 A are refer to, Fig. 4 A are the schematic diagram of an embodiment of orderly halftoning shade.In the present embodiment, orderly half color The matrix that shade is 4*4 is adjusted, i.e. the first quantity is 16, and the generation type on orderly halftoning shade can refer to notification number and be I359389 TaiWan, China patent.
It refer to Fig. 4 B, the adjustment that Fig. 4 B are determined jointly for the original numerical sequence in orderly halftoning shade and adjusting parameter The schematic diagram of numerical sequence.In practical operation, adjustment numerical sequence can be determined by original numerical sequence and adjusting parameter T product, this reality Apply in example, adjusting parameter T is 4.
Then step B is carried out, GTG conversion parameter Z is determined by original gray-scale series and final GTG series, by original shadow The grey decision-making G divided by GTG conversion parameter Z of each pixel are to obtain the quotient and remainder of each pixel of correspondence as in.
In the present embodiment, the original gray-scale series of raw video is 256 ranks, while the final GTG series of final image is 4 ranks.In practical operation, GTG conversion parameter is typically used as by the business obtained by original gray-scale series divided by final GTG series Z, therefore the GTG conversion parameter Z in the present embodiment is 256/4=64.General, adjusting parameter T and the product of the first quantity are equal to In GTG conversion parameter Z, the present embodiment, orderly halftoning shade 100 has 16 original numerical sequences, and adjusting parameter Z is 4, ash Rank conversion parameter Z is 64.
Determine after GTG conversion parameter Z, it is necessary to the grey decision-making of each parameter is divided by with GTG conversion parameter Z respectively, It refer in Fig. 5 A, the schematic diagram of the grey decision-making of each pixels of Fig. 5 A corresponding to orderly halftoning shade, the present embodiment, in order Halftoning shade 100 has 16 original numerical sequences, therefore corresponds to 16 pixels, and as shown in Figure 5A, the present embodiment is corresponding 16 The grey decision-making of pixel is 96.Fig. 5 B and Fig. 5 C, Fig. 5 B is refer to for the grey decision-making divided by GTG of each pixel in raw video to turn The schematic diagram for the quotient that parameter is obtained is changed, Fig. 5 C are that the grey decision-making divided by GTG conversion parameter of each pixel in raw video are obtained In the schematic diagram of remainder, the present embodiment, the quotient obtained after the grey decision-making divided by GTG conversion parameter Z of each pixel is 1, and institute Obtained remainder is 32.
Next step C is carried out:The original numerical sequence of first quantity is divided into the second quantity group, by each pixel The remainder compared with the corresponding adjustment numerical sequence, and according to comparative result determine compare parameter, if wherein the remainder is big In the adjustment numerical sequence, then determine to compare parameter by the corresponding quotient and the group.
In the present embodiment, 16 original numerical sequences in orderly halftoning shade 100 are divided into 3 groups, specific distribution It is as follows:Original numerical sequence 1,2,3,4 and 5 be the first group, original numerical sequence 6,7,8,9,10 and 11 be the second group, 12,13, 14th, 15 and 16 be the 3rd group.Fig. 6 is refer to, Fig. 6 is the signal after original numerical sequence point group in orderly halftoning shade Figure.
After Fen Hao groups, the remainder of each pixel of raw video is compared with corresponding adjustment numerical sequence, and according to Comparative result determines to compare parameter.In the present embodiment, if remainder is more than corresponding adjustment numerical sequence, by corresponding quotient and group Parameter is compared in group determination, if remainder is less than or equal to corresponding adjustment numerical sequence, will compare parameter and is defined as 0.And when remainder is big When corresponding adjustment numerical sequence, the determination comparison result is searched in corresponding form of the quotient with group, then by comparison result Subtract corresponding quotient to obtain comparing parameter, refer to Fig. 7, Fig. 7 is the corresponding schematic diagram for comparing parameter of each pixel.Quotient Corresponding form with group is as shown in table 1 below:
First group Second group 3rd group
0 0 0 0
1 1 1 2
2 3 2 2
3 3 3 4
4 4 4 4
Table 1
Finally carry out step D:By the quotient of pixel one by one final image is determined with the corresponding parameter that compares.
Fig. 8 is refer to, Fig. 8 is the schematic diagram of the grey decision-making of each pixel of final image.In the present embodiment, by quotient with it is right The grey decision-making with each pixel in the final image of determination for the comparison parameter answered, then determines final image.As seen from Figure 8, The grey decision-making of 16 pixels of raw video herein is identical, according to traditional method compared merely, then will appear from herein complete White or completely black phenomenon, from the angle of audience, it will be seen that color lump (pattern), but the side of the video conversion by the present invention Method is carried out after video conversion, and each grey decision-making herein is interspersed, visual effect more preferably, so as to improve asking for colour band or color lump Topic.
The forming step of quotient described in detail below and the corresponding form of group.
Step 1:Using the ascending sequential of a plurality of groups as transverse axis, second quantity is defined for P, the model of transverse axis Enclose for [1, P], using the ascending sequential of quotient as the longitudinal axis, define the final GTG series for Q, the scope of the longitudinal axis is [0, Q].
In the present embodiment, due to original numerical sequence has been divided into three groups, by the first group, the second group and the 3rd group The ascending sequential of group is [1,3] as the scope of transverse axis, i.e. transverse axis, then using the ascending sequential of quotient as vertical Axle, the scope of the longitudinal axis is [0,4].Because the original gray-scale series of raw video is 256 ranks, the grey decision-making of each pixel (can also claim For gray level) it is up to 256, minimum 0, and GTG conversion parameter is 64, therefore the grey decision-making divided by GTG of each pixel conversion ginseng Business after number Z has five kinds of situations:0th, 1,2,3 or 4.
Step 2:The quotient is defined for i, if i is 0, each data value generated is 0;
If i is the odd number less than Q, by the form for being sequentially generated correspondence i from left to right, wherein the data value generated at first For i, the data value at least ultimately produced is (i+1);
If i is the even number less than Q, by the form for being sequentially generated correspondence i turned left from the right side, wherein the data value generated at first For i, the data value at least ultimately produced is (i+1);
If it is Q that i, which is equal to each data value in Q, the form generated,.
Fig. 9 A are refer to, Fig. 9 A are the generation schematic diagram of corresponding each data value when quotient is 1, Fig. 9 B are quotient when being 2 The generation schematic diagram of corresponding each data value, Fig. 9 C are the generation schematic diagram of corresponding each data value when quotient is 3.Shown in Fig. 9 A Be from quotient be that 1 remainder is 1 to the result that quotient is that 1 remainder is 63, as shown in Figure 9 A, when quotient is 1, to be less than Q due to 1 The odd number of (in the present embodiment, final GTG series be 4 ranks), thus according to from left to right be sequentially generated corresponding each data value, What is wherein generated at first is 1 (first generating the corresponding data value of the first group), then regenerates 1 and (regenerates the second group Corresponding data value), ultimately produce 2 (ultimately producing the corresponding data value of the 3rd group), that is, quotient is when being 1, first group The corresponding comparison result of group is 1, and the corresponding comparison result of the second group is 1, and the corresponding comparison result of the 3rd group is 2.
In the present embodiment, because group is three, it is preferred that the data value only ultimately produced is 2 (i.e. equal to i+1), real In the operation of border, user can also have the original numerical sequence in other selections, such as orderly halftoning shade 100 more, will be orderly 100 points of halftoning shade is six groups,, can be by preceding 2/3rds number when generating data if now corresponding quotient is i It is set as i according to value (i.e. preceding 4 data values), then 1/3rd data value (2 two data values after i.e.) is set as (i+1), Determined, be not limited with embodiment according to the actual demand of user.
As shown in Figure 9 B, shown in Fig. 9 B be from quotient be 2 remainders be 1 to the result that quotient is that 2 remainders are 63, quotient For 2 when, due to 2 being less than Q (in the present embodiment, final GTG series be 4 ranks) even number, according to being sequentially generated for being turned left from the right side Corresponding each data value, wherein the data value 2 generated at first is the data value ultimately produced when quotient is 1 (generates at first The corresponding data value of three groups), 2 (regenerating the corresponding data value of the second group) are then generated, 3 are ultimately produced (i.e. last Generate the corresponding data value of the 3rd group), that is, quotient be 2 when, the corresponding comparison result of the first group be 3, the second group pair The comparison result answered is 2, and the corresponding comparison result of the 3rd group is 2.
It should be noted that quotient is 1 and when quotient is 2, the order that both generate corresponding each data value be it is opposite, In practical operation, when the halftoning shade 100 in by Fig. 4 A defines the generation signal of each data value in table 1 when quotient is 1 When scheming as shown in Figure 9 A, needed when forming the schematic diagram of corresponding each data value when quotient as shown in Figure 9 B is 2 by Fig. 4 A In halftoning shade carry out reverted image because reverted image halftoning shade can be obtained by giving reverted image by the halftoning shade in Fig. 4 A, Each such group just meeting on the contrary, finally just having the result in Fig. 9 B.As shown in Figure 10, Figure 10 is halftoning shade in Fig. 4 A The schematic diagram of the reverted image halftoning shade obtained after reverted image, and calculation that reverted image halftoning shade in Figure 10 is carried out and root The calculation carried out according to the halftoning shade 100 in Fig. 4 A is similar, therefore does not repeat separately herein.
As shown in Figure 9 C, shown in Fig. 9 C be from quotient be that 3 remainders are that 1 to the result that quotient is that 3 remainders are 63, quotient is When 3, due to 3 being less than Q (in the present embodiment, final GTG series be 4 ranks) odd number, according to being sequentially generated pair from left to right Each data value answered, wherein the data value 3 generated at first is the data value ultimately produced when quotient is 2 (generates first at first The corresponding data value of group), 3 (i.e. and then the corresponding data values of the second group of generation) are then generated, 4 are ultimately generated (i.e. last Generate the corresponding data value of the 3rd group), that is, quotient be 3 when, the corresponding comparing result of the first group be 3, the second group pair The comparison result answered is 3, and the corresponding comparison result of the 3rd group is 4.
From the foregoing, when quotient is 1 and 3, the generation direction of each data value is identical, and when quotient is 2, then each data The generation direction of value with it is foregoing both on the contrary, that is, when quotient be odd number when, be by the erect image halftoning shade 100 in Fig. 4 A The generation direction of each data value corresponding to quotient is determined, and is then by the reverted image in Figure 10 half when quotient is even number Tone shade determines the generation direction of each data value corresponding to quotient.
Fig. 9 D are refer to, Fig. 9 D are the generation schematic diagram of corresponding each data value when quotient is 4.In the present embodiment, due to 4 For even number, corresponding each data value is sequentially generated according to what is turned left from the right side, wherein the data value 4 generated at first is quotient when being 3 The data value (i.e. the corresponding data value of the 3rd group of generation at first) ultimately produced, then generates 4 and (then generates the second group Corresponding data value), ultimately generate 4 (ultimately producing the corresponding data value of the first group).In other words, in the present embodiment, When quotient is 4, each data value is 4 in the form of generation.That is, quotient be 4 when, the corresponding comparison result of the first group is 4, the corresponding comparison result of the second group is 4, and the corresponding comparison result of the 3rd group is 4.In the present embodiment, due to final GTG Series is 4, and 4 be even number, therefore, when quotient is equal to final GTG series (i.e. equal to 4), according to being sequentially generated for being turned left from the right side Corresponding each data value, and in practical operation, if final GTG series is odd number for 5,5, then when quotient is equal to final gray scale levels When number is (i.e. equal to 5), then according to the corresponding each data value that is sequentially generated from left to right, and each data value is equal in the form of generation For 5.That is, the parity of final GTG series is different, and the order of generation data value is also differed, and when quotient is equal to final GTG During the value of series, what kind of is sequentially generated corresponding each data value according to, depending on the parity of final GTG series in itself.
The step of being generated according to above-mentioned table 1, it is in other embodiment, such as and final when original gray-scale series is 256 ranks When GTG series is 8 ranks (i.e. one pixel can be expressed by 0,1,2,3,4,5,6,7 or 8 gray level), if also using above-mentioned Orderly halftoning shade 100 (i.e. with 16 original numerical sequences, and this 16 original numerical sequences being divided into three groups), then Quotient and the corresponding form of group are as shown in table 2 below, and user can determine according to the actual conditions of raw video and final image Correspondence form, is not limited with cited embodiment.
First group Second group 3rd group
0 0 0 0
1 1 1 2
2 3 2 2
3 3 3 4
4 5 4 4
5 5 5 6
6 7 6 6
7 7 7 8
8 8 8 8
Table 2
The method and circuit for video conversion of the video conversion of the present invention, by will be each original in halftoning shade Numerical sequence is divided into a plurality of groups, and the grey decision-making divided by GTG conversion parameter of each pixel of raw video are obtained into quotient and remainder Afterwards, if remainder is more than corresponding adjustment numerical sequence in halftoning shade, determined according to the corresponding quotient of the remainder and group Compare parameter, and the grey decision-making of the pixel in final image is determined by comparing parameter quotient, by the ash of each pixel of final image Rank value handles finer and smoother, perfect so that the visual effect of final image more preferably, improves colour band in the prior art or color lump The problem of phenomenon is serious.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence Various corresponding changes and deformation, but these corresponding changes and deformation can be made according to the present invention by knowing those skilled in the art The protection domain of appended claims of the invention should all be belonged to.

Claims (3)

1. a kind of image conversion method, for raw video to be converted into final image, the raw video has original gray-scale level Number, the final image has final GTG series, it is characterised in that the image conversion method is included:
Step A:There is provided orderly half color shade, the orderly halftoning shade has the first quantity original numerical sequence, by this first The original numerical sequence of quantity is multiplied by adjusting parameter to obtain the first quantity adjustment numerical sequence respectively;
Step B:By the original gray-scale series divided by the final GTG series to obtain GTG conversion parameter, by the raw video The grey decision-making of each pixel divided by the GTG conversion parameter are to obtain the quotient and remainder of each pixel of correspondence;
Step C:First quantity original numerical sequence is divided into the second quantity group, by remainder of each pixel and corresponding The adjustment numerical sequence compares, and according to comparative result determine compare parameter, if wherein the remainder be more than the adjustment numerical sequence, In corresponding form of the quotient with the group search determine comparison result, then by the comparison result subtract the corresponding quotient with The comparison parameter is obtained, the quotient and the generation step of the corresponding form of the group are as follows:
Step 1:Using the ascending sequential of the second quantity group as transverse axis, second quantity is defined for P, the transverse axis Scope be [1, P], using the ascending sequential of the quotient as the longitudinal axis, define the final GTG series for Q, the longitudinal axis Scope is [0, Q-1];And
Step 2:The quotient is defined for i, if i is 0, each data value is 0 in the form generated;
If i is the odd number less than Q, by the form for being sequentially generated correspondence i from left to right, wherein the data value generated at first is i, The data value at least ultimately produced is (i+1);
If i is the even number less than Q, by the form for being sequentially generated correspondence i turned left from the right side, wherein the data value generated at first is i, The data value at least ultimately produced is (i+1);
If it is Q that i, which is equal to each data value in Q, the form generated,;And
Step D:By the quotient of pixel one by one the final image is determined with the corresponding comparison parameter.
2. image conversion method according to claim 1, it is characterised in that:The product of first quantity and the adjusting parameter Equal to the GTG conversion parameter.
3. a kind of circuit for video conversion, the circuit is used to raw video being converted to final image, raw video tool There is original gray-scale series, the final image has final GTG series, it is characterised in that the circuit includes:
Orderly halftoning shade, with the original numerical sequence of the first quantity;
First processing units, for determining that the first quantity adjusts sequence according to the original numerical sequence of first quantity and adjusting parameter Numerical value;
Second processing unit, GTG conversion parameter is determined according to the business of the original gray-scale series divided by the final GTG series, and By the grey decision-making of each pixel of the raw video divided by the GTG conversion parameter to obtain corresponding quotient and remainder;
3rd processing unit, for the original numerical sequence of first quantity to be divided into the second quantity group, and each pixel The remainder compares with the corresponding adjustment numerical sequence, and compares parameter according to comparative result determination, if wherein the remainder is more than The adjustment numerical sequence, then determined to compare parameter by the corresponding quotient and the group;And
Fourth processing unit, for determining the final image with the corresponding comparison parameter according to quotient of pixel one by one;
Wherein, the first processing units according to the product of first quantity original numerical sequence and the adjusting parameter determine this first Quantity adjusts numerical sequence;
When the remainder of each pixel is compared with the corresponding adjustment numerical sequence, if the remainder is more than the adjustment numerical sequence, In corresponding form of the quotient with the group search determine comparison result, then by the comparison result subtract the corresponding quotient with The comparison parameter is obtained, the quotient and the setting of the corresponding form of the group are as follows:
(1):Using the ascending sequential of the second quantity group as transverse axis, second quantity is defined for P, the transverse axis Scope is [1, P], using the ascending sequential of the quotient as the longitudinal axis, defines the final GTG series for Q, the model of the longitudinal axis Enclose for [0, Q-1];
(2):The quotient is defined for i, if i is 0, each data value is 0 in the form generated;
If i is the odd number less than Q, by the form for being sequentially generated correspondence i from left to right, wherein the data value generated at first is i, The data value at least ultimately produced is (i+1);
If i is the even number less than Q, by the form for being sequentially generated correspondence i turned left from the right side, wherein the data value generated at first is i, The data value at least ultimately produced is (i+1);
If it is Q that i, which is equal to each data value in Q, the form generated,.
CN201410315144.6A 2014-07-03 2014-07-03 The method of video conversion and the circuit for video conversion Expired - Fee Related CN104092918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410315144.6A CN104092918B (en) 2014-07-03 2014-07-03 The method of video conversion and the circuit for video conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410315144.6A CN104092918B (en) 2014-07-03 2014-07-03 The method of video conversion and the circuit for video conversion

Publications (2)

Publication Number Publication Date
CN104092918A CN104092918A (en) 2014-10-08
CN104092918B true CN104092918B (en) 2017-09-29

Family

ID=51640598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410315144.6A Expired - Fee Related CN104092918B (en) 2014-07-03 2014-07-03 The method of video conversion and the circuit for video conversion

Country Status (1)

Country Link
CN (1) CN104092918B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063945B (en) * 2020-07-31 2023-11-03 青岛海信移动通信技术有限公司 Mobile terminal and image display method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002112032A (en) * 2000-10-04 2002-04-12 Dainippon Printing Co Ltd Method of manufacturing halftone mask, halftone image, and printed matter
US7245778B2 (en) * 2002-11-12 2007-07-17 Rochester Institute Of Technology Methods, devices and systems for compressing images
CN1321366C (en) * 2004-03-16 2007-06-13 致伸科技股份有限公司 Method of synchronous conversion image processing for printers
CN101600039B (en) * 2008-06-05 2011-10-05 佳世达科技股份有限公司 Method for converting halftone image, printing method and method for producing halftone shield
US20090324071A1 (en) * 2008-06-30 2009-12-31 Shengqi Yang Color enhancement for graphic images

Also Published As

Publication number Publication date
CN104092918A (en) 2014-10-08

Similar Documents

Publication Publication Date Title
JP5889431B2 (en) Image processing apparatus and image processing method
CN102768754B (en) Method and device for implementation of picture verification code
CN104021767B (en) Gamma curve method of adjustment and its gal code voltage generator and display device
US7889389B2 (en) Printing method and apparatus
CN100375987C (en) Method for treating color plasma display screen grey
CN105575314B (en) A kind of grayscale processing method, grayscale processing unit and display device
CN111754928B (en) Display screen layered correction method and device
US8285071B2 (en) Content-adaptive contrast improving method and apparatus for digital image
CN105678707B (en) A kind of image processing method based on rotation shake matrix disposal
CN105282392A (en) Image processing apparatus, image processing method and program
CN104795052B (en) RGBW signal conversion methods and system
CN108933933A (en) A kind of video signal processing method and device
US8107756B2 (en) Digital image tone remapping method and apparatus
JP2007142847A (en) High-definition halftone processing
JP2016503513A5 (en)
CN107564461A (en) Scanning card, LED display control system and image processing method
CN104092918B (en) The method of video conversion and the circuit for video conversion
KR100648923B1 (en) System and method for forming image
JP2007136825A5 (en)
CN104505053B (en) Show signal conversion method and device
TW201503051A (en) Image processing method and anti-saturation method for image data and image processing device
JP3801364B2 (en) Distributed PWM gradation processing apparatus and printer
US7593135B2 (en) Digital image multitoning method
CN115390774A (en) Rapid printing method based on portable thermal printer and storage medium
CN103051904A (en) Digital half-tone video processing system and method based on floating pixel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170929

Termination date: 20180703

CF01 Termination of patent right due to non-payment of annual fee