Method and system for generating images on display
10360873 ยท 2019-07-23
Assignee
Inventors
Cpc classification
G09G5/028
PHYSICS
G09G2320/0666
PHYSICS
G09G2320/0673
PHYSICS
International classification
Abstract
The disclosure provides a method for generating images on a display, including: S1, obtaining first Lab values according to LCH values; S2, obtaining a first original value of a measured display; obtaining first tristimulus values of a color n according to tristimulus values of a pure white image as reference values and the first Lab value; S3, obtaining first output gray-scale values according to the first tristimulus values; S4, obtaining first input gray-scale values according to the first output gray-scale values; S5, obtaining second Lab values according to the first input gray-scale values; S6, comparing the first Lab values and the second Lab values. A system of the disclosure includes an obtaining module, a converting module, a judging module, an outputting module and a correcting module. Compared with the prior art, colors in the display image approach the real colors.
Claims
1. A method for generating images on a display by converting parameters used in three different color systems, which comprises a CIELab color system, a CIE1931-XYZ standard color system and a CIE1931 color system, comprising following steps: step S1, obtaining LCH values of a color n, wherein the LCH values of the color n comprise a lightness value L, a hue value H and a color value C of the color n, and obtaining first Lab values by converting the LCH values of the color n to the first Lab values used in the CIELab color system, wherein the first Lab values comprises a first parameter, a second parameter a and a third parameter b, and the first parameter, the second parameter a and the third parameter b are calculated by following formulas:
the first parameter=L;
the second parameter a=C cos(H); and
the third parameter b=C sin(H); step S2, measuring a measured display by a color analyzer to obtain a first original value of the measured display, the first original value comprising tristimulus values of an R, G, B, W four colors full gray-scale, a gamma value of R, G, B, W four colors, tristimulus values of a pure white image, and chromatic values of pure red, pure green and pure blue; obtaining first tristimulus values of the color n by referring to the tristimulus values of the pure white image so that the first Lab values used in the CIELab color system are converted into the first tristimulus values used in the CIE1931-XYZ standard color system; step S3, converting the first tristimulus values used in the CIE1931-XYZ standard color system into first output gray-scale values of RGB three colors used in the CIE1931 color system according to the first tristimulus values of the color n, the chromatic values of pure red, pure green and pure blue in the first original value, and the tristimulus values of the pure white image; step S4, obtaining first input gray-scale values to be input to the display respectively according to the first output gray-scale values and the gamma value of RGB three colors; step S5, obtaining second Lab values used in the CIELab color system according to the first input gray-scale values and the tristimulus values of RGB three colors in the first original value; step S6, comparing the first Lab values and the second Lab values, when the first Lab values are consistent with the second Lab values, outputting the first input gray-scale values to the measured display for display, which is step S7.
2. The method for generating images on a display according to claim 1, wherein a process of obtaining the second Lab values used in the CIELab color system according to the first input gray-scale values and the tristimulus values of RGB three colors in the first original value in the step S5 is achieved by: processing the tristimulus values of the RGB three colors by mixing colors; obtaining second tristimulus values of the color n; after obtaining the second tristimulus values of the color n, converting the second tristimulus values used in the CIE1931-XYZ standard color system into the second Lab values used in the CIELab color system.
3. The method for generating images on a display according to claim 2, wherein in the step S6, when the first Lab values are not consistent with the second Lab values, step S8 is processed to perform following steps: step S11, obtaining tristimulus values of R.sub.1in, G.sub.1in, B.sub.1in in the first input gray-scale value according to the first input gray-scale values, subsequently obtaining third tristimulus values of the color n corresponding to the first input gray-scale values by converting the first input gray-scale values used in the CIE1931 color system into the third tristimulus values of the color n used in the CIE1931-XYZ standard color system; step S12, obtaining second output gray-scale values by converting the third tristimulus values of the color n used in the CIE1931-XYZ standard color system into the second output gray-scale values used in the CIE1931 color system; step S13, obtaining second input gray-scale values according to the second output gray-scale values and the gamma value corresponding to the first input gray-scale values, and outputting the second input gray-scale values; step S14, obtaining third Lab values according to the second input gray-scale values; step S15, comparing the third Lab values and the first Lab values, if the third Lab values are consistent with the first values, outputting the second input gray-scale values to the measured display for display, which is step S16.
4. The method for generating images on a display according to claim 3, wherein obtaining the third Lab values according to the second input gray-scale values is achieved by: converting the second input gray-scale values to the RGB tristimulus values corresponding to the second input gray-scale values after obtaining the second input gray-scale values; and converting the obtained RGB tristimulus values used in the CIE1931 color system into the third Lab values used in the CIELab color system.
5. The method for generating images on a display according to claim 1, wherein in the step S6, when the first Lab values are not consistent with the second Lab values, step S8 is processed to perform following steps: step S11, obtaining tristimulus values of R.sub.1in, G.sub.1in, B.sub.1in in the first input gray-scale value according to the first input gray-scale values, subsequently obtaining third tristimulus values of the color n corresponding to the first input gray-scale values by converting the first input gray-scale values used in the CIE1931 color system into the third tristimulus values of the color n used in the CIE1931-XYZ standard color system; step S12, obtaining second output gray-scale values by converting the third tristimulus values of the color n used in the CIE1931-XYZ standard color system into the second output gray-scale values used in the CIE1931 color system; step S13, obtaining second input gray-scale values according to the second output gray-scale values and the gamma value corresponding to the first input gray-scale values, and outputting the second input gray-scale values; step S14, obtaining third Lab values according to the second input gray-scale values; step S15, comparing the third Lab values and the first Lab values, if the third Lab values are consistent with the first values, outputting the second input gray-scale values to the measured display for display, which is step S16.
6. The method for generating images on a display according to claim 5, wherein obtaining the third Lab values according to the second input gray-scale values is achieved by: converting the second input gray-scale values to the RGB tristimulus values corresponding to the second input gray-scale values after obtaining the second input gray-scale values; and converting the obtained RGB tristimulus values used in the CIE1931 color system into the third Lab values used in the CIELab color system.
7. The method for generating images on a display according to claim 6, wherein in the step S15, when the third Lab values are inconsistent with the first Lab values, step S17 is processed to perform following steps: step S21, respectively processing the second input gray-scale values by 110 in sequence to obtain third input gray-scale values; obtaining the RGB tristimulus values corresponding to each of the third input gray-scale values after each process; and converting the first input gray-scale values used in the CIE1931 color system into the third tristimulus values of the color n used in the CIE1931-XYZ standard color system; step S22, converting the RGB tristimulus values corresponding to each of the third input gray-scale values into corresponded fourth Lab values used in the CIELab color system; step S23, comparing the fourth Lab values and the first Lab values, if the fourth Lab values are consistent with the first Lab values, outputting the third input gray-scale values corresponding to the compared fourth Lab values to the measured display for display, which is step S24.
8. The method for generating images on a display according to claim 7, wherein in the step S23, the fourth Lab values and the first Lab values are compared, if the fourth Lab values are inconsistent with the first Lab values, the step S21 is re-processed, the step S21 to the step S23 are repeated until the fourth Lab values are consistent with the first Lab values.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
(5) The disclosure will be described in detail with reference to embodiments and the accompanying drawings as follows.
(6) As the disclosure is achieved based on a CIELab color system, RGB below represents RGB values of a CIE1931 color system, and XYZ values are the XYZ values of a CIE1931-XYZ standard color system.
(7) As shown in
(8) Step S1, obtaining LCH values (values of lightness (L), hue (H) and color (C)) of a color n, obtaining first Lab values by calculation.
(9) Converting the LCH values of the color n to the first Lab values is achieved by calculation according to following formulas:
L=L;
a=C cos(H);
b=C sin(H);
(10) The first Lab values can be obtained according to the formulas above.
(11) Step S2, measuring a measured display by a color analyzer to obtain a first original value of the measured display. The first original value includes tristimulus values of an R, G, B, W four colors full gray-scale (0255), a gamma value of R, G, B, W four colors, tristimulus values of a pure white image (X.sub.w, Y.sub.w, Z.sub.w), and chromatic values of pure red, pure green and pure blue (x.sub.r, x.sub.g, x.sub.b; y.sub.r, y.sub.g, Y.sub.b); obtaining first tristimulus values of the color n (X.sub.1n, Y.sub.1n, Z.sub.1n) according to the tristimulus values of the pure white image as reference values and the first Lab values.
(12) The process of obtaining first tristimulus values of the color n (X.sub.1n, Y.sub.1n, Z.sub.1n) according to the tristimulus values of the pure white image and the first Lab values is achieved by converting the first Lab values to the XYZ values, specifically as follows:
(13)
(14) In the formulas, f.sub.y=(L+16)/116,
(15)
f.sub.z=f.sub.yb/200. The parameter a is the value a in the first Lab values, b is the value b in the first Lab values.
(16) The color analyzer in the disclosure can adopt a CS2000 model or a CA310 model, etc.
(17) Step S3, obtaining first output gray-scale values (R.sub.1out, G.sub.1out, B.sub.1out) according to the first tristimulus values of the color n, the chromatic values of pure red, pure green and pure blue (x.sub.r, x.sub.g, x.sub.b; y.sub.r, y.sub.g, y.sub.b) in the first original value, and the tristimulus values of the pure white image (X.sub.w, Y.sub.w, Z.sub.w).
(18) Specifically, the first output gray-scale values (R.sub.1out, G.sub.1out, B.sub.1out) are obtained by calculation as follows; an inverse matrix M.sup.1 is solved via the matrix M, a conversion matrix from the XYZ values to the RGB values is obtained:
(19)
(20) In the formula, R=R.sub.1out, G=G.sub.1out, B=B.sub.1out, X=X.sub.1n, Y=Y.sub.1n, Z=Z.sub.1n.
(21) The conversion from the RGB values to the XYZ values is achieved by calculation according to the following formula:
(22)
(23) M can be obtained according to following formulas:
(24)
(25) In the formulas above, X.sub.r=x.sub.r/y.sub.r, Y.sub.r=1, Z.sub.r=(1x.sub.ry.sub.r)/y.sub.r, X.sub.g=x.sub.g/y.sub.g, Y.sub.g=1, Z.sub.g=(1x.sub.gy.sub.g)/y.sub.g, X.sub.b=x.sub.b/y.sub.b, Y.sub.b=1, Z.sub.b=(1x.sub.by.sub.b)/y.sub.b. As the color n can be regarded as a mixed color of red, green and blue three colors, color gamut showed by each of displays can be different, the R color point indicates a color point x.sub.r, y.sub.r while the display shows pure red; G is x.sub.g, y.sub.g during pure green; B is x.sub.b, y.sub.b during pure blue.
(26) Step S4, obtaining first input gray-scale values (R.sub.1in, G.sub.1in, B.sub.1in) to be input to the display respectively according to the first output gray-scale values and the gamma value. The gamma value is 2.2.
(27) The process of obtaining first input gray-scale values to be input to the display respectively according to the first output gray-scale values and the gamma value is achieved by calculation according to following formulas:
R.sub.1in=255*R.sub.out{circumflex over ()}(1/R_gamma);
G.sub.1in=255*G.sub.out{circumflex over ()}(1/G_gamma);
B.sub.1in=255*B.sub.out{circumflex over ()}(1/B_gamma).
(28) R_gamma takes the gamma value corresponding to the R gray-scale in the first original value; G_gamma takes the gamma value corresponding to the G gray-scale in the first original value; B_gamma takes the gamma value corresponding to the B gray-scale in the first original value.
(29) Step S5, obtaining second Lab values according to the first input gray-scale values (R.sub.1in, G.sub.1in, B.sub.1in) and the tristimulus values of RGB three colors in the first original value.
(30) The process of obtaining second Lab values according to the first input gray-scale values (R.sub.1in, G.sub.1in, B.sub.1in) and the tristimulus values of RGB three colors in the first original value by converting from the XYZ values to the Lab values is achieved by calculation as follows.
(31) First, the tristimulus values of RGB three colors are processed by mixing colors; second tristimulus values (X.sub.2n, Y.sub.2n, Z.sub.2n) of the color n are obtained by calculation according to addition principle, specifically as follows.
X.sub.n=X.sub.R+X.sub.G+X.sub.B;
Y.sub.n=Y.sub.R+Y.sub.G+Y.sub.B;
Z.sub.n=Z.sub.R+Z.sub.G+Z.sub.B;
X.sub.n=X.sub.2n,Y.sub.n=Y.sub.2n,Z.sub.n=Z.sub.2n.
(32) Second, after obtaining the second tristimulus values of the color n, the second Lab values are obtained by converting the XYZ values to the Lab values, specifically as follows.
(33)
(34) In the formulas above, t represents X/X.sub.w, Y/Y.sub.w; Z/Z.sub.w; X=X.sub.2n, Y=Y.sub.2n, Z=Z.sub.2n.
(35) Step S6, comparing the first Lab values and the second Lab values, when the first Lab values are consistent with the second Lab values, outputting the first input gray-scale values to the measured display for display, which is step S7.
(36) When the first Lab values are inconsistent with the second Lab values, step S8 will be processed, the step S8 is a correction.
(37) As shown in
(38) Step S11, obtaining tristimulus values of R.sub.1in, G.sub.1in, B.sub.1in in the first input gray-scale values according to the first input gray-scale values (R.sub.1in, G.sub.1in, B.sub.1in), subsequently obtaining third tristimulus values (X.sub.3n, Y.sub.3n, Z.sub.3n) of the color n corresponding to the first input gray-scale values by calculation.
(39) The process of obtaining the third tristimulus values by conversion of the first input gray-scale values is achieved by calculation as follows.
(40)
(41) M is obtained by following formulas:
(42)
(43) In the formulas above, X.sub.r=x.sub.r/y.sub.r, Y=1, Z.sub.r=(1x.sub.ry.sub.r)/y.sub.r, X.sub.g=x.sub.g/y.sub.g, Y.sub.g=1, Z.sub.g=(1x.sub.gy.sub.g)/y.sub.g, X.sub.b=x.sub.b/y.sub.b, Y.sub.b=1, Z.sub.b=(1x.sub.by.sub.b)/y.sub.b. As the color n can be regarded as a mixed color of red, green and blue three colors, color gamut showed by each of displays can be different, the R color point indicates a color point x.sub.r, y.sub.r while the display shows pure red; G is x.sub.g, y.sub.g during pure green; B is x.sub.b, y.sub.b during pure blue.
(44) The third tristimulus values (X.sub.3n, Y.sub.3n, Z.sub.3n) of the color n are obtained by processing the tristimulus values of RGB three colors in the color n by mixing colors, specifically obtained by calculation according to following formulas:
X=X.sub.R+X.sub.G+X.sub.B;
Y=Y.sub.R+Y.sub.G+Y.sub.B;
Z=Z.sub.R+Z.sub.G+Z.sub.B.
(45) In the formulas, X.sub.R, Y.sub.R and Z.sub.R are tristimulus values of R.sub.1in; X.sub.G, Y.sub.G and Z.sub.G are tristimulus values of G.sub.1in; X.sub.B, Y.sub.B and Z.sub.B are tristimulus values of B.sub.1in; X=X.sub.3n, Y=Y.sub.3n, Z=Z.sub.3n.
(46) Step S12, obtaining second output gray-scale values (R.sub.2out, G.sub.2out, B.sub.2out) according to the third tristimulus values.
(47) Specifically, an inverse matrix M.sup.1 is solved via the matrix M, a conversion matrix from the XYZ values to the RGB values is obtained, further obtaining the second output gray-scale values by calculation; specifically is
(48)
(49) In the formula, R=R.sub.2out, G=G.sub.2out, B=B.sub.2out, X=X.sub.2n, Y=Y.sub.2n, Z=Z.sub.2n.
(50) The conversion from the RGB values to the XYZ values is achieved by calculation according to the following formula:
(51)
(52) M is obtained by following formulas:
(53)
(54) In the formulas above, X.sub.r=x.sub.r/y.sub.r, Y.sub.r=1, Z.sub.r=(1x.sub.ry.sub.r)/y.sub.r, X.sub.g=x.sub.g/y.sub.g, Y.sub.g=1, Z.sub.g=(1x.sub.gy.sub.g)/y.sub.g, X.sub.b=x.sub.b/y.sub.b, Y.sub.b=1, Z.sub.b=(1X.sub.by.sub.b)/y.sub.b. As the color n can be regarded as a mixed color of red, green and blue three colors, color gamut showed by each of displays can be different, the R color point indicates a color point x.sub.r, y.sub.r while the display shows pure red; G is x.sub.g, y.sub.g during pure green; B is x.sub.b, y.sub.b during pure blue.
(55) Step S13, obtaining second input gray-scale values (R.sub.2in, G.sub.2in, B.sub.2in) according to the second output gray-scale values and the gamma value corresponding to the first input gray-scale values, outputting the second input gray-scale values.
R.sub.2in=255*R.sub.2out{circumflex over ()}(1/Rgamma);
G.sub.2in=255*G.sub.2out{circumflex over ()}(1/G_gamma);
G.sub.2in=255*G.sub.2out{circumflex over ()}(1/G_gamma)
(56) R_gamma takes the gamma value corresponding to the R.sub.1in gray-scale; G_gamma takes the gamma value corresponding to the G.sub.1in gray-scale; B_gamma takes the gamma value corresponding to the B.sub.1in gray-scale.
(57) Step S14, obtaining third Lab values according to the second input gray-scale values.
(58) The calculation specifically is first obtaining the RGB tristimulus values corresponding to the second input gray-scale values by calculation after obtaining the second input gray-scale values. The RGB tristimulus values are obtained by conversion of the RGB values, specifically calculated as follows:
(59)
(60) M is obtained by following formulas:
(61)
(62) In the formulas above, X.sub.r=x.sub.r/y.sub.r, Y.sub.r=1, Z.sub.r=(1x.sub.ry.sub.r)/y.sub.r, X.sub.g=x.sub.g/y.sub.g, Y.sub.g=1, Z.sub.g=(1x.sub.gy.sub.g)/y.sub.g, X.sub.b=X.sub.b/y.sub.b, Y.sub.b=1, Z.sub.b=(1x.sub.by.sub.b)/y.sub.b. As the color n can be regarded as a mixed color of red, green and blue three colors, color gamut showed by each of displays can be different, the R color point indicates a color point x.sub.r, y.sub.r while the display shows pure red; G is x.sub.g, y.sub.g during pure green; B is x.sub.b, y.sub.b during pure blue.
(63) Second, the third Lab values are obtained by conversion of the obtained RGB tristimulus values, which are specifically achieved as follows:
(64)
(65) In the formulas above, t represents X/X.sub.w, Y/Y.sub.w, Z/Z.sub.w. X, Y and Z are the RGB tristimulus values.
(66) Step S15, comparing the third Lab values and the first Lab values, if the third Lab values are consistent with the first Lab values, outputting the second input gray-scale values to the measured display for display, which is step S16.
(67) When the third Lab values are inconsistent with the first Lab values, step S17 will be processed, the step S17 is a re-correction.
(68) As shown in
(69) Step S21, respectively processing the second input gray-scale values (R.sub.2in, G.sub.2in, B.sub.2in) by 110 simultaneously in sequence, meaning processing R.sub.2in, G.sub.2in and B.sub.2in by 110 simultaneously each time, the sequence is from 1 to obtain third input gray-scale values (R.sub.3in, G.sub.3in, B.sub.3in), obtaining the RGB tristimulus values (the XYZ values) corresponding to a third gray-scale value after each process according to the third input gray-scale values.
(70) The process of obtaining the RGB tristimulus values corresponding to the third gray-scale value by converting the RGB values to the XYZ values according to the third input gray-scale values is specifically achieved by calculation according to the following formula:
(71)
(72) M is obtained by following formulas:
(73)
(74) In the formulas above, X.sub.r=x.sub.r/y.sub.r, Y.sub.r=1, Z.sub.r=(1x.sub.ry.sub.r)/y.sub.r, X.sub.g=x.sub.g/y.sub.g, Y.sub.g=1, Z.sub.g=(1x.sub.gy.sub.g)/y.sub.g, X.sub.b=X.sub.b/y.sub.b, Y.sub.b=1, Z.sub.b=(1x.sub.by.sub.b)/y.sub.b. As the color n can be regarded as a mixed color of red, green and blue three colors, color gamut showed by each of displays can be different, the R color point indicates a color point x.sub.r, y.sub.r while the display shows pure red; G is x.sub.g, y.sub.g during pure green; B is x.sub.b, y.sub.b during pure blue.
(75) Step S22, obtaining fourth Lab values according to the RGB tristimulus values.
(76) The process of obtaining the fourth Lab values by conversion of the RGB tristimulus values is achieved by following formulas:
(77)
(78) In the formulas above, t represents X/X.sub.w, Y/Y.sub.w, Z/Z.sub.w. X, Y and Z are the RGB tristimulus values.
(79) Step S23, comparing the fourth Lab values and the first Lab values, if the fourth Lab values are consistent with the first Lab values, outputting the third input gray-scale values to the measured display for display, which is step S24. If the fourth Lab values are inconsistent with the first Lab values, the step S21 will be re-processed, the step S21 to the step S23 will be repeated until the fourth Lab values are consistent with the first Lab values.
(80) As shown in
(81) The obtaining module is configured to obtain LCH values of a color n and obtain a first original value of a measured display, further sending the first original value to the converting module for conversion.
(82) The converting module is configured to convert the LCH values of the color n to first Lab values according to the first original value; as well as processing conversion among XYZ values, RGB values, Lab values and a gray-scale value according to the first Lab values and the first original value.
(83) The judging module is configured to compare the Lab values and the first Lab values. If the Lab values are consistent with the first Lab values, an output command will be sent to the outputting module. If the Lab values are inconsistent with the first Lab values, a correction command will be sent to the correcting module.
(84) The outputting module is configured to output the corresponding gray-scale value to the measured display after receiving the output command.
(85) The correcting module is configured to correct the gray-scale value once after receiving the correction command, and send the corrected gray-scale value to the converting module.
(86) The correcting module is further configured to re-correct the gray-scale value, and send the corrected gray-scale value to the converting module.
(87) The methods of correction and re-correction have been illustrated in detail, which will not be repeated.
(88) In the following, the method for generating images on a display and the system for generating images on a display will be combined to briefly describe specific steps.
(89) Step S1, the obtaining module obtains the LCH values (values of lightness (L), hue (H) and color (C)) of the color n, and obtain the first Lab values by calculation of the converting module.
(90) Step S2, measuring a measured display by a color analyzer to obtain a first original value of the measured display, and sending the first original value to the obtaining module; obtaining first tristimulus values of the color n (X.sub.1n, Y.sub.1n, Z.sub.1n) according to the tristimulus values of the pure white image as reference values and the first Lab values.
(91) Step S3, the converting module obtains first output gray-scale values (R.sub.1out, G.sub.1out, B.sub.1out) according to the first tristimulus values of the color n, the chromatic values of pure red, pure green and pure blue (x.sub.r, x.sub.g, x.sub.b; y.sub.r, y.sub.g, y.sub.b) in the first original value, and the tristimulus values of the pure white image (X.sub.w, Y.sub.w, Z.sub.w).
(92) Step S4, the converting module obtains first input gray-scale values (R.sub.1in, G.sub.1in, B.sub.1in) to be input to the display respectively according to the first output gray-scale values and the gamma value.
(93) Step S5, the converting module obtains the second Lab values according to the first input gray-scale values (R.sub.1in, G.sub.1in, B.sub.1in) and the tristimulus values of RGB three colors in the first original value, and sends the second Lab values to the judging module.
(94) Step S6, the judge module compares the first Lab values and the second Lab values. When the first Lab values are consistent with the second Lab values, step S7 will be processed, which is sending the first input gray-scale values to the measured display through the outputting module for display.
(95) When the first Lab values are inconsistent with the second Lab values, step S8 will be processed, the step S8 is a correction.
(96) The correction includes following steps.
(97) Step S11, the converting module obtains tristimulus values of R.sub.1in, G.sub.1in, B.sub.1in in the first input gray-scale values according to the first input gray-scale values (R.sub.1in, G.sub.1in, B.sub.1in), and subsequently obtains third tristimulus values (X.sub.3n, Y.sub.3n, Z.sub.3n) of the color n corresponding to the first input gray-scale values by calculation.
(98) Step S12, the converting module obtains second output gray-scale values (R.sub.2out, G.sub.2out, B.sub.2out) according to the third tristimulus values and sends the second output gray-scale values to the correcting module.
(99) Step S13, the correcting module obtains second input gray-scale values (R.sub.2in, G.sub.2in, B.sub.2in) according to the second output gray-scale values and the gamma value corresponding to the first input gray-scale values, subsequently outputs the second input gray-scale values to the converting module.
(100) Step S14, the converting module obtains third Lab values according to the second input gray-scale values, and sends the third Lab values to the judging module for judgement.
(101) Step S15, the judging module compares the third Lab values and the first Lab values, if the third Lab values are consistent with the first values, step S16 will be processed, which is outputting the second input gray-scale values to the measured display through the outputting module for display.
(102) When the third Lab values are inconsistent with the first Lab values, step S17 will be processed, the step S17 is a re-correction.
(103) The re-correction includes following steps.
(104) Step S21, the correcting module respectively processes the second input gray-scale values (R.sub.2in, G.sub.2in, B.sub.2in) by 110 in sequence to obtain third input gray-scale values (R.sub.3in, G.sub.3in, B.sub.3in), the third input gray-scale values are sent to the converting module for calculation after each process, the RGB tristimulus values corresponding to the third gray-scale value are obtained by calculation.
(105) Step S22, the converting module obtains fourth Lab values according to the RGB tristimulus values and sends the fourth Lab values to the judging module for judgement.
(106) Step S23, the judging module compares the fourth Lab values and the first Lab values, if the fourth Lab values are consistent with the first Lab values, the judging module outputs the third input gray-scale values to the measured display through the outputting module for display, which is step S24. If the fourth Lab values are inconsistent with the first Lab values, the step S21 will be re-processed, the step S21 to the step S23 will be repeated until the fourth Lab values are consistent with the first Lab values.
(107) Although the disclosure is illustrated with reference to specific embodiments, a person skilled in the art should understand that various modifications on forms and details can be achieved within the spirit and scope of the disclosure limited by the claims and the counterpart.