Embodiment
Below in conjunction with Figure of description the embodiment of the invention is elaborated.
As shown in Figure 2, be spot array stage pixel point color calibrating method flow chart in the embodiment of the invention, its concrete processing procedure is as follows:
Step 201 in the lattice pixels point set for the treatment of color correction, determines to treat the color correction pixel;
RIP carries out the rasterisation dot matrix with page description file to be handled, obtained corresponding rasterisation dot matrix, in a rasterisation dot matrix, tend to exist image slices vegetarian refreshments, graphical pixel point, text pixel point, in addition, also can have the white space that does not comprise any image, figure and literal, not comprise in this white space, so the pixel in this white space is called as " blank pixel point " such as any information such as colouring information, half-tone informations.As shown in Figure 3, be a rasterisation dot matrix schematic diagram, in this rasterisation dot matrix, the pixel in the shared zone of English alphabet, Arabic numerals and punctuation mark is the text pixel point; Pentagon, annulus and triangle are the pixel graphical pixel point in the shared zone; Pixel in the shared zone of scenery picture is the image slices vegetarian refreshments; The zone of removing outside image slices vegetarian refreshments, graphical pixel point and the text pixel point then is the blank pixel point.The above-mentioned color correction pixel for the treatment of is for treating color correction graphical pixel point and/or treating color correction text pixel point.
When the rasterisation dot matrix that is converted to being scanned color correction according to scan line, delegation's lattice pixels point in the corresponding rasterisation dot matrix of every scan line, in embodiments of the present invention, the lattice pixels point set for the treatment of color correction by in the rasterisation dot matrix at least the lattice pixels point formed of delegation's lattice pixels point gather.
Step 202 at the color value of determining for the treatment of the color correction pixel, after color value and the color correction in the mapping relations of color value, determines to treat the color value of color correction pixel after color correction before correspondence is treated the color correction of color correction pixel.
Provide more specifically execution mode below.
Because in the rasterisation dot matrix, the employed color value of image slices vegetarian refreshments is more, and that graphical pixel point and text pixel are put employed color value is relatively single, therefore in the embodiment of the invention, the mapping relations of color value after color value and the color correction before the color conversion file that is used for color correction not only stores original color correction, can also set in advance before the color correction of corresponding diagram image vegetarian refreshments the mapping relations of color value behind the color value and color correction, the mapping relations of color value after the mapping relations of color value or corresponding diagram image vegetarian refreshments and preceding color value of text pixel point color correction and the color correction after preceding color value of the color correction that corresponding text pixel is selected and the color correction, at graphical pixel point and/or text pixel point, can use the mapping relations that set in advance to carry out color correction.The frequency of utilization information of the color value that the wherein above-mentioned mapping relations that set in advance can be used by graphical pixel point and/or text pixel point is provided with, and also can add and then form this mapping relations gradually in the process of color correction.
As shown in Figure 4, in the embodiment of the invention, spot array stage pixel point color calibrating specific implementation schematic flow sheet comprises:
Step 401, with PS (PostScript, a kind of programming language that is used for describing content of pages, its standard is formulated by the Adobe company of the U.S.) form or PDF (Portable Document Format, a kind of electronic file form that is used for describing content of pages, its standard is formulated by the Adobe company of the U.S.) parent page of format description is input among the RIP, this RIP is set to: according to the parent page of input, four color separation (the CMYK that are used to print that need output 600 pixels of per inch (600DPI), green grass or young crops-Cyan, magenta-Magenta, Huang-Yellow, black-Black) rasterisation dot matrix, wherein each pixel needs represent respectively with 1 byte the information of a kind of color separation in four color separations in Shu Chu the dot matrix, i.e. four color separations of each pixel, 4 bytes of need are altogether represented.
Step 402, RIP is converted to the rasterisation dot matrix with page-describing, RIP describes according to the profile of the image in the parent page, figure and literal respectively simultaneously, utilize filling algorithm that the zone that various profiles constitute is filled, the middle gray dot matrix that this parent page is converted into represent by gray value.When filling, the zone that image outline can be constituted is 255 to fill according to the pixel gray value, the zone that graph outline is constituted is 170 to fill according to the pixel gray value, the zone that text profile is constituted is 85 to fill according to the pixel gray value, white space is not filled, as shown in Figure 5, be the middle gray dot matrix schematic diagram of rasterisation dot matrix shown in Figure 3.
Step 403, RIP is respectively different pixel type and distributes unique pixel type identification value, can but be not limited to adopt binary one 1,01,10,00 to come identification image pixels, graphical pixel point, text pixel point, blank pixel point respectively.
Step 404, RIP is according to the pixel type identification value of distributing, generate with step 402 in the corresponding pixel type dot matrix of middle gray dot matrix of generation.Wherein the type of pixel is one to one in pixel type dot matrix and the middle gray dot matrix.
In the pixel type dot matrix that generates, 1 byte can be represented the type of 4 pixels, therefore the shared memory space of this dot matrix needs the CMYK dot array page of 4 byte representations to compare with respect to a pixel, the memory space that this dot matrix occupies is less, and it is also less to generate time of this dot matrix.
Step 405 in the lattice pixels point set for the treatment of color correction, according to the pixel type dot matrix that generates, determines to treat the type of color correction pixel.
Step 406, when the rasterisation dot matrix is carried out color correction, at the color value for the treatment of the color correction pixel, treat before the color correction of color correction pixel behind the color value and color correction in the mapping relations of color value in default correspondence, determine to treat the color value of color correction pixel after color correction, treat that wherein the color correction pixel is graphical pixel point and/or text pixel point.
First kind of performance wherein: treat the color value of the graphical pixel point of color correction at each, before the color correction of default corresponding diagram image vegetarian refreshments, after color value and the color correction in the mapping relations of color value, determine the color value of this graphical pixel point after color correction.
Second kind of performance: treat the color value of the text pixel point of color correction at each, before the color correction of default corresponding text pixel point, after color value and the color correction in the mapping relations of color value, determine the color value of this literal pixel after color correction.
The third performance: treat the graphical pixel point of color correction or the color value of text pixel point at each, before the color correction of default corresponding diagram image vegetarian refreshments and text pixel point, after color value and the color correction in the mapping relations of color value, determine the color value of this graphical pixel point or text pixel point after color correction.
In above-mentioned steps 406, also can be earlier according to the pixel type dot matrix that generates, treating the pixel number that has same type in the lattice pixels point set of color correction calculates, thereby determine to treat all types of shared ratio value of pixel in the lattice pixels point set of color correction, and when determining the shared ratio value of graphical pixel point and text pixel point more than or equal to the threshold value that sets in advance, for example determine to obtain graphical pixel point and the shared ratio value of text pixel point is 42%, the threshold value that sets in advance is 40%, color value at graphical pixel point, before the color correction of corresponding diagram image vegetarian refreshments after color value and the color correction in the mapping relations of color value, determine the color value of this graphical pixel point after color correction, perhaps at the color value of text pixel point, before the color correction of corresponding text pixel point after color value and the color correction in the mapping relations of color value, determine the color value of this literal pixel after color correction, perhaps at the color value of graphical pixel point and text pixel point, before the color correction of corresponding diagram image vegetarian refreshments and text pixel point after color value and the color correction in the mapping relations of color value, determine the color value of this graphical pixel point or text pixel point after color correction, determine the color value of this graphical pixel point or text pixel point after color correction, and at the color value of image slices vegetarian refreshments, before original color correction, after color value and the color correction in the mapping relations of color value, determine the color value of this image slices vegetarian refreshments after color correction; If determine that the shared ratio value of graphical pixel point and text pixel point is less than the threshold value that sets in advance, then at the color value of each pixel, all before original color correction, after color value and the color correction in the mapping relations of color value, determine the color value of this image slices vegetarian refreshments after color correction.
Wherein, color value at graphical pixel point and text pixel point, before the color correction of corresponding diagram image vegetarian refreshments and text pixel point, after color value and the color correction in the mapping relations of color value, determine that the detailed process of the color value of this graphical pixel point or text pixel point after color correction is as follows:
At first, before the color correction of corresponding diagram image vegetarian refreshments and text pixel point after color value and the color correction in the mapping relations of color value, judge whether to exist color value before the color correction consistent with the color value of this graphical pixel point or text pixel point;
If judged result is for being then with color value after the color correction that color value is corresponding before the color correction consistent with the color value of this graphical pixel point or text pixel point in the above-mentioned mapping relations, to be defined as this graphical pixel point or the color value of text pixel point after color correction;
If judged result is for denying, then based on the color value of this graphical pixel point or text pixel point, account form is according to the rules calculated this graphical pixel point or the color value of text pixel point after color correction, and with the color value of this graphical pixel point or text pixel point and this graphical pixel point that calculates or the color value corresponding stored of text pixel point after color correction in above-mentioned mapping relations.
Color value at graphical pixel point, before the color correction of corresponding diagram image vegetarian refreshments after color value and the color correction in the mapping relations of color value, determine the color value of this graphical pixel point after color correction, and at the color value of text pixel point, before the color correction of corresponding text pixel point after color value and the color correction in the mapping relations of color value, determine the color value of this literal pixel after color correction, similar with above-mentioned processing procedure, repeat no more here.
Wherein, because in the embodiment of the invention, when graphical pixel point and/or text pixel point are carried out color correction, the graphical pixel that calculates selected and/or text pixel is selected color value corresponding stored after color correction in the mapping relations of corresponding diagram image vegetarian refreshments that sets in advance and/or text pixel point, and the employed color of figure and literal is fewer, so follow-up when figure and/or literal are carried out color correction, just may use the value that aforementioned calculation obtains, and needn't calculate again again, this has just effectively reduced the amount of calculation in the color correction process, and then has accelerated color correction speed.
In addition, because it is very common using the application of black graphics and black literal in the page, and these colors have only 256 kinds of (C=M=Y=0 at most, K=0, C=M=Y=0, K=1, C=M=Y=0, K=2, ... C=M=Y=0, K=253, C=M=Y=0, K=254, C=M=Y=0, K=255), so can be further in advance the mapping relations of color value after color value and the color correction before the color correction of corresponding diagram image vegetarian refreshments be divided into the first mapping relations part that comprises at color value after color value and the color correction before the color correction of color graphics pixel, and at the second mapping relations part of color value after color value and the color correction before the color correction of black graphics pixel; The mapping relations of color value after color value and the color correction before the corresponding text pixel point color correction are divided into the first mapping relations part that comprises at color value after color value and the color correction before the color correction of colored text pixel, and at the second mapping relations part of color value after color value and the color correction before the color correction of black text pixel point; The mapping relations of color value after color value and the color correction before the color correction of corresponding diagram image vegetarian refreshments and text pixel point are divided into the first mapping relations part that comprises at color value after color value and the color correction before the color correction of color graphics pixel and colored text pixel, and at the second mapping relations part of color value after color value and the color correction before the color correction of black graphics pixel and black text pixel point.
So in the step 406, color value at graphical pixel point and text pixel point, before the color correction of corresponding diagram image vegetarian refreshments and text pixel point, after color value and the color correction in the mapping relations of color value, determine that the detailed process of the color value of this graphical pixel point or text pixel point after color correction is as follows:
At first determine the color type of this graphical pixel point or text pixel point, if the color value of this graphical pixel point or text pixel point satisfies C=M=Y=0, determine that promptly this pixel is black graphics pixel or black text pixel point, otherwise be color graphics pixel or colored text pixel;
If the color type of this graphical pixel point or text pixel point is colored, then in above-mentioned first mapping relations part, determine this graphical pixel point or the color value of text pixel point after color correction;
If the color type of this graphical pixel point or text pixel point is a black, then in above-mentioned second mapping relations part, determine this graphical pixel point or the color value of text pixel point after color correction.
Color value at graphical pixel point, before the color correction of corresponding diagram image vegetarian refreshments after color value and the color correction in the mapping relations of color value, determine the color value of this graphical pixel point after color correction, and at the color value of text pixel point, before the color correction of corresponding text pixel point after color value and the color correction in the mapping relations of color value, determine the color value of this literal pixel after color correction, similar with above-mentioned processing procedure, repeat no more here.
Because in the embodiment of the invention, when carrying out color correction for black graphics and/or black literal, can determine the color value of this pixel after color correction in second mapping relations part at black graphics pixel and/or the foundation of black text pixel point, this has just further accelerated the color correction speed of spot array stage pixel point.
In addition, at the point of the blank pixel in the rasterisation dot matrix, when exporting, if can the blank pixel point not handled, promptly output still is the blank pixel point, can directly skip these blank pixel points so to accelerate color correction speed in the color correction process.Under situations such as simulation paper is white, need carry out color correction to the blank pixel point handles, so just need set in advance before the color correction of corresponding blank pixel point the mapping relations of color value behind the color value and color correction, when the blank pixel point is carried out color correction, at first in the lattice pixels point set for the treatment of color correction, determine to treat the blank pixel point of color correction, then at the color value of the blank pixel point of determining for the treatment of color correction, before the color correction of corresponding blank pixel point, after color value and the color correction in the mapping relations of color value, determine the color value of this blank pixel point after color correction.
In addition, in above-mentioned steps 402, with reference to Fig. 6, the zone that image outline constitutes can be filled according to certain pixel gray value, the zone and the white space of graph outline and text profile formation are not filled, then in step 403, the ident value of image slices vegetarian refreshments is set to 1, the ident value of non-image pixel is set to 0, so in the pixel type dot matrix that generates, a byte just can be represented the type of 8 pixels, has further reduced the memory space that this dot matrix occupies, and has reduced the time that generates this dot matrix.At this moment, just store before the corresponding non-image pixel color correction mapping relations of color value behind the color value and color correction in the color conversion file,, in these mapping relations, determine the color value of this pixel after color correction at the color value of non-image pixel.
Because pattern line or fill area and strokes of characters all are that certain width is arranged, the color value of the pixel in this width is identical, stroke for 0.5 millimeter, under 600DPI, there are 12 pixels to have identical color value approximately, these pixel color values after color correction with same color value also are identical, therefore in the color correction process, if the pixel of current color correction is graphical pixel point and/or text pixel point, behind intact this pixel of color correction, the color value before and after this pixel color correction can be carried out record so, if color value is identical with the preceding color value of the color correction of the pixel of above-mentioned record before the color correction of next pixel, then can be directly the color value after color correction of the pixel of above-mentioned record be composed to next pixel and get final product, this color correction of just having avoided repeating is operated, and has further improved color correction speed.
In the embodiment of the invention, at first in the lattice pixels point set for the treatment of color correction, determine to treat the pixel of color correction, the wherein above-mentioned color correction pixel for the treatment of is for treating color correction graphical pixel point and/or treating color correction text pixel point, at above-mentioned definite color value for the treatment of the color correction pixel, before correspondence is treated the color correction of color correction pixel after color value and the color correction in the mapping relations of color value, determine to treat the color value of color correction pixel after color correction, rather than before the color correction of corresponding all types pixel, determine to treat the color value of color correction pixel after color correction in the mapping relations of color value after color value and the color correction, this has just accelerated color correction speed.
As shown in Figure 7, for spot array stage pixel point color calibrating method in the embodiment of the invention is used schematic diagram, input equipment is input to page description file in the server, server carries out color correction with this page description file, re-send on the output equipment and export, wherein input equipment can be work station or portable computer, and output equipment can be display or printer.
The embodiment of the invention also provides a kind of spot array stage pixel point color calibrating device, as shown in Figure 8, comprises first determining unit 801 and second determining unit 802.
Wherein first determining unit 801 is used for treating the lattice pixels point set of color correction, determines to treat the pixel of color correction;
Second determining unit 802 is used for the color value for the treatment of the color correction pixel determined at first determining unit 801, before correspondence is treated the color correction of color correction pixel after color value and the color correction in the mapping relations of color value, determine to treat the color value of color correction pixel after color correction, the wherein above-mentioned color correction pixel for the treatment of is for treating color correction graphical pixel point and/or treating color correction text pixel point.
In addition, this spot array stage pixel point color calibrating device also comprises computing unit and the 3rd determining unit, and computing unit is used for calculating and treating color correction graphical pixel point and the shared ratio value of text pixel point treating the lattice pixels point set of color correction; The 3rd determining unit is used for determining ratio value that the aforementioned calculation unit calculates more than or equal to preset threshold value, and first determining unit 801 determines to treat the color correction pixel when the 3rd determining unit determines that the ratio value that calculates is more than or equal to preset threshold value.
First kind of performance, second determining unit specifically can comprise judgment sub-unit, determine subelement, computation subunit and storing sub-units, judgment sub-unit is used at the definite color value for the treatment of the color correction pixel of above-mentioned first determining unit, before correspondence is treated the color correction of color correction pixel after color value and the color correction in the mapping relations of color value, judge whether to exist color value before the color correction consistent with the color value for the treatment of the color correction pixel; Determine that subelement is used in the judged result of above-mentioned judgment sub-unit with color value after the color correction that color value is corresponding before the color correction consistent with the color value for the treatment of the color correction pixel in the above-mentioned mapping relations, being defined as treating the color value of color correction pixel after color correction when being; Computation subunit is used in the judged result of above-mentioned judgment sub-unit for not the time, and based on the color value for the treatment of the color correction pixel, account form is according to the rules calculated and treated the color value of color correction pixel after color correction; Storing sub-units is used for treating that with what treat that the color value of color correction pixel and aforementioned calculation subunit computes obtain the color value corresponding stored of color correction pixel after color correction is to above-mentioned mapping relations.
Second kind of performance, second determining unit can comprise that specifically first determines subelement, second definite subelement and the 3rd definite subelement, and wherein first determines that subelement is used for the color type for the treatment of the color correction pixel of determining that above-mentioned first determining unit is determined; Second determines that subelement is used for determining that above-mentioned first color type that subelement determines to obtain to treat the color correction pixel is when colored, after color value and the color correction in first mapping relations of the color value parts, determine to treat the color value of color correction pixel after color correction before the color correction of the corresponding color pixel cell in above-mentioned mapping relations; The 3rd determines that subelement is used for when above-mentioned first determines that subelement determines to obtain to treat that the color type of color correction pixel is black, after color value and the color correction in second mapping relations of the color value parts, determine to treat the color value of color correction pixel after color correction before the color correction of the corresponding black pixel point in above-mentioned mapping relations.
Further, this device can also comprise the 4th determining unit and the 5th determining unit, and wherein the 4th determining unit is used for treating the lattice pixels point set of color correction, determines to treat the blank pixel point of color correction; The 5th determining unit is used for the color value at the definite blank pixel point for the treatment of color correction of above-mentioned the 4th determining unit, before the color correction of corresponding blank pixel point, after color value and the color correction in the mapping relations of color value, determine the color value of this blank pixel point after color correction.
Further, this device can also comprise the 6th determining unit and the 7th determining unit, and wherein the 6th determining unit is used for treating the lattice pixels point set of color correction, determines to treat the image slices vegetarian refreshments of color correction; The 7th determining unit is used for the color value of the image slices vegetarian refreshments for the treatment of color correction determined at above-mentioned the 6th determining unit, after color value and the color correction in the mapping relations of color value, determines the color value of this image slices vegetarian refreshments after color correction before color correction.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.