The specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Embodiment 1
The embodiment of the invention provides the control method of the total China ink amount of a kind of printer, and as shown in Figure 1, this method comprises:
101, obtain the total China ink amount of pixel output control threshold value; The total China ink amount of described pixel output threshold value is in the survey map, and total China ink of total China ink amount intermediate value minimum of color value maximum of choosing from each time look and the pixel correspondence of not piling China ink is measured.
102, after obtaining described total China ink amount control threshold value, judge that whether pixel exports required total China ink amount greater than described total China ink amount control threshold value in the printed drawings; If pixel is exported required total China ink amount greater than described total China ink amount control threshold value in the described printed drawings, then execution in step 103; If pixel is exported required total China ink amount and is not more than described total China ink amount control threshold value in the described printed drawings, then execution in step 104.
Wherein, when pixel was exported required total China ink amount for described pixel output in the described printed drawings, each passage of described multicolor printer was for printing the China ink amount sum that described pixel should be exported.
103, show if export the described pixel of required total China ink amount printing according to described pixel, the collocation of the ink droplet that uses when then printing described pixel is unreasonable, be easy to cause piling black problem, so when pixel in the printed drawings was exported required total China ink amount greater than described total China ink amount control threshold value, and pixel value that required total China ink amount less than described total China ink amount control threshold value nearest with the described pixel of distance replaced described pixel value; So that make the image gradual change of printing level and smooth, and do not pile China ink.
104, show that the collocation of the ink droplet that uses when printing described pixel is reasonable, keep described pixel value constant, print described pixel, can not produce the black phenomenon of heap according to total China ink amount that described pixel output is required.
The embodiment of the invention provides the control device of the total China ink amount of a kind of printer, and as shown in Figure 2, this device comprises: acquiring unit 21, judging unit 22 and adjustment unit 23.
When the total ink-amount control device of described printer is controlled in the described printer prints process total China ink amount, at first obtain the total China ink amount of pixel output control threshold value by described acquiring unit 21; The total China ink amount of described pixel output threshold value is in the survey map, and total China ink of total China ink amount intermediate value minimum of color value maximum of choosing from each time look and the pixel correspondence of not piling China ink is measured.
After described acquiring unit 21 obtained described total China ink amount control threshold value, described judging unit 22 judged that whether pixel exports required total China ink amount greater than described total China ink amount control threshold value in the printed drawings; If described judging unit 22 judges that pixel is exported required total China ink amount greater than described total China ink amount control threshold value in the described printed drawings, then nearest the and pixel value that required total China ink amount is controlled threshold value less than described total China ink amount of the described pixel of adjustment unit 23 usefulness distance replaces described pixel value; If described judging unit 22 judges that pixel is exported required total China ink amount in the described printed drawings and is not more than described total China ink amount control threshold value that then described adjustment unit 23 also is used to keep described pixel value constant.
In the embodiment of the invention, when the printer prints pixel, judge that whether described pixel export required total China ink amount greater than total China ink amount control threshold value of obtaining, if pixel is exported required total China ink amount greater than described total black amount control threshold value in the described printed drawings, then nearest with the described pixel of distance and pixel value that required total China ink is measured less than described total China ink amount control threshold value replaces described pixel value; Owing to replace the pixel value of described pixel and be value with the nearest pixel of the pixel distance of pre-printing, and total China ink amount of exporting is no more than the promptly total China ink amount of the value control threshold value that produces the heap China ink, thereby avoided the control unreasonable phenomenon that heap China ink occur of the pixel of pre-printing, and made the image gradual change of printing level and smooth owing to total China ink amount.
Embodiment 2
The embodiment of the invention provides the control method of the total China ink amount of a kind of printer, and as shown in Figure 3, this method comprises:
301, obtain the survey map of printer output, described survey map comprises the pixel of look, secondary look, tertiary colo(u)r(s) and four looks; Wherein the straight line that comprises different angles on each pixel is always or usually as specified, and comprises the straight lines of horizontal, vertical and 45 degree, and described straight line is a white.
302, the maximum and pixel of not piling China ink of the value of getting colors respectively from described each time look; Wherein the value of getting colors is maximum and when not piling the pixel of China ink respectively from described each time look, chooses according to following rule; Be specially: not creeping, do not pile that China ink, white fine rule are not flooded by ink-soaked and gross distortion and phenomenon of osmosis do not take place for high-visible, back side of paper.
303, from a described look, secondary look, tertiary colo(u)r(s) and four looks, choose respectively described color value maximum and do not pile the pixel of China ink after, calculate total China ink amount of described selected pixels; The total black measuring of the described selected pixels of described calculating comprises:
Calculate the gray value of each look version in the described pixel, m according to following formula
i=n
i/ 255*x
i, m wherein
iBe the gray value of i look version, n
iBe the maximum gray scale number of printing ink in i the look version, x
iBe the actual input gray level value of i look printing ink in the survey map, 255 is the maximum input gray level value of survey map, i=1 wherein, and 2,--, p, p is for printing the port number of the used printing ink of described pixel;
After calculating described gray value, calculate the actual China ink amount of each look version in the described selected pixels: t according to following formula
i=(r
i+ 1-m
i) * l
Ri+ (m
i-r
i) * l
(r+1) i, t wherein
iBe the actual China ink amount of i look version, l
RiBe the China ink amount that the printing ink of i passage of equipment is exported during for r at gray value, unit is a microlitre, l
(r+1) iBe the China ink amount that i passage printing ink of equipment is exported during for r+1 at gray value, m
iBe the gray value of i look version, r
iBe m
iData after rounding; Wherein, l
RiAnd l
(r+1) iValue can obtain by searching described equipment operating manual or other data.
In calculating described selected pixels, after the actual China ink amount of look version, the actual China ink amount addition of each look version that described pixel comprised is obtained total China ink amount of described selected pixels.
304, from total China ink amount of described selected pixels, choose minimum total China ink amount as total China ink amount control threshold value.
305, after obtaining described total China ink amount control threshold value, judge that whether pixel exports required total China ink amount greater than described total China ink amount control threshold value in the printed drawings; If pixel is exported required total China ink amount greater than described total China ink amount control threshold value in the described printed drawings, then execution in step 306; If pixel is exported required total China ink amount and is not more than described total China ink amount control threshold value in the described printed drawings, then execution in step 307.
Wherein, when pixel was exported required total China ink amount for described pixel output in the described printed drawings, each passage of described printer was printed the China ink amount sum that described pixel should be exported.
306, show if export the described pixel of required total China ink amount printing according to described pixel, the collocation of the ink droplet that uses when then printing described pixel is unreasonable, be easy to cause piling black problem, so when pixel in the printed drawings was exported required total China ink amount greater than described total China ink amount control threshold value, and pixel value that required total China ink amount less than described total China ink amount control threshold value nearest with the described pixel of distance replaced described pixel value; So that make the image gradual change of printing level and smooth, and do not pile China ink.
307, show that the collocation of the ink droplet that uses when printing described pixel is reasonable, keep described pixel value constant, print described pixel, can not produce the black phenomenon of heap according to total China ink amount that described pixel output is required.
The embodiment of the invention provides the control device of the total China ink amount of a kind of printer, and as shown in Figure 4, this device comprises: acquiring unit 41, judging unit 42 and adjustment unit 43.
When the control device of the total China ink amount of described printer is controlled the total China ink amount print image of described printer, at first obtain the total China ink amount of pixel output control threshold value by described acquiring unit 41; The total China ink amount of described pixel output threshold value is in the survey map, and total China ink of total China ink amount intermediate value minimum of color value maximum of choosing from each time look and the pixel correspondence of not piling China ink is measured.
After described acquiring unit 41 obtained described total China ink amount control threshold value, described judging unit 42 judged that whether pixel exports required total China ink amount greater than described total China ink amount control threshold value in the printed drawings; If described judging unit 42 judges that pixel is exported required total China ink amount greater than described total black amount control threshold value in the described printed drawings, then adjustment unit 43 is used for pixel value nearest with the described pixel of distance and that required total China ink is measured less than described total China ink amount control threshold value and replaces described pixel value; If described judging unit 42 judges that pixel is exported required total China ink amount in the described printed drawings and is not more than described total China ink amount control threshold value that then described adjustment unit 43 also is used to keep described pixel value constant.
Wherein, described acquiring unit 41 comprises: output module 411, choose module 412 and computing module 413.
Described acquiring unit 41 obtains the survey map of printer output by output module 411 when obtaining the total China ink amount of pixel output control threshold value, described survey map comprises the pixel of look, secondary look, tertiary colo(u)r(s) and four looks; Wherein, the straight line that comprises different angles on each pixel is always or usually as specified, and comprises the straight lines of horizontal, vertical and 45 degree, and described straight line is a white
Behind described output module 411 output survey maps, the described module 412 of choosing is used for from the pixel of a look, secondary look, tertiary colo(u)r(s) and four looks of the survey map of described output module 411 outputs, and the value of getting colors is maximum and do not pile black pixel respectively; Described choose module 412 choose described color value maximum and do not pile the pixel of China ink after, described computing module 413 is used to calculate total China ink amount of described selected pixels; Calculate total China ink amount of described selected pixels at described computing module 413 after, the described module 412 of choosing also is used for choosing minimum total China ink amount as total China ink amount control threshold value from total China ink amount of described pixel.
Wherein, the described module 412 of choosing is the pixel of a look, secondary look, tertiary colo(u)r(s) and four looks of the survey map of exporting from described output module 411, the value of getting colors is maximum and when not piling the pixel of China ink respectively, according to following principle maximum and pixel of not piling China ink of the value of getting colors respectively from described each time look, described principle is: not creeping, do not pile that China ink, white fine rule are not flooded by ink-soaked and gross distortion and phenomenon of osmosis do not take place for high-visible, back side of paper.
Wherein, when described computing module 413 is measured at the total China ink that calculates described selected pixels, at first calculate the gray value of each look version in the described pixel, m according to following formula
i=n
i/ 255*x
i, m wherein
iBe the gray value of i look version, n
iBe the maximum gray scale number of printing ink in i the look version, x
iBe the actual input gray level value of i look printing ink in the survey map, 255 is the maximum input gray level value of survey map, i=1 wherein, and 2,--, p, p is for printing the port number of the used printing ink of described pixel.
After described computing module 413 calculated the gray value that obtains version of all kinds in the described selected pixels, described computing module 413 also was used for calculating according to following formula the actual China ink amount of each look version of described pixel, t
i=(r
i+ 1-m
i) * l
Ri+ (m
i-r
i) * l
(r+1) i, t wherein
iBe the actual China ink amount of i look version, l
RiBe the China ink amount that the printing ink of i passage of equipment is exported during for r at gray value, unit is a microlitre, l
(r+1) iBe the China ink amount that i passage printing ink of equipment is exported during for r+1 at gray value, m
iBe the gray value of i look version, r
iBe m
iData after rounding.Wherein, l
RiAnd l
(r+1) iValue can obtain by searching described equipment operating manual or other data.
After described computing module 413 calculated the actual China ink amount of each look version in the described selected pixels, the actual China ink amount addition that described computing module 413 also is used for each look version that described pixel is comprised obtained total China ink amount of described pixel.
In the embodiment of the invention, when the printer prints pixel, judge that whether described pixel export required total China ink amount greater than total China ink amount control threshold value of obtaining, if pixel is exported required total China ink amount greater than described total black amount control threshold value in the described printed drawings, then nearest with the described pixel of distance and pixel value that required total China ink is measured less than described total China ink amount control threshold value replaces described pixel value; Owing to replace the pixel value of described pixel and be value with the nearest pixel of the pixel distance of pre-printing, and total China ink amount of exporting is no more than the promptly total China ink amount of the value control threshold value that produces the heap China ink, thereby avoided the control unreasonable phenomenon that heap China ink occur of the pixel of pre-printing, and made the image gradual change of printing level and smooth owing to total China ink amount.
Further, with the maximum carrying China ink amount with paper in the prior art serves as that total China ink amount control threshold value is compared, total China ink amount control threshold value of the total China ink amount of the control printer that uses described in the present embodiment, be to choose in the total China ink amount according to the actual ejection of the pixel in the printer prints survey map, the criterion of choosing relates to many-sided characteristic of printer ink, thereby makes the control of total China ink amount more accurate, fine and smooth; The specimen page that the technical scheme that provides according to the embodiment of the invention prints does not have heap China ink, creeping phenomenon, and color is full, gradual change is even, details is excessively level and smooth.
Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium that can read, floppy disk as computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.