Method and device for correcting measured value of colorimeter, terminal equipment and storage medium
By obtaining the XYZ color space coordinate values of the display color image and performing white balance calibration and correction matrix processing, the high-precision measurement problem of low-cost colorimeter is solved, and low-cost and high-precision colorimeter measurement is achieved.
Patent Information
- Application Number
- CN202410281567.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2025-09-12
AI Technical Summary
Existing colorimeters cannot simultaneously meet the requirements of low cost and high measurement accuracy. High-cost colorimeters have high measurement accuracy, while low-cost colorimeters have low measurement accuracy.
By obtaining the XYZ color space coordinate value of the current color screen of the display, performing white balance calibration, and then using the correction matrix to perform correction processing, high-precision measurement data is obtained.
When using a low-cost colorimeter, high-precision measurement data can be obtained, reducing measurement costs.
Smart Images

Figure CN120628293A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of colorimeter calibration, and in particular relates to a method, apparatus, terminal device, and storage medium for correcting colorimeter measurement values. Background Art
[0002] As a scientific instrument, a colorimeter can measure the color of a substance more objectively and provide specific color data, thereby avoiding the influence of subjective factors on the measurement results of the substance's color.
[0003] The existing colorimeters have high cost for higher measurement accuracy, while the low cost ones have low measurement accuracy. It can be seen that the existing colorimeters cannot meet the requirements of low cost and high measurement accuracy at the same time. Summary of the Invention
[0004] In view of this, embodiments of the present application provide a colorimeter measurement value correction method, apparatus, terminal device, and storage medium to address the problem that existing colorimeters cannot simultaneously meet the requirements of low cost and high measurement accuracy.
[0005] A first aspect of an embodiment of the present application provides a method for correcting a colorimeter measurement value, comprising:
[0006] Obtaining a first coordinate value of a color image currently displayed on the display in an XYZ color space using a colorimeter for the measured value to be corrected;
[0007] performing white balance calibration on the first coordinate value to obtain a second coordinate value;
[0008] The second coordinate value is corrected by using a correction matrix to obtain a third coordinate value.
[0009] A second aspect of an embodiment of the present application provides a colorimeter measurement value correction device, the colorimeter measurement value correction device comprising:
[0010] An acquisition module, configured to acquire a first coordinate value of a color image currently displayed on the display in an XYZ color space using a colorimeter for a measurement value to be corrected;
[0011] a white balance module, configured to perform white balance calibration on the first coordinate value to obtain a second coordinate value;
[0012] The correction module is used to correct the second coordinate value by using a correction matrix to obtain a third coordinate value.
[0013] A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the colorimeter measurement value correction method described in the first aspect of the embodiment of the present application are implemented.
[0014] A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the steps of the colorimeter measurement value correction method as described in the first aspect of the embodiments of the present application are implemented.
[0015] A colorimeter measurement value correction method provided in a first aspect of an embodiment of the present application first obtains a first coordinate value of a color image currently displayed on a display in an XYZ color space using a colorimeter for the measurement value to be corrected; then, white balance calibration is performed on the first coordinate value to obtain a second coordinate value; and then, a correction matrix is used to correct the second coordinate value to obtain a third coordinate value. In this way, when using a low-cost colorimeter for measurement, highly accurate measurement data can be obtained, effectively reducing measurement costs.
[0016] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 This is a schematic diagram of a first flow chart of a method for correcting colorimeter measurement values provided in an embodiment of the present application;
[0019] Figure 2 This is a second flow chart of the colorimeter measurement value correction method provided in an embodiment of the present application;
[0020] Figure 3 This is a third flow chart of the colorimeter measurement value correction method provided in an embodiment of the present application;
[0021] Figure 4 Schematic diagram of the structure of the colorimeter measurement value correction device provided in an embodiment of the present application;
[0022] Figure 5 It is a structural diagram of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0024] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0026] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of the present application include a particular feature, structure, or characteristic described in conjunction with that embodiment. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized. "Multiple" means "two" or "more than two."
[0027] Existing colorimeters have higher measurement accuracy but higher costs, while those with lower costs have lower measurement accuracy. For example, although spectrophotometric colorimeters have high measurement accuracy, they are large and expensive. While photoelectric colorimeters are smaller and cheaper, their measurement accuracy is lower than that of spectrophotometric colorimeters. Existing colorimeters cannot simultaneously meet the requirements of low cost and high measurement accuracy.
[0028] The present application provides a method for correcting colorimeter measurement values. First, a colorimeter for the measured value to be corrected is used to obtain a first coordinate value of the color image currently displayed on a display in an XYZ color space. Then, a white balance calibration is performed on the first coordinate value to obtain a second coordinate value. Finally, a correction matrix is used to correct the second coordinate value to obtain a third coordinate value. In this way, when using a low-cost colorimeter for measurement, highly accurate measurement data can be obtained, effectively reducing measurement costs.
[0029] Example 1
[0030] like Figure 1 As shown, the colorimeter measurement value correction method provided in the embodiment of the present application includes the following steps S1 to S3:
[0031] Step S1: Obtain the first coordinate value of the color image currently displayed on the display in the XYZ color space through the colorimeter of the measured value to be corrected, and then proceed to step S2.
[0032] In application, the colorimeter for the measured value to be corrected can be a photoelectric colorimeter with lower cost and lower measurement accuracy, or a low-cost colorimeter similar to a photoelectric colorimeter, for example, a handheld probe or handheld colorimeter that can measure the color coordinate values of a display, etc., which is not limited here.
[0033] In application, before starting measurement, the colorimeter for the measured value to be corrected needs to determine that the display is currently in a stable display state. Then, the colorimeter for the measured value to be corrected is placed at the corresponding position of the display to perform measurement. The built-in color sensor of the colorimeter for the measured value to be corrected is used to capture the light emitted by the current display. The first coordinate value of the color picture currently displayed on the display in the XYZ color space is obtained through analysis.
[0034] In an application, the color sensor of the colorimeter to be corrected may initially capture values in other color spaces (e.g., RGB color space, etc., which are not limited here). In this case, the values in the other color space need to be converted into coordinate values in the XYZ color space based on the numerical conversion relationship between the other color space and the XYZ color space. For example, if the color sensor of the colorimeter to be corrected initially captures RGB values in the RGB color space, the RGB values in the RGB color space need to be converted into the first coordinate value in the XYZ color space based on the numerical conversion relationship between the RGB color space and the XYZ color space.
[0035] The numerical conversion relationship between the RGB color space and the XYZ color space can be specifically expressed as:
[0036] X=0.4124*R+0.3576*G+0.1805*B,
[0037] Y=0.2126*R+0.7152*G+0.0722*B,
[0038] Z=0.0193*R+0.1192*G+0.9505*B.
[0039] It should be noted that the following further explains this application by taking the example that the data initially captured by the colorimeter to be corrected and the standard colorimeter are both data in the RGB color space.
[0040] In order to achieve high-precision measurement in applications, the colorimeter to be corrected needs to be calibrated before it is put into use to obtain the white balance factor and correction matrix. The specific processing flow is described below.
[0041] In one embodiment, Figure 2 As shown, before step S2, the following steps S11 to S13 are also included:
[0042] Step S11: Obtain a first measurement value of a white image displayed on a display in an XYZ color space using a colorimeter for measurement value to be corrected, and then proceed to step S12.
[0043] In an application, if the color sensor of the colorimeter to be corrected captures RGB data, after obtaining the RGB measurement data of the white image displayed on the monitor in the RGB color space, the colorimeter to be corrected needs to convert the RGB measurement data in the RGB color space into the first measurement value in the XYZ color space based on the numerical conversion relationship between the RGB color space and the XYZ color space for subsequent data processing.
[0044] Step S12: Obtain a second measurement value of the white image displayed on the display in the XYZ color space using a standard colorimeter, and then proceed to step S13.
[0045] In application, a standard colorimeter is a colorimeter with a calibration report and conforming to the International Organization for Standardization (ISO) and / or national standards (GB); it can also be a colorimeter with higher measurement accuracy than the colorimeter to be corrected; or it can be a colorimeter adapted to a user standard selected based on user needs.
[0046] In application, if the color sensor of the standard colorimeter captures measurement values in the XYZ color space, it can be used as the second measurement value. If the standard colorimeter captures RGB data, after obtaining the RGB measurement data of the white image displayed on the monitor in the RGB color space, the standard colorimeter needs to convert the RGB measurement data in the RGB color space into the second measurement value in the XYZ color space based on the numerical conversion relationship between the RGB color space and the XYZ color space for subsequent data processing.
[0047] Step S13: Obtain a white balance factor according to the first measurement value and the second measurement value.
[0048] The white balance factor is used to perform white balance calibration on the first coordinate value.
[0049] In one embodiment, step S13 specifically includes:
[0050] Recording the ratio of the X coordinate value in the second measurement value to the X coordinate value in the first measurement value as the white balance factor of the X coordinate;
[0051] Recording the ratio of the Y coordinate value in the second measurement value to the Y coordinate value in the first measurement value as the white balance factor of the Y coordinate;
[0052] The ratio of the Z coordinate value in the second measurement value to the Z coordinate value in the first measurement value is recorded as the white balance factor of the Z coordinate.
[0053] In the application, the ratio between the X coordinate value in the second measurement value and the X coordinate value in the first measurement value is recorded as the white balance factor of the X coordinate, that is:
[0054]
[0055] Among them, X Factory Indicates the white balance factor of the X coordinate, rData W .X represents the value of the X coordinate in the second measurement;
[0056] The ratio between the Y coordinate value in the second measurement value and the Y coordinate value in the first measurement value is recorded as the white balance factor of the Y coordinate, that is:
[0057]
[0058] Among them, Y Factory Indicates the white balance factor of the Y coordinate, rData W .Y represents the value of the Y coordinate in the second measurement value;
[0059] The ratio between the Z coordinate value in the second measurement value and the Z coordinate value in the first measurement value is recorded as the white balance factor of the Z coordinate, that is:
[0060]
[0061] Among them, Z Factory Indicates the white balance factor of the Z coordinate, rData W .Z represents the value of the Z coordinate in the second measurement value.
[0062] Step S2: perform white balance calibration on the first coordinate value to obtain a second coordinate value, and then proceed to step S3.
[0063] In applications, under different lighting environments, the color temperature of the light source will affect the accuracy of the data obtained by the colorimeter to be corrected. Therefore, it is necessary to perform white balance calibration on the first coordinate value obtained by conversion. Through white balance calibration, the influence of different lighting environments on the measurement data of the same color image can be effectively eliminated.
[0064] In one embodiment, step S2 specifically includes:
[0065] multiplying the X coordinate value in the first coordinate value by the white balance factor of the X coordinate to obtain the X coordinate value in the second coordinate value;
[0066] multiplying the Y coordinate value in the first coordinate value by the white balance factor of the Y coordinate to obtain the Y coordinate value in the second coordinate value;
[0067] The Z coordinate value in the first coordinate value is multiplied by the white balance factor of the Z coordinate to obtain the Z coordinate value in the second coordinate value.
[0068] In the application, the X coordinate value in the first coordinate value is multiplied by the white balance factor of the X coordinate to obtain the X coordinate value in the second coordinate value, that is:
[0069] X=X raw *X Factory ,
[0070] Among them, X raw Indicates the X coordinate value of the first coordinate value in the XYZ color space, X Factory Indicates the white balance factor of the X coordinate;
[0071] The Y coordinate value in the first coordinate value is multiplied by the white balance factor of the Y coordinate to obtain the Y coordinate value in the second coordinate value, that is:
[0072] Y=Y raw *Y Factory ,
[0073] Among them, Y raw Indicates the Y coordinate value of the first coordinate value in the XYZ color space, Y Factory Indicates the white balance factor of the Y coordinate;
[0074] The Z coordinate value in the first coordinate value is multiplied by the white balance factor of the Z coordinate to obtain the Z coordinate value in the second coordinate value, that is:
[0075] Z=Z raw *Z Factory ,
[0076] Among them, Z raw Indicates the Z coordinate value in the first coordinate value of the XYZ color space, Z Factory Indicates the white balance factor of the Z coordinate.
[0077] In one embodiment, Figure 3 As shown, before step S3, the following steps S14 to S17 are also included:
[0078] Step S14: Obtain third measurement values of the red image, the green image, and the blue image displayed on the display in the XYZ color space using the colorimeter for the measurement value to be corrected, and then proceed to step S15.
[0079] In an application, after obtaining RGB measurement data of a red image displayed on a display in the RGB color space, the colorimeter to be corrected for the third measurement value converts the RGB measurement data in the RGB color space into the third measurement value in the XYZ color space according to a numerical conversion relationship between the RGB color space and the XYZ color space. Similarly, after obtaining RGB measurement data of a green image displayed on a display in the RGB color space, the colorimeter to be corrected for the third measurement value converts the RGB measurement data in the RGB color space into the third measurement value in the XYZ color space. After obtaining RGB measurement data of a blue image displayed on a display in the RGB color space, the colorimeter to be corrected for the third measurement value converts the RGB measurement data in the RGB color space into the third measurement value in the XYZ color space.
[0080] Step S15: perform white balance calibration on the third measurement value, and obtain a first matrix consisting of the calibrated third measurement values, and then proceed to step S16.
[0081] In an application, performing white balance calibration on the third measurement value includes performing white balance calibration on the third measurement values of the red, green, and blue images displayed by the display in the XYZ color space, that is, multiplying each X coordinate value in the third measurement value by the white balance factor of the X coordinate, multiplying each Y coordinate value in the third measurement value by the white balance factor of the Y coordinate, and multiplying each Z coordinate value in the third measurement value by the white balance factor of the Z coordinate.
[0082] Finally, the first matrix is obtained according to the third measurement value of the calibrated red, green, and blue images in the XYZ color space, namely:
[0083]
[0084] Among them, M represents the first matrix, X R 、Y R , Z R Indicates the third measurement value of the red image displayed by the monitor after calibration in the XYZ color space. G 、Y G , Z G Indicates the third measurement value of the green image displayed by the monitor after calibration in the XYZ color space. B 、YB , Z B Indicates the third measurement value of the blue image displayed by the monitor after calibration in the XYZ color space.
[0085] Step S16 , obtaining a second matrix consisting of fourth measurement values of the red image, the green image, and the blue image displayed on the display in the XYZ color space under the standard colorimeter, and then proceeding to step S17 .
[0086] In the application, after obtaining RGB measurement data of the red image displayed on the display in the RGB color space, the standard colorimeter converts the RGB measurement data of the RGB color space into a fourth measurement value of the XYZ color space according to the numerical conversion relationship between the RGB color space and the XYZ color space. Similarly, after obtaining RGB measurement data of the green image displayed on the display in the RGB color space, the standard colorimeter converts the RGB measurement data of the RGB color space into a fourth measurement value of the XYZ color space. After obtaining RGB measurement data of the blue image displayed on the display in the RGB color space, the standard colorimeter converts the RGB measurement data of the RGB color space into a fourth measurement value of the XYZ color space. Finally, based on the obtained fourth measurement values of the red, green, and blue images in the XYZ color space, a second matrix is obtained, namely:
[0087]
[0088] Among them, N represents the second matrix, X R 、Y R , Z R Indicates the fourth measurement value of the red image displayed by the monitor in the XYZ color space, X G 、Y G , Z G Indicates the fourth measurement value of the green image displayed by the monitor in the XYZ color space, X B 、Y B , Z B Indicates the fourth measurement value of the blue image displayed by the monitor in the XYZ color space.
[0089] Step S17: Multiply the inverse matrix of the first matrix by the second matrix to obtain a correction matrix.
[0090] In the application, when obtaining the correction matrix based on the first matrix and the second matrix, it is necessary to obtain the inverse matrix of the first matrix, and then multiply the second matrix by the inverse matrix of the first matrix to obtain the correction matrix, that is:
[0091] R=N*M -1 ;
[0092] Among them, R represents the correction matrix, N represents the second matrix, and M -1Represents the inverse matrix of the first matrix.
[0093] Step S3: Correct the second coordinate value by using a correction matrix to obtain a third coordinate value.
[0094] In applications, after obtaining the second coordinate value after white balance calibration, it is necessary to perform correction processing on it to achieve the purpose of improving measurement accuracy.
[0095] In one embodiment, step S3 specifically includes:
[0096] The third coordinate value is obtained according to the result of multiplying the matrix formed by the second coordinate value and the correction matrix.
[0097] In the application, the correction matrix is obtained through the above steps S14 to S17. The third coordinate value is obtained based on the result of multiplying the matrix formed by the second coordinate value and the correction matrix, including multiplying the second coordinate value represented in the form of a column matrix by the correction matrix, thereby obtaining the third coordinate value represented in the form of a column matrix, that is:
[0098] H2=R*H1,
[0099]
[0100] Wherein, H1 represents the second coordinate value expressed in the form of a column matrix, H2 represents the third coordinate value, and R represents the correction matrix.
[0101] In the application, obtaining the third coordinate value based on the result of multiplying the matrix formed by the second coordinate value by the correction matrix further includes multiplying the second coordinate value represented in the form of a row matrix by the correction matrix to obtain the third coordinate value represented in the form of a row matrix, that is:
[0102] H2=H3*R,
[0103] H3=[XYZ],
[0104] Wherein, H3 represents the second coordinate value expressed in the form of a row matrix, H2 represents the third coordinate value, and R represents the correction matrix.
[0105] In one embodiment, after step S3, the method further includes:
[0106] According to the numerical conversion relationship between the XYZ color space and the preset color space, the third coordinate value of the XYZ color space is converted into an output value of the preset color space and outputted.
[0107] In an application, the third coordinate value obtained through the processing of steps S1, S2, and S3 may be converted into an output value of a preset color space and then output.
[0108] In applications, the preset color space includes but is not limited to the Yxy color space. Converting to the Yxy color space is more consistent with the color perception characteristics of the human eye.
[0109] In an application, if the third coordinate value of the XYZ color space is converted into an output value of the Yxy color space and then output, it includes: according to the numerical conversion relationship between the XYZ color space and the Yxy color space, converting the third coordinate value into an output value and outputting it. Similarly, it can also be applied to other preset color spaces.
[0110] In application, the numerical conversion relationship between the XYZ color space and the Yxy color space can be specifically expressed as:
[0111] Y=Y2,
[0112] Where Y represents brightness, x represents hue, y represents saturation, and X2, Y2, and Z2 represent the third coordinate values of the XYZ color space.
[0113] According to the above numerical conversion relationship, the third coordinate value can be converted into an output value and output to the user terminal.
[0114] In applications, user terminals can be mobile phones, tablet computers, wearable devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA) and other devices.
[0115] In application, when a colorimeter experiences lens aging or color sensor aging due to long-term use, steps S11 to S13 and S14 to S17 need to be re-executed to perform calibration and re-acquire the white balance factor and correction matrix.
[0116] In applications, through the embodiments of the present application, data with large errors collected by the colorimeter for the measured value to be corrected can be corrected, thereby improving the accuracy of data collection by the colorimeter for the measured value to be corrected.
[0117] In application, the colorimeter measurement value correction method provided in the embodiment of the present application can enable the colorimeter to be corrected to achieve high-precision measurement of displays with the same backlight material. Compared with the high-precision and high-cost spectrophotometers on the market, the color coordinate error range is ±0.003 and the brightness error range is ±2%.
[0118] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0119] Example 2
[0120] The present application also provides a colorimeter measurement value correction device for executing the method steps of the colorimeter measurement value correction method embodiment. The device can be a virtual appliance in a terminal device, executed by a processor of the terminal device, or can be the terminal device itself.
[0121] like Figure 4 As shown, the colorimeter measurement value correction device 100 provided in the embodiment of the present application includes an acquisition module 101, a white balance module 102, and a correction module 103.
[0122] An acquisition module 101 is configured to acquire a first coordinate value of a color image currently displayed on the display in an XYZ color space using a colorimeter for a measurement value to be corrected;
[0123] A white balance module 102 is configured to perform white balance calibration on the first coordinate value to obtain a second coordinate value;
[0124] The correction module 103 is configured to correct the second coordinate value by using a correction matrix to obtain a third coordinate value.
[0125] In one embodiment, the acquisition module 101 is specifically configured to:
[0126] Obtaining, by means of a colorimeter for measuring the value to be corrected, a first measurement value of a white image displayed on a display in an XYZ color space;
[0127] Obtain a second measurement value of a white image displayed on a display in an XYZ color space using a standard colorimeter;
[0128] Obtaining a white balance factor according to the first measurement value and the second measurement value;
[0129] The white balance factor is used to perform white balance calibration on the first coordinate value.
[0130] In one embodiment, the acquisition module 101 is specifically configured to:
[0131] Recording the ratio of the X coordinate value in the second measurement value to the X coordinate value in the first measurement value as the white balance factor of the X coordinate;
[0132] Recording the ratio of the Y coordinate value in the second measurement value to the Y coordinate value in the first measurement value as the white balance factor of the Y coordinate;
[0133] The ratio of the Z coordinate value in the second measurement value to the Z coordinate value in the first measurement value is recorded as the white balance factor of the Z coordinate.
[0134] In one embodiment, the acquisition module 101 is specifically configured to:
[0135] Obtaining, by the colorimeter to be corrected, third measurement values of the red image, the green image, and the blue image displayed by the display in the XYZ color space;
[0136] performing white balance calibration on the third measurement value and obtaining a first matrix consisting of the calibrated third measurement value;
[0137] Obtaining a second matrix consisting of fourth measurement values of a red image, a green image, and a blue image displayed on the display in an XYZ color space under a standard colorimeter;
[0138] The correction matrix is obtained by multiplying the inverse matrix of the first matrix by the second matrix.
[0139] In one embodiment, the white balance module 102 is further configured to:
[0140] multiplying the X coordinate value in the first coordinate value by the white balance factor of the X coordinate to obtain the X coordinate value in the second coordinate value;
[0141] multiplying the Y coordinate value in the first coordinate value by the white balance factor of the Y coordinate to obtain the Y coordinate value in the second coordinate value;
[0142] The Z coordinate value in the first coordinate value is multiplied by the white balance factor of the Z coordinate to obtain the Z coordinate value in the second coordinate value.
[0143] In one embodiment, the correction module 103 is further configured to:
[0144] The third coordinate value is obtained according to the result of multiplying the matrix formed by the second coordinate value and the correction matrix.
[0145] In one embodiment, the colorimeter measurement value correction device 100 may further include a conversion output module 104, specifically configured to:
[0146] According to the numerical conversion relationship between the XYZ color space and the preset color space, the third coordinate value of the XYZ color space is converted into an output value of the preset color space and outputted.
[0147] In application, each unit in the above device may be a software program module, or may be implemented by different logic circuits integrated in a processor or independent physical components connected to a processor, or may be implemented by multiple distributed processors.
[0148] Example 3
[0149] like Figure 5 As shown, the embodiment of the present application further provides a terminal device 200, including: at least one processor 201 ( Figure 5 Only one processor is shown in the figure), memory 202, a computer program 203 stored in the memory 202 and executable on at least one processor 201, and when the processor 201 executes the computer program 203, the steps in the above-mentioned various method embodiments are implemented.
[0150] In applications, terminal devices may include, but are not limited to, processors, memories, Figure 5 It is only an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as human-computer interaction devices, input and output devices, network access devices, etc. The network access device may include a communication module for the terminal device to communicate with the user terminal.
[0151] In applications, the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. For example, the processor may be a timing controller (TCON). The general-purpose processor may be a microprocessor or any conventional processor.
[0152] In applications, in some embodiments, the memory can be an internal storage unit of a terminal device, such as a hard disk or memory of the terminal device. In other embodiments, the memory can also be an external storage device of the terminal device, such as a plug-in hard disk equipped with the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. The memory can also include both the internal storage unit of the terminal device and an external storage device. The memory is used to store operating systems, application programs, boot loaders, data, and other programs, such as the program code of computer programs. The memory can also be used to temporarily store data that has been output or is about to be output.
[0153] In application, the communication module can be set as any device that can directly or indirectly communicate with the user terminal over a long distance by wire or wireless communication according to actual needs. For example, the communication module can provide communication solutions applied to network devices, including Wireless Local Area Networks (WLAN) (such as Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), infrared technology (IR), etc. The communication module may include an antenna, which may have only one element or an antenna array including multiple elements. The communication module can receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signals, and send the processed signals to the processor. The communication module can also receive signals to be sent from the processor, frequency modulate and amplify them, and convert them into electromagnetic waves for radiation through the antenna.
[0154] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0155] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The functional modules in the embodiment can be integrated into a processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, the specific names of the functional modules are only for the convenience of distinguishing each other and are not used to limit the scope of protection of this application. The specific working process of the modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0156] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0157] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned various method embodiments.
[0158] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program, when executed by the processor, can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to a terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0159] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0160] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0161] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0162] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.
[0163] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for correcting colorimeter measurement values, characterized in that: include: Obtaining a first coordinate value of a color image currently displayed on the display in an XYZ color space using a colorimeter for the measured value to be corrected; performing white balance calibration on the first coordinate value to obtain a second coordinate value; The second coordinate value is corrected by using a correction matrix to obtain a third coordinate value.
2. The colorimeter measurement value correction method according to claim 1, wherein: Before performing white balance calibration on the first coordinate value to obtain the second coordinate value, the method includes: Obtaining, by means of a colorimeter for measuring the value to be corrected, a first measurement value of a white image displayed on a display in an XYZ color space; Obtain a second measurement value of a white image displayed on a display in an XYZ color space using a standard colorimeter; Obtaining a white balance factor according to the first measurement value and the second measurement value; The white balance factor is used to perform white balance calibration on the first coordinate value.
3. The colorimeter measurement value correction method according to claim 2, wherein: Obtaining a white balance factor according to the first measurement value and the second measurement value includes: Recording the ratio of the X coordinate value in the second measurement value to the X coordinate value in the first measurement value as the white balance factor of the X coordinate; Recording the ratio of the Y coordinate value in the second measurement value to the Y coordinate value in the first measurement value as the white balance factor of the Y coordinate; The ratio of the Z coordinate value in the second measurement value to the Z coordinate value in the first measurement value is recorded as the white balance factor of the Z coordinate.
4. The colorimeter measurement value correction method according to claim 3, wherein: The performing white balance calibration on the first coordinate value to obtain a second coordinate value includes: multiplying the X coordinate value in the first coordinate value by the white balance factor of the X coordinate to obtain the X coordinate value in the second coordinate value; multiplying the Y coordinate value in the first coordinate value by the white balance factor of the Y coordinate to obtain the Y coordinate value in the second coordinate value; The Z coordinate value in the first coordinate value is multiplied by the white balance factor of the Z coordinate to obtain the Z coordinate value in the second coordinate value.
5. The colorimeter measurement value correction method according to any one of claims 1 to 4, characterized in that: The method includes: performing correction processing on the second coordinate value by using the correction matrix to obtain the third coordinate value; Obtaining, by the colorimeter to be corrected, third measurement values of the red image, the green image, and the blue image displayed by the display in the XYZ color space; performing white balance calibration on the third measurement value and obtaining a first matrix consisting of the calibrated third measurement value; Obtaining a second matrix consisting of fourth measurement values of a red image, a green image, and a blue image displayed on the display in an XYZ color space under a standard colorimeter; The correction matrix is obtained by multiplying the inverse matrix of the first matrix by the second matrix.
6. The colorimeter measurement value correction method according to claim 5, wherein: The correcting the second coordinate value to obtain a third coordinate value includes: The third coordinate value is obtained according to the result of multiplying the matrix formed by the second coordinate value and the correction matrix.
7. The colorimeter measurement value correction method according to claim 6, wherein: After the second coordinate value is corrected to obtain a third coordinate value, the method includes: According to the numerical conversion relationship between the XYZ color space and the preset color space, the third coordinate value of the XYZ color space is converted into an output value of the preset color space and outputted.
8. A colorimeter measurement value correction device, characterized in that: The colorimeter measurement value correction device comprises: An acquisition module, configured to acquire a first coordinate value of a color image currently displayed on the display in an XYZ color space using a colorimeter for a measurement value to be corrected; a white balance module, configured to perform white balance calibration on the first coordinate value to obtain a second coordinate value; The correction module is used to correct the second coordinate value by using a correction matrix to obtain a third coordinate value.
9. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the colorimeter measurement value correction method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the colorimeter measurement value correction method according to any one of claims 1 to 7 are implemented.