Embodiment
Be described in detail below in conjunction with definite method and apparatus of accompanying drawing embodiment of the invention two dimension Lab gamut map profile.Definite method and apparatus with the two-dimentional Lab gamut map profile of the software of drawing a design is an example below, and the present invention will be described, should be clear and definite, and 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 one
As shown in Figure 1, definite method of the two-dimentional Lab gamut map profile of the software of drawing a design provided by the invention comprises step:
S100, in the two-dimentional color space, determine sampled point.
At first the color output of the software of drawing a design is calibrated, print some specific color lumps then; Adopt the Lab value of these color lumps of spectrophotometer measurement, in the two-dimentional color space, find the corresponding position of these values, thereby determine sampled point.Be the distribution map of the corresponding sampled point that in the two-dimentional color space, finds by of all kinds determined Lab value as shown in Figure 2.
S200, determine to be positioned at outermost each sampled point in sampling point distributions zone.
As shown in Figure 3, determining to be positioned at outermost this step of each sampled point in sampling point distributions zone specifically comprises:
S210, as shown in Figure 4 sets up rectangular coordinate system, and abscissa is x, and ordinate is y, and determines the coordinate figure of each sampled point in described rectangular coordinate system; The abscissa of each sampled point relatively finds the some P1 of abscissa minimum, and P1 is positioned at sampling point distributions zone outermost, therefore with P1 as first sampled point.
The method of determining first sampled point can also adopt the abscissa of each sampled point of comparison or the maximum or minimum method of ordinate to determine.
S220, determine adjacent with the first sampled point P1, be positioned at the regional outermost second sampled point P2 of sampling point distributions, and list the second sampled point P2 in the profile point formation.
The method of determining the second sampled point P2 is as follows:
As shown in Figure 4, the first sampled point P1 is connected to form straight line with other sampled point that excludes described profile point formation successively, up to finding straight line, all sampled points all are positioned on this straight line or the same side of this straight line, and then sampled point that will be adjacent with described first sampled point is as second sampled point.
As shown in Figure 4, P1 and P2 are connected to form straight line, and set up new rectangular coordinate system with this straight line as transverse axis x/, the straight line vertical with this straight line is as longitudinal axis y/; Obtain the coordinate of each sampled point in described new rectangular coordinate system; If the ordinate of each sampled point in new rectangular coordinate system is all more than or equal to zero or all smaller or equal to zero, then described each sampled point all is positioned on the described straight line or the same side of described straight line.Thereby can determine that second sampled point is P2, lists the second sampled point P2 in the profile point formation at last.
S230, since the second sampled point P2, use the same method and find other to be positioned at the outermost sampled point in sampling point distributions zone successively, and list the sampled point that finds in the profile point formation.It should be noted that, using the same method when searching other and being positioned at the outermost sampled point in sampling point distributions zone, only need be connected to form the sampled point that excludes the profile point formation straight line and compare the same side that whether is positioned at described straight line of having a few with last sampled point that finds before respectively, and do not need all points all are connected with described last sampled point, so that save the time of searching.
When finding the first sampled point P1 once more, list the described first sampled point P1 in the profile point formation, and finish to search.
S300, connect and to be positioned at outermost each sampled point in sampling point distributions zone successively, form the two-dimentional Lab gamut map profile of sealing.Figure 5 shows that the Lab gamut map profile of last formation.
Embodiment two
As shown in Figure 6, draw a design definite method of two-dimentional Lab gamut map profile of software of present embodiment comprises step:
S1000, in the two-dimentional color space, determine sampled point.
At first the color output of the software of drawing a design is calibrated, print some specific color lumps then; Adopt the Lab value of these color lumps of spectrophotometer measurement, in the two-dimentional color space, find these values to correspond to the position, thereby determine sampled point.Be illustrated in figure 2 as the sampling point distributions figure that the definite Lab value of each color lump finds in the two-dimentional color space.
S2000, determine to be positioned at outermost each sampled point in sampling point distributions zone, and connect successively and be positioned at outermost each sampled point in sampling point distributions zone, form the two-dimentional Lab gamut map profile of sealing.
As shown in Figure 7, this step S2000 specifically comprises:
S2100, as shown in Figure 8 sets up polar coordinate system, and determines the coordinate figure of each sampled point in described coordinate system; Find a point to be positioned at outermost o'clock of sampling point distributions zone as first sampled point.P3 among Fig. 8 is the sampled point of angular coordinate maximum, is positioned at the outermost in sampling point distributions zone, therefore with P3 as first sampled point.
Outermost first sampled point that is positioned at the sampling point distributions zone can also be footpath coordinate or polar coordinates maximum or minimum sampled point.
S2200, determine adjacent with the described first sampled point P3, be positioned at the regional outermost second sampled point P4 of sampling point distributions, and the described second sampled point P4 is connected with the first sampled point P3.
As shown in Figure 8, find the step of second sampled point to be: the first sampled point P3 to be connected with other sampled point to carry out straight line successively, and be that pole axis is set up polar coordinate system, determine the angular coordinate of all sampled points in new polar coordinate system with described straight line.If the angular coordinate of all sampled points is all more than or equal to zero and smaller or equal to 180
0Or all more than or equal to 180
0, and smaller or equal to 360
0, then described each sampled point all is positioned on the described straight line or the same side of described straight line.Thereby can determine that sampled point adjacent with the described first sampled point P3 on the described straight line is second sampled point.Among Fig. 8, the straight line that is formed by connecting with P3 and P4 is as pole axis, and then the polar angle of other sampled point is all greater than zero, and less than 180
0, thereby P4 is second sampled point.
As shown in Figure 9, P4 is connected with P3.
S2300, from described second sampled point, use the same method and find other to be positioned at the outermost sampled point in sampling point distributions zone successively, and after finding the next one to be positioned at the outermost sampled point in sampling point distributions zone, it directly is connected with the previous sampled point that finds.It should be noted that, using the same method when searching other and being positioned at the outermost sampled point in sampling point distributions zone, only need except that P3 and the sampled point that is not connected with other point be connected to form straight line and the comparison the same side that whether is positioned at described straight line of having a few with last sampled point that finds before respectively, and do not need all points all are connected with described last sampled point, so that save the time of searching.
After finding the first sampled point P3 once more, then with the first sampled point P3 with before P3, find other be positioned at the outermost sampled point in sampling point distributions zone and be connected, and finish to search.The two-dimentional Lab gamut map profile that present embodiment forms as shown in Figure 5.
Definite method of two-dimentional Lab gamut map profile provided by the invention, by in the two-dimentional color space, determining sampled point, and determine to be positioned at outermost each sampled point in sampling point distributions zone, connect successively at last and be positioned at outermost each sampled point in sampling point distributions zone, form the two-dimentional Lab gamut map profile of sealing, thereby can determine the outermost profile in a plurality of sampling point distributions zone in the two-dimensional space fast.Step of the present invention is simple, can realize by the simple calculating of computer, thereby have realistic meaning.
The present invention also provides a kind of definite device of two-dimentional Lab gamut map profile, can solve the problem that prior art can't be determined the outermost profile in sampling point distributions zone in the two-dimentional color space fast according to the distribution situation of sampled point.
As shown in figure 10, draw a design definite device of software two dimension Lab gamut map profile of the embodiment of the invention comprises:
Sampled point determining unit 100 is used for determining sampled point in the two-dimentional color space;
Outermost sampled point determining unit 200 is used to determine to be positioned at outermost each sampled point in sampling point distributions zone;
Profile forms unit 300, is used for connecting successively being positioned at outermost each sampled point in sampling point distributions zone, forms the two-dimentional Lab gamut map profile of sealing.
Figure 11 shows that a preferred embodiment of the present invention.Sampled point determining unit 100 specifically comprises: Lab value read module 110 and sampled point determination module 120.
Lab value read module 110 is used to read the Lab value of being scheduled to color lump, and this module reads the Lab value of each color lump that obtains by spectrophotometer measurement particularly; Need before this color output of the software of drawing a design is calibrated, print some specific color lumps then.
Sampled point determination module 120 is used for finding and described Lab value corresponding sampling points in the two-dimentional color space, as shown in Figure 2.
Outermost sampled point determining unit 200 comprises: profile point formation module 210, first sampled point are searched module 220, other sampled point is searched module 230, stopped searching module 240.
Profile point formation module 210 is used for storage and is positioned at the outermost sampled point in described sampling point distributions zone.
First sampled point is searched module 220, is used to set up coordinate system, and finds one to be positioned at the outermost sampled point in sampling point distributions zone as first sampled point according to the coordinate figure of each sampled point in described coordinate system.
Particularly, first sampled point is searched module 220 and is comprised:
First coordinate system is set up module 221, is used to set up rectangular coordinate system or polar coordinate system;
The first sampled point determination module 222 is used for according to each sampled point at the abscissa of described rectangular coordinate system or ordinate is maximum or minimum or determine first sampled point according to utmost point footpath or polar angle maximum or the minimum of each sampled point in described polar coordinate system.
Other sampled point is searched module 230, be used for determining the sampled point that finds with the last time adjacent and the formation straight line that links to each other with sampled point that the described last time is found after make all sampled points all be positioned on the described straight line or the sampled point of the same side of described straight line.
Particularly, other sampled point is searched module 230 and is comprised:
Straight line link block 231 is used for will going up the sampled point and other sampled point that once find at every turn and is connected to form straight line after finding sampled point;
Second coordinate system is set up module 232, and the straight line that is used for connecting with described straight line link block 231 is that abscissa is set up rectangular coordinate system, or the straight line that connects with described straight line link block is that pole axis is set up polar coordinate system.
Other sampled point determination module 233, the ordinate that is used for setting up the rectangular coordinate system that module sets up at all sampled points at second coordinate system is all more than or equal to zero or all smaller or equal to zero, or all sampled points are set up polar angle in the polar coordinate system that module 232 sets up all more than or equal to zero and smaller or equal to 180 at described second coordinate system
0Or all more than or equal to 180
0And smaller or equal to 360
0The time, determine that other sampled point on the described straight line is the point that is positioned on the outline of described sampling point distributions zone.
Below illustrate the lookup method that is positioned at the outermost sampled point in sampling point distributions zone:
As shown in Figure 2, at first first coordinate system is set up module 221 and is set up rectangular coordinate system, transverse axis x, longitudinal axis y.The first sampled point determination module 222 is found out the some P1 of abscissa minimum from all sampled points, then P1 is first sampled point.By straight line link block 231 each sampled point of P1 and other is connected, and to set up module 232 by second coordinate system be that transverse axis is set up rectangular coordinate system (transverse axis x with the straight line that is connected to form
/, longitudinal axis y
/), and check the size of the ordinate of all sampled points, if the ordinate of all sampled points is all more than or equal to zero or all smaller or equal to zero, then the sampled point that is connected with P1 is the point that is positioned on the outline.As shown in Figure 4, link together and during as the abscissa of new coordinate system, all greater than zero, 210 of profile point formation modules are stored P2 to the ordinate of the sampled point that other are all as P1 and P2.And then P2 is connected with other sampled point, the point that successively other is positioned on the outline of sampling point distributions zone is all found out, and by profile point formation module 210 these points is stored.
Module 240 is searched in termination, is used for searching module 230 when finding described first sampled point at other sampled point, stops searching.When other sampled point is searched the described first sampled point P1 of module 230, illustrate that the point on the whole lateral profile all finds, 210 couples of P1 of profile point formation module store and finish and search.
Definite device of the present invention's two dimension Lab gamut map profile is determined sampled point by the sampled point determining unit in the two-dimentional color space, determining to be positioned at outermost each sampled point in sampling point distributions zone by outermost sampled point determining unit, last profile forms the unit and connects successively and be positioned at outermost each sampled point in sampling point distributions zone, form the two-dimentional Lab gamut map profile of sealing, thereby can determine the outermost profile in a plurality of sampling point distributions zone in the two-dimentional color space fast.Step of the present invention is simple, can realize by the simple calculating of computer, thereby have the demonstration realistic meaning.
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; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.