Method for mixed color correction
AssigneeGuangzhou Yajiang Photoelectric Equipment Co., Ltd.
InventorZhiman Chen
Life of this patent
Estimating the term…
Abstract
A method for mixed color correction is disclosed. Based on the variations of the chromaticity coordinates required for adjusting between the target color and the actually-measured color, variations of illuminances of one or two of RGB of the three colors are calculated for adjusting the actually-measured color to achieve the variations of the chromaticity coordinates required for adjusting according to the correlation between the chromaticity coordinates and the tristimulus values, until the required variations of chromaticity coordinate are within a required range. This method can quickly and accurately correct and adjust the actually-measured color, guarantee the consistency of lamp colors, and is convenient for application.
Claims9
A method for mixed color correction, wherein the method comprises:
- S100, receiving chromaticity coordinate information of a target color and a actually-measured color;
- calculating chromaticity coordinate differences between the target color and the actually-measured color, calculating a first ratio of an ordinate difference value to an abscissa difference value of the chromaticity coordinate differences, storing the chromaticity coordinate differences and the first ratio of the ordinate difference value to the abscissa difference value;
- S200, determining whether the chromaticity coordinate differences are within a pre-stored difference range;
- S300, terminating the correction when the chromaticity coordinate differences are within the pre-stored difference range;
- S400, performing steps S401-S404 below when at least one of the chromaticity coordinate differences is not within the pre-stored difference range;
- S401, calculating corresponding variations of chromaticity coordinates and a second ratio of an ordinate variation value to an abscissa variation value of the variations of the chromaticity coordinates respectively when an illuminance of each color of RGB is adjusted according to the received chromaticity coordinates and illuminances of the RGB of the actually-measured color;
- wherein, the second ratios of the ordinate values to the abscissa values of the variations of the chromaticity coordinates comprise a first value of R color, a second value of G color and a third value of B color;
- S402, comparing the first ratio of the ordinate difference value to the abscissa difference value with the first value, the second value and the third value respectively;
- S403, calculating an illumination adjustment value corresponding to an equal value for achieving the target color when at least one of the first value, the second value and the third value is equal to the first ratio of the ordinate difference value to the abscissa difference value, correcting the actually-measured color based on the illumination adjustment value;
- returning to step S100;
- and
- S404, calculating a sum of absolute values of illumination adjustment values of any two colors of the RGB for achieving the target color respectively when none of first value, the second value and the third value is equal to the first ratio of the ordinate difference value to the abscissa difference value to generate three sums of the absolute values;
- correcting the actually-measured color by choosing a smallest sum from the three sums of the absolute values, returning to step S100.
Dependencies are inferred from the claim text.