Information processing apparatus and computer program
The information processing device and computer program address the challenge of inaccurate color reproduction by selecting an optimal color chart based on spectral characteristics, enhancing accuracy in color reproduction across different lighting conditions.
Patent Information
- Application Number
- JP2023043985
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-03
AI Technical Summary
Existing technologies struggle to accurately reproduce colors in images captured by cameras when viewed in environments with different lighting conditions, due to differences in light sources and equipment settings, leading to incorrect color representation on display devices.
An information processing device and computer program that selects an optimal combination of sample colors from a color chart, using spectral reflectance and sensitivity characteristics to calculate conversion information for converting RGB values to XYZ values, minimizing errors in color reproduction.
Achieves highly accurate color reproduction by optimizing the selection of sample colors based on equipment and environmental conditions, reducing printing costs and improving color accuracy in various lighting scenarios.
Smart Images

Figure 2024133949000001_ABST
Abstract
Description
[Technical field]
[0001] The technology disclosed in this specification (hereinafter referred to as "the present disclosure") relates to an information processing device and a computer program for processing color information. [Background technology]
[0002] In most cases, when an image of a subject captured by a camera is observed at a remote location, there is a problem that the correct colors cannot be reproduced. However, the remote location referred to here means, for example, an observation environment that is different from the imaging environment of the camera in terms of light source, and the imaging environment and the observation environment are not necessarily far apart physically. Also, observing an image means displaying the image on a screen of a display device. Therefore, the inability to reproduce colors means that the color of the subject in the imaging environment cannot be displayed correctly on the display screen. The correct color in this case is the color when the subject is observed in the observation environment. Reasons for the inability to reproduce correct colors include the settings and characteristics of the equipment (such as a camera), and differences in the environmental light source between the imaging side and the observation side.
[0003] For example, an information processing device has been proposed that acquires characteristic data related to the spectral sensitivity characteristics of an imaging device, imaging-side spectral data related to the spectral distribution characteristics of a light source in an imaging environment where the imaging device performs imaging, and color spectral data related to the spectral reflectance characteristics of a predetermined sample color, and calculates RGB values to be output by the imaging device when the imaging device captures the predetermined sample color using the characteristic data, imaging-side spectral data, and color spectral data, while acquiring display-side spectral data related to the spectral distribution characteristics of a light source in a display environment where the imaging data captured by the imaging device is displayed on a display device, and uses this display-side spectral data and the above-mentioned color spectral data to calculate XYZ values when the predetermined sample color is displayed on a display device, and further calculates conversion information to convert the RGB values into XYZ values (see Patent Document 1). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent Publication No. 2022-182590 Summary of the Invention [Problem to be solved by the invention]
[0005] An object of the present disclosure is to provide an information processing device and a computer program that process color information to reproduce the color of a subject on the imaging side on the observation side. [Means for solving the problem]
[0006] The present disclosure has been made in consideration of the above problems, and a first aspect thereof is: a selection unit for selecting r sample colors from among n sample colors (where n and r are both positive integers, n>r); a first acquisition unit that acquires RGB values output by an imaging device when the imaging device captures each sample color selected by the selection unit in an imaging environment; a second acquisition unit that acquires XYZ values when each sample color selected by the selection unit is observed in a viewing environment; a conversion information calculation unit that calculates conversion information for converting an RGB value into an XYZ value based on the RGB value acquired by the first acquisition unit and the XYZ value acquired by the second acquisition unit; an error calculation unit that calculates an error in the conversion information calculated by the conversion information calculation unit; Equipped with the selection unit selects r sample colors from the n sample colors based on the error. In the information processing device, the selection unit selects r sample colors from n sample colors so as to minimize the error.
[0007] The first acquisition unit can calculate RGB values to be output by the imaging device when the imaging device captures each sample color selected by the selection unit, based on the spectral reflectance characteristics of each sample color selected by the selection unit, the spectral sensitivity characteristics of the imaging device, and the spectral distribution characteristics of an imaging light source in the imaging environment.
[0008] The second acquisition unit can use the spectral distribution characteristics of a viewing light source in the viewing environment to calculate XYZ values when each sample color selected by the selection unit is viewed based on a color matching function.
[0009] The information processing device relating to the first aspect further includes a third acquisition unit that acquires RGB values for accuracy evaluation output by the imaging device when the imaging device captures a sample color for accuracy evaluation in the imaging environment, and a fourth acquisition unit that acquires XYZ values for accuracy evaluation when the sample color for accuracy evaluation is observed in the observation environment.
[0010] The error calculation unit calculates an error of the conversion information by using the RGB values for accuracy evaluation and the XYZ values for accuracy evaluation. The error calculation unit sets a target for error calculation based on a target for color reproduction or an application field of the conversion information.
[0011] The selection unit uses a generalized simplified gradient method or other optimization algorithm to select r sample colors from the n sample colors so that the error is minimized.
[0012] The second aspect of the present disclosure is A selection unit for selecting r sample colors from n sample colors (where n and r are both positive integers, n>r); a first acquisition unit that acquires RGB values output by an imaging device when the imaging device captures each sample color selected by the selection unit in an imaging environment; a second acquisition unit that acquires XYZ values when each sample color selected by the selection unit is observed in a viewing environment; a conversion information calculation unit that calculates conversion information for converting RGB values into XYZ values based on the RGB values acquired by the first acquisition unit and the XYZ values acquired by the second acquisition unit; an error calculation unit that calculates an error in the conversion information calculated by the conversion information calculation unit; and the selection unit selects r sample colors from the n sample colors based on the error. It is a computer program.
[0013] A computer program according to a second aspect of the present disclosure defines a computer program written in a computer-readable format to realize a predetermined process on a computer. The computer program can be provided to a computer capable of executing various program codes in a computer-readable format by a storage medium, a communication medium, such as an optical disk, a magnetic disk, or a semiconductor memory, or a communication medium such as a network. By installing the computer program according to the second aspect of the present disclosure on a computer via any of the media, a cooperative action is exerted on the computer, and the same action and effect as the information processing device according to the first aspect of the present disclosure can be obtained.
[0014] Moreover, a third aspect of the present disclosure is Using the conversion information, the RGB values output from the imaging device are converted to XYZ values, The conversion information is calculated using r optimal sample colors selected from n sample colors (where n and r are both positive integers, n>r) so that the RGB values output by the imaging device that captures the r optimal sample colors can be converted into XYZ values when the r optimal sample colors are observed in an observation environment. Effect of the Invention
[0015] According to the present disclosure, it is possible to provide an information processing device and a computer program that calculates conversion information using an optimally selected combination of sample colors and achieves highly accurate color reproduction.
[0016] Note that the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited thereto. Furthermore, the present disclosure may have additional effects in addition to the effects described above.
[0017] Further objects, features and advantages of the present disclosure will become apparent from the following detailed description based on the embodiments and the accompanying drawings. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a diagram showing an example of the functional configuration of an information processing device 100. As shown in FIG. [Diagram 2] FIG. 2 is a diagram showing an example of a method for comparing the XYZ values of the camera output with the observed XYZ values. [Diagram 3] FIG. 3 is a diagram showing another method for comparing the camera output XYZ values with the observed XYZ values. [Figure 4] FIG. 4 is a diagram showing an example of the results of calculating conversion coefficients for converting RGB values into XYZ values using the least squares method. [Diagram 5] FIG. 5 is a diagram showing another example of the results of calculating conversion coefficients for converting RGB values into XYZ values using the least squares method. [Figure 6] FIG. 6 is a diagram showing a functional configuration of an information processing device 100 that actually captures an image and acquires RGB values (when the equipment can be specified). [Figure 7] FIG. 7 is a diagram showing a functional configuration of an information processing device 100 that actually captures an image and acquires RGB values (when the equipment cannot be identified). [Figure 8] FIG. 8 is a diagram showing a functional configuration of the information processing device 100 when RGB values are obtained by calculation. [Figure 9] FIG. 9 is a diagram showing an example of implementation in which most of the components of the information processing device 100 are realized by a server. [Figure 10] FIG. 10 is a diagram showing an implementation example in which most of the components of the information processing device 100 are realized on the imaging side. [Figure 11]FIG. 11 is a diagram showing an example of implementation in which most of the components of the information processing device 100 are realized on the observation side. [Figure 12] FIG. 12 is a diagram showing the functional configuration of the camera 1200. [Figure 13] FIG. 13 is a diagram showing the functional configuration of a display device 1300. [Figure 14] FIG. 14 is a diagram showing a functional configuration for theoretically calculating the error of the conversion coefficient calculated using sample colors selected based on the present disclosure. [Figure 15] FIG. 15 is a diagram showing a functional configuration for theoretically calculating the error of the conversion coefficient calculated using empirically selected sample colors. [Figure 16] FIG. 16 is a diagram showing a functional configuration for theoretically calculating the error of the conversion coefficient calculated using all 24 colors of the Macbeth color chart. [Figure 17] FIG. 17 is a diagram showing the Macbeth color chart. [Figure 18] FIG. 18 is a diagram showing examples of nine colors empirically selected from the 24 colors of the Macbeth color chart. [Figure 19] FIG. 19 is a diagram showing an example of setting targets in the method of comparing the XYZ values of the camera output with the observed XYZ values shown in FIG. [Figure 20] FIG. 20 is a flowchart showing a processing procedure for selecting an optimal color combination in the information processing device 100. As shown in FIG. [Figure 21] FIG. 21 is a diagram showing an example of a hardware configuration of the information processing device 100. As shown in FIG. [Figure 22] FIG. 22 is a diagram showing a schematic configuration of a color reproduction system 2200 for reproducing the correct colors of a remote image. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] Hereinafter, embodiments of the present disclosure will be described in the following order with reference to the drawings.
[0020] A. Overview A-1. Overview of color reproduction system A-2. Technical issues and solutions B.Functional configuration C. Error calculation D. Optimization Algorithms E. RGB to XYZ conversion F. Functional configuration according to the method of obtaining RGB values F-1.Actually taking a picture and acquiring RGB values F-2. When obtaining RGB values through calculation F-3. Implementation example F-4. Functional configuration of the camera F-5. Functional configuration of the display device G. Desk calculation of error H. Processing Flow I. Effects J. Hardware configuration of information processing device
[0021] A. Overview A-1. Overview of color reproduction system 22 shows a schematic configuration of a color reproduction system 2200 that reproduces correct colors in most cases when an image of a subject captured by a camera is observed at a remote location. The illustrated color reproduction system 2200 includes an imaging device 2210, a display device 2220, a conversion device 2230, and an information processing device 2240.
[0022] The imaging device 2210 captures an image of a subject in an imaging environment in which an imaging light source 2211 is installed. On the other hand, the display device 2220 displays the image captured by the imaging device 2210 to an observer (not shown) in a remote location, in other words, in an observation environment in which an observation light source 2221 is installed and which is different from the imaging environment.
[0023] When displaying an image captured by the imaging device 2210 on the display device 2220, it may be desirable to estimate the color of the subject as viewed by the observer in an observation environment in which the observation light source 2221 is the observation side light source, and reproduce it on the display device 2220.
[0024] For example, when a doctor (observer) examines a patient at Hospital A (imaging device 2210) by displaying the image on a monitor (display device 2220) at another Hospital B, the doctor can remotely examine the patient at Hospital A in the same way as if he were at Hospital B by reproducing the facial color of the patient displayed on the monitor in the same colors as when observed by the doctor at Hospital B. In remote medical care, if the colors of the remote image cannot be displayed correctly, this could have a serious impact on the doctor's diagnosis.
[0025] As a method for reproducing colors under the observation light source 2221 from an image captured by the imaging device 2210, there is a method of acquiring RGB color coordinate values of the captured image as absolute color coordinate values XYZ values. In the color reproduction system 2200, by acquiring color coordinates of the subject and the imaging light source 2211 as XYZ values, it is possible to hold absolute color coordinates from imaging by the imaging device 2210 to display by the display device 2220. In the XYZ color system, X is a value indicating the intensity of red, Y is a value indicating the intensity and brightness (luminance) of green, and Z is a value indicating the intensity of blue, and unlike the RGB color system, all colors can be expressed.
[0026] It would be fine if the imaging device 2210 was a so-called "XYZ camera" that mimics the spectral characteristics of the human eye, but XYZ cameras are expensive and uncommon. Therefore, the color reproduction system 2200 assumes that the imaging device 2210 is a so-called "RGB camera" that captures an RGB image. The conversion device 2230 then performs conversion processing to convert device-dependent RGB values into XYZ values, and obtains a captured image of the XYZ values, thereby realizing color reproducibility on the display device 2220.
[0027] The information processing device 2240 generates conversion information used in conversion processing for converting RGB values into XYZ values in the conversion device 2230. That is, when an image (RGB values) captured by the imaging device 2210 in an imaging environment is displayed on the display device 2220 in an observation environment, the information processing device 2240 generates conversion information for displaying on the display device 2220 the same colors (XYZ values) as the colors visually recognized when the observer directly observes the subject. The information processing device 2240 uses the respective spectral characteristic data of the imaging light source 2211 and the observation light source 2221 when calculating the conversion information. The information processing device 2240 may be, for example, a general arithmetic processing device such as a personal computer (PC), or at least a part of the functions for generating the conversion information may be realized by a cloud server.
[0028] A-2. Technical issues and solutions As a method for generating conversion information for converting the RGB values of an RGB image captured by a camera into XYZ values, for example, the following two methods can be mentioned.
[0029] (1) A (printed) color patch with known spectral reflectance characteristics is captured by a camera, and the color reproduction values of the same color patch under an observation environment are calculated in advance. By comparing this with the camera output value, a conversion coefficient is calculated based on the correction data.
[0030] (2) As described in Patent Document 1, a conversion coefficient is calculated based on the spectral reflectance characteristics of a sample color (sample color spectral data) stored as data, using characteristic data on the spectral sensitivity characteristics of the camera taking the image (spectral characteristics of the color filter (CF)) and the spectral characteristics of each light source in the imaging environment and the viewing environment.
[0031] The above methods (1) and (2) are both aimed at reproducing colors more accurately (i.e., color matching) within a limited range of equipment and environments.
[0032] In addition, the above methods (1) and (2) are common in that they both use color chips with known spectral reflectance characteristics to calculate conversion coefficients, but they differ in that in method (1), an image of an actual printed color chip is captured by a camera, whereas in method (2), the spectral reflectance characteristics of the sample colors are stored as data and the color chip is virtually captured (i.e., the RGB values of the image captured by the camera are calculated).In both methods, the color chip serves as the standard for color matching, so the content of the color chip (the number of sample colors) is very important.
[0033] In method (2), data on the spectral reflectance characteristics of the color patch is stored and the RGB values of the image captured by the camera are calculated, so there is virtually no limit to the number of colors. On the other hand, in method (1), an image of an actual printed color patch is captured by the camera, so in terms of printing costs, the fewer the number of colors, the better. Also, as mentioned above, the color patch is the standard for color matching, so it is necessary to strike a balance between printing costs and matching accuracy.
[0034] At the time of filing this application, there is no clear method for determining the color combination of the color chart. For example, the Macbeth color chart, which uses 24 colors and is widely known as the "Macbeth chart," or a selection of several existing color charts, or all of them, have been used. The Macbeth color chart specifies the spectral reflectance characteristics of 24 colors and can be used as a color chart, but from the standpoint of cost and availability, it is not commonly used for color reproduction (or for calculating conversion information).
[0035] In this disclosure, the number of colors in the color chart used to generate the conversion information is nine. Nine colors means, for example, that nine colors are selected from the 24 colors for which the spectral reflectance of the original Macbeth color chart is specified. In other words, in this disclosure, a color chart consisting of a combination of r colors selected from n colors with known spectral reflectances is used to generate the conversion information (where n and r are both positive integers, and n>r).
[0036] When selecting nine colors from the original 24 colors of the Macbeth color chart, a selection method suitable for the matching target (or the application field to which color reproduction is applied) can be considered. For example, in the case of a matching target of reproducing human skin color with high accuracy, it is considered empirically to generate conversion information using a color chart consisting of nine colors including skin color as the center and the three primary colors R, G, B, and gray. However, the nine colors selected in this way are not necessarily optimal for the matching target. In the first place, there is no basis for the idea that matching accuracy will improve if a combination of colors selected empirically is used for the color chart. In addition, although matching accuracy is considered to be affected by equipment such as the camera, the light source on the imaging side, and the light source on the observation side, the empirical rule of human skin ⇒ the three primary colors R, G, B, and gray does not cover the influence of equipment.
[0037] Therefore, in this specification, the present disclosure proposes a technique for selecting an optimum color combination to be used on a color chart for a matching target (or an application field to which color reproduction is applied). Also, the present disclosure proposes a technique for selecting an optimum color combination to be used on a color chart, taking into account the influence of the equipment.
[0038] B.Functional configuration 1 shows an example of a functional configuration of an information processing device 100 applied to the present disclosure. The information processing device 100 performs a process of selecting r optimal colors, selected from n colors with known spectral reflectances, as color charts used to generate conversion information for converting RGB values to XYZ values for a matching target (or an application field to which color reproduction is applied) (where n and r are both positive integers, n>r). The information processing device 100 may be, for example, a general arithmetic processing device such as a PC, or at least some of the functions of the components in FIG. 1 may be realized by a cloud server.
[0039] The sample color spectral data storage unit 101 stores the spectral reflectance data of each of the n sample colors that are used as the basis for selection. In the following description, it is assumed that a Macbeth color chart is used as the basis for selection, and the sample color spectral data storage unit 101 stores the spectral reflectance data of each of the 24 sample colors included in the Macbeth color chart.
[0040] The selection unit 102 selects r sample colors from the n sample colors that serve as the basis for selection, reads out the spectral reflectance data of each selected sample color from the sample color spectral data storage unit 101, and outputs it to a downstream functional block. In the following explanation, it is assumed that a Macbeth color chart is used as the basis for selection, and the selection unit 102 selects nine sample colors from the 24 colors included in the Macbeth color chart. Alternatively, a color chart consisting of the nine sample colors selected by the selection unit 102 may be printed and passed to a downstream functional block.
[0041] The RGB value acquisition unit 103 acquires RGB values when a camera captures an image of a color chart consisting of nine sample colors selected by the selection unit 102 in an imaging environment. The RGB value acquisition unit 103 can calculate RGB values when the nine color chart is captured from the spectral reflectance data of each of the nine sample colors selected by the selection unit 102, the spectral sensitivity characteristic data of the color filter (CF) of the camera used, and the spectral distribution characteristic data of the light source (imaging light source) in the imaging environment. The RGB value acquisition unit 103 may also acquire RGB values output from a camera that captures the printed color chart in the imaging environment.
[0042] The XYZ value acquisition unit 104 acquires, as target values, XYZ values when a color chart consisting of the nine sample colors selected by the selection unit 102 is observed under an observation environment. The XYZ value acquisition unit 104 can calculate XYZ values based on color matching functions from the spectral reflectance data of each of the nine sample colors selected by the selection unit 102 and the spectral distribution characteristic data of the light source (observation light source) of the observation environment. When D65 (corresponding to average noon light (combination of direct sunlight and diffuse light from a clear sky)), which is capable of neutral color reproduction, is assumed as the observation light source, the XYZ value acquisition unit 104 may calculate, based on the color matching functions, the XYZ values when the nine colors selected by the selection unit 102 are observed under a D65 light source.
[0043] The conversion information calculation unit 105 compares the RGB values of the camera output acquired by the RGB value acquisition unit 103 with the XYZ values acquired by the XYZ value acquisition unit 104, and calculates conversion information for converting the RGB values into XYZ values using the least squares method or the like. The conversion information is, for example, made up of a 3×3 matrix of conversion coefficients for converting the RGB values into XYZ values. Note that if the camera output acquired by the RGB value acquisition unit 103 has been subjected to gamma correction for transmission, the RGB values are used in the calculations of the conversion information calculation unit 105 after undergoing inverse gamma correction.
[0044] The accuracy evaluation sample color spectral data storage unit 106 stores the spectral reflectance data of each sample color for accuracy evaluation. For accuracy evaluation, the Macbeth color chart may be used as described above, or a different color chart may be used for accuracy evaluation. When the same color chart is used, the sample color spectral data storage unit 101 and the accuracy evaluation sample color spectral data storage unit 106 may be shared.
[0045] The accuracy evaluation RGB value acquisition unit 107 acquires the accuracy evaluation RGB values when a color chart consisting of accuracy evaluation sample colors is captured by a camera in an imaging environment. The accuracy evaluation RGB value acquisition unit 107 can calculate the accuracy evaluation RGB values when the color chart is captured from the spectral reflectance data of the accuracy evaluation sample colors, the color filter spectral sensitivity characteristic data of the camera used, and the spectral distribution characteristic data of the imaging light source. The accuracy evaluation RGB value acquisition unit 107 may also acquire the accuracy evaluation RGB values output from a camera that captures the printed color chart in an imaging environment.
[0046] The accuracy evaluation XYZ value acquisition unit 108 acquires the accuracy evaluation XYZ values when a color chart consisting of the accuracy evaluation sample colors is observed under a viewing environment. The accuracy evaluation XYZ value acquisition unit 108 can calculate the accuracy evaluation XYZ values based on the color matching function from the spectral reflectance data of the accuracy evaluation sample colors and the spectral distribution characteristic data of the viewing illuminant. When D65 is assumed as the viewing illuminant, the accuracy evaluation XYZ value acquisition unit 108 may calculate the accuracy evaluation XYZ values when the accuracy evaluation sample colors are observed under the D65 illuminant based on the color matching function.
[0047] The conversion unit 109 converts the RGB values for accuracy evaluation acquired by the unit for acquiring RGB values for accuracy evaluation 107 into XYZ values using the conversion coefficients calculated by the conversion information calculation unit 105 .
[0048] The error calculation unit 110 compares the XYZ values after conversion by the conversion unit 109 with the XYZ values for accuracy evaluation acquired by the XYZ value for accuracy evaluation acquisition unit 108, and calculates the error in the conversion coefficients calculated by the conversion information calculation unit 105.
[0049] The error calculated by the error calculation unit 110 is fed back to the selection unit 102. Then, the selection unit 102 uses an optimization algorithm to newly select 9 sample colors from the 24 colors included in the Macbeth color chart so as to minimize the error in the conversion coefficients.
[0050] The information processing device 100 can select the optimum nine colors by repeating the selection of sample colors and the calculation of errors as described above.
[0051] The error calculation unit 110 may set a target for error calculation based on a target for color reproduction or an application field of the conversion information. The target setting is, for example, setting a weight for each sample color based on a target for color reproduction or an application field of the conversion information. The target setting enables processing such as increasing accuracy for a specific sample color.
[0052] 1, the equipment (spectral sensitivity characteristic data of the color filter of the camera to be used) and the environment (spectral distribution characteristics of the imaging light source, spectral distribution characteristics of the viewing light source) are determined, and further, a target setting (weighting for each sample color according to the application field, etc.) is performed, thereby making it possible to select an optimal combination of sample colors as a color chip, and as a result, to calculate highly accurate conversion coefficients. The information processing device 100 outputs conversion information calculated by the error calculation unit 110 using a color chip consisting of an optimal combination of nine colors and according to the target setting as final conversion information to a conversion device (for example, the conversion device 2230 in FIG. 22).
[0053] C. Error calculation In this section C, we will explain two methods for comparing the XYZ values output from the camera that captured the color chart for accuracy evaluation, which are acquired through the RGB value for accuracy evaluation acquisition unit 107 within the error calculation unit 110, with the XYZ values obtained by observing the color chart for accuracy evaluation under the observation environment, which are acquired through the XYZ value for accuracy evaluation acquisition unit 108.
[0054] In the first method, two-dimensional xy coordinates are calculated for each of the camera output XYZ values and the observed XYZ values, and the average, sum, and standard deviation of the coordinate distance for each color, or the average, sum, and standard deviation of the error between the camera output x(y) values and the observed x(y) values, are calculated, and these values are used to optimize the sample color combinations in the selection unit 102.
[0055] FIG. 2 shows an example of the internal configuration of the error calculation unit 110 when the first method of comparing the XYZ values of the camera output with the observed XYZ values is used. In the configuration example shown in FIG. 2, first, each of the xy calculation units 201 and 202 calculates two-dimensional xy coordinates for the XYZ values of the camera output (corresponding to the output of the conversion unit 109) and the observed XYZ values (corresponding to the output of the accuracy evaluation XYZ value acquisition unit 108), and obtains their color differences on the xy coordinate system. The xy coordinates can be calculated from the XYZ values using the formulas x=X / (X+Y+Z) and y=Y(X+Y+Z). Next, the weighting unit 203 weights the calculated color differences according to the target settings for each color, and then the standard deviation calculation unit 204 calculates the standard deviation.
[0056] The first method is simple, but the calculation results do not necessarily match human perception. It is also possible to calculate the u'v' coordinate values instead of the xy coordinate values from the XYZ values of the camera output and the observed XYZ values, and calculate the error in the same way as above.
[0057] In the second method, the XYZ values of the camera output and the observed XYZ values are compared using DE2000. DE2000 is known as a color difference evaluation method that takes human perception into account. When using DE2000, first compare the XYZ values of the camera output and the observed XYZ values with the L * a * b * Convert to value. * a * b * In the color system, L * is a value indicating brightness, and a * is the value that indicates the intensity of red color (a * The larger the value, the stronger the red color. * The smaller the value, the stronger the green color), b * is the intensity of yellow (b * The larger the value, the stronger the yellow color. * (The smaller the value, the stronger the blue color.) For example, you can convert XYZ values to L using a conversion program shared or published through a library. * a * b *Then, the average, sum, and standard deviation of the DE2000 values for each sample color are calculated, and these values are used to optimize the combination of sample colors in the selection unit 102.
[0058] FIG. 3 shows an example of the internal configuration of the error calculation unit 110 when using the second method of comparing the XYZ values of the camera output with the observed XYZ values. In the example shown in FIG. 3, first, * a * b * The calculation units 301 and 302 convert the camera output for each sample color for accuracy evaluation (corresponding to the output of the XYZ value conversion unit 109) and the observed XYZ value (corresponding to the output of the XYZ value acquisition unit 108 for accuracy evaluation) into L * a * b * Convert each L * a * b * The calculation units 301 and 302 convert XYZ values into L using a conversion program that is shared or published via a library. * a * b * Next, the DE2000 calculation unit 303 converts each L * a * b * A DE2000 value indicating the color difference between the values is calculated for each sample color for accuracy evaluation. Then, a weighting unit 304 weights the DE2000 value calculated for each color according to the target setting, and a standard deviation calculation unit 305 calculates the standard deviation of the DE2000 values for each sample color, and uses this value to optimize the combination of sample colors in the selection unit 102.
[0059] In the second method, the DE2000 value calculated for each color is weighted according to the target setting, and then the standard deviation is calculated. The method shown in Figure 3 makes it possible to perform optimization closest to human perception, although the calculation of DE2000 is complicated.
[0060] It should be understood that in either of the two methods described above, by setting a target (i.e., by performing weighting based on a set target in weighting units 203 and 304, respectively), an optimal combination of sample colors can be selected in selection unit 102 to which errors are fed back.
[0061] D. Optimization Algorithms In the above section B, it was mentioned that the selection unit 102 uses an optimization algorithm to select 9 sample colors from the 24 colors included in the Macbeth color chart that minimize the error in the conversion coefficients. In this section D, the optimization algorithm will be explained.
[0062] The selection unit 102 selects r sample colors from the n sample colors that are the basis for selection so that the error value fed back from the error calculation unit 110 is minimized. The simplest method is to calculate the error for all r combinations that can be selected from the n sample colors that are the basis for selection in a brute-force manner, and select the combination of r colors with the smallest error. Naturally, in the information processing device 100, n C r The calculation of the conversion coefficients and errors must be repeated many times, resulting in a huge amount of calculations. When selecting nine sample colors from the 24 colors included in the Macbeth color chart, the number of calculations is 24 C9=1,307,504 times. In addition, if the RGB value acquisition unit 103 captures an image of a color chart that has actually been printed using a camera to acquire the RGB values, 1,307,504 color charts must be printed, and the printing costs alone are an excessive burden.
[0063] Therefore, it is preferable that the selection unit 102 uses an optimization algorithm to select r sample colors from the n sample colors that are the basis for selection, thereby avoiding a brute force approach.
[0064] The present disclosure is not limited to a specific optimization algorithm. Any algorithm can be adopted as long as the objective of reducing the amount of calculation can be achieved. For example, optimization may be performed using the Generalized Reduced Gradient (GRG) method, which generalizes the reduced gradient method used in linear programming problems to nonlinear programming problems. The GRG algorithm observes the rate of change of a target value (minimization in this embodiment) when a variable is moved from an initial value, and the convergence solution is reached when the rate of change of the target value becomes minimal by moving the variable.
[0065] E. RGB to XYZ conversion The RGB value acquisition unit 103 can employ either a method of acquiring RGB values by actually capturing an image or a method of acquiring RGB values by calculation. In the former method, a color patch consisting of the nine colors (provisionally) selected by the selection unit 102 is printed, and the camera captures the color patch under the imaging environment to acquire the RGB values. In the latter method, the RGB values when the color patch is captured are calculated from the spectral reflectance data of each of the nine sample colors (provisionally) selected by the selection unit 102, the color filter spectral sensitivity characteristic data of the camera used, and the spectral distribution characteristic data of the light source (imaging light source) in the imaging environment.
[0066] Regardless of which RGB value acquisition method the RGB value acquisition unit 103 uses, the RGB values can be converted into XYZ values using matrix conversion or RGB gain conversion, and the conversion information calculation unit 105 calculates conversion coefficients using the least squares method or the like. In the latter RGB value acquisition method, in addition to matrix conversion, it is also assumed that the RGB values are converted into XYZ values using a table (see, for example, Patent Document 1). However, in order to contrast with the former RGB value acquisition method, this section E assumes that the RGB values are converted into XYZ values using matrix conversion in either RGB value acquisition method.
[0067] FIG. 4 shows an example of the results of calculating conversion coefficients for converting RGB values to XYZ values using the least squares method. In FIG. 4, the input / output relationship, i.e., the corresponding points of RGB before conversion and XYZ after conversion are plotted, and the approximation equation of the input / output calculated by the least squares method is shown by a straight line 401. As can be seen from FIG. 4, there are cases where the RGB before conversion and the XYZ after conversion match with good accuracy, as shown by the points plotted near the approximation equation ("good accuracy" in the figure), and cases where the matching accuracy of the RGB before conversion and the XYZ after conversion is not good, as shown by the points plotted away from the approximation equation ("poor accuracy" in the figure). In other words, it can be said that the matching varies depending on the color.
[0068] The conversion matrix that converts RGB values to XYZ values is a 3x3 matrix, and therefore there are only nine conversion coefficients, so the calculation load for the conversion itself is light and it can be realized with little hardware. However, because conversion of all RGB values is performed with one set of coefficients, even if the conversion coefficients are calculated using the least squares method, there will be variation in matching depending on the color, as shown in Figure 4.
[0069] Also, FIG. 5 shows another example of the result of calculating the conversion coefficients for converting RGB values to XYZ values using the least squares method. In the example shown in FIG. 5, the number of data (i.e., the number of corresponding points of plotted RGB before conversion and XYZ values after conversion) is larger than that in the example shown in FIG. 4. In FIG. 5, the approximation equation of input and output calculated by the least squares method is shown by a straight line 501. Even if the number of data is increased, there are cases where the matching accuracy between RGB before conversion and XYZ values after conversion is not good, and it can be seen that the variation in matching due to color is not eliminated. It is important that the data covers the required range (color gamut in this embodiment) on average, and it cannot be said that the accuracy of the conversion coefficients improves as the number of data increases.
[0070] F. Functional configuration according to the method of obtaining RGB values The RGB value acquisition unit 103 can adopt either a method of acquiring RGB values by actually capturing an image or a method of acquiring RGB values by calculation. In this section F, a specific functional configuration of the information processing device 100 according to the method of acquiring RGB values will be described.
[0071] F-1.Actually taking a picture and acquiring RGB values In the method of actually capturing an image and acquiring RGB values, it is necessary to print a color chart in advance, so r sample colors are selected from the original n sample colors in a stage prior to the actual work. The method of actually capturing an image and acquiring RGB values can be further subdivided into cases where the equipment (camera and imaging light source) can be identified and cases where the equipment cannot be identified.
[0072] Fig. 6 shows the functional configuration of the information processing device 100 when the equipment can be specified. However, Fig. 6 shows an example in which 9 colors are selected from the 24 colors of the original Macbeth color chart, and components that are not necessary for the explanation are omitted. If the purpose is clearly determined, the equipment to be used may be determined, and in that case, the information processing device 100 shown in Fig. 6 can be selected.
[0073] When the equipment (camera and imaging light source) can be specified, the RGB value acquisition unit 103 captures a color chart consisting of nine colors selected from the 24 colors of the Macbeth color chart with the specified equipment (i.e., the specified combination of camera and imaging light source) and acquires RGB values actually output from the camera. Then, the error calculation unit 110 calculates an error in the conversion coefficient based on the RGB values acquired by the RGB value acquisition unit 103 by actually capturing the printed color chart, and feeds it back to the selection unit 102. Then, the selection unit 102 selects nine sample colors from the 24 colors included in the Macbeth color chart using an optimization algorithm so as to minimize the error in the conversion coefficient.
[0074] Fig. 7 shows the functional configuration of the information processing device 100 when the equipment cannot be identified. However, Fig. 7 also shows an example in which 9 colors are selected from the 24 colors of the original Macbeth color chart, and components that are not necessary for the explanation are omitted.
[0075] If the equipment cannot be specified, several types of equipment are assumed, and the error is calculated for each combination, and nine sample colors are selected based on the average or weighting of the errors. In the example shown in Fig. 7, the RGB value acquisition unit 103 assumes three types of cameras, i.e., assumed cameras 1 to 3, and three types of imaging light sources, i.e., assumed imaging light sources 1 to 3, and acquires RGB values for a total of nine combinations, and the error calculation unit 110 calculates the error of the conversion coefficient based on each RGB value and feeds it back to the selection unit 102. Then, the selection unit 102 selects nine sample colors from the 24 colors included in the Macbeth color chart using an optimization algorithm so as to minimize the error of the conversion coefficient.
[0076] For example, assuming that the imaging light sources 1 to 3 are three types commonly used in households: white LED (Light Emitting Diode), fluorescent lamp, and white light, and if the household penetration rate of each light source is known, for example, as 5:3:2, then it is possible to control the selection of the nine colors with the highest accuracy using the light source with the highest penetration rate by weighting the values obtained from each light source by the order or ratio of the penetration rate and calculating the error.
[0077] 7, the XYZ value acquisition unit 104 is omitted. As already explained in section B above, the XYZ value acquisition unit 104 acquires XYZ values when a color chart consisting of the selected nine colors is observed under a viewing environment. As described above, D65 capable of neutral color reproduction is assumed as the viewing light source, but if another assumption is made, the XYZ value acquisition unit 104 may calculate conversion coefficients with the aim of acquiring XYZ values and reproducing colors under that light source.
[0078] The process of acquiring RGB values from the selected sample colors may be performed on an actual device (equipment such as a camera) or on a computer. When performing the process on a computer, it is necessary to prepare data related to the optical characteristics of the specific or expected equipment, such as the spectral sensitivity characteristics of the color filter of the camera and the spectral distribution characteristics of the imaging light source. On the other hand, when acquiring RGB values using an actual device, it is necessary to print a color chart consisting of the sample colors selected by the selection unit 102. In addition, since the selection process of the sample colors is performed in advance, the calculation time and calculation resources are unlikely to be constraints. It is easy to increase the original colors from 24 colors or change to another combination of 24 colors, or to increase the number of expected equipment to select the optimal solution.
[0079] F-2. When obtaining RGB values through calculation In the method of obtaining RGB values by calculation, the conversion coefficients are calculated on the assumption that the spectral sensitivity characteristics of the color filter of the camera, the spectral distribution characteristics of the imaging light source, and the spectral distribution characteristics of the viewing light source are known in advance. These characteristic data can be obtained by some method, and the method is not particularly limited.
[0080] Fig. 8 shows the functional configuration of the information processing device 100 when RGB values are obtained by calculation. The information processing device 100 shown in Fig. 8 is configured to use an image-capturing side external sensor 801 and an observation side external sensor 802 (described later) to obtain information on the image-capturing environment and the observation environment (spectral characteristics of each light source). For simplicity, Fig. 8 also assumes that the same Macbeth color chart is used when calculating conversion coefficients and when evaluating the accuracy of the conversion coefficients (i.e., when calculating errors), and therefore the information processing device 100 only includes a sample color spectral data storage unit 101, and the accuracy evaluation sample color spectral data storage unit 106 is omitted.
[0081] The selection unit 102 selects nine sample colors from the 24 colors included in the Macbeth color chart, reads out the spectral reflectance data of each selected sample color from the sample color spectral data storage unit 101, and outputs it to a downstream functional block.
[0082] Since the color chart is not printed, but the data of each sample color contained in the color chart is used, there is virtually no restriction on the number of colors. However, as mentioned in Section E above, it is important that the number of colors on the color chart covers the required color gamut, and having a large amount of data does not necessarily improve accuracy (for example, see Figure 5). Therefore, even when RGB values are obtained by calculation, 9 sample colors out of the 24 sample colors on the Macbeth color chart are used to calculate the conversion coefficients.
[0083] The RGB value acquisition unit 103 acquires the color filter spectral sensitivity characteristic data of the identified camera from a database that accumulates the color filter spectral sensitivity characteristics of all cameras under consideration, or acquires the color filter spectral sensitivity characteristics of the camera to be actually used by any method, such as by having the color filter spectral sensitivity characteristic data sent as metadata from the camera.
[0084] Furthermore, the RGB value acquisition unit 103 acquires the spectral distribution characteristics of the imaging light source acquired by an imaging side external sensor 801 installed in the imaging environment, and estimates the spectral distribution characteristics of the imaging light source from values acquired from the imaging side external sensor 801. For example, the imaging side external sensor 801 may be mounted on a camera that is actually used, and the camera may transmit sensing data by the imaging side external sensor 801 to the information processing device 100 (or the RGB value acquisition unit 103). Alternatively, the imaging side external sensor 801 may be an external light sensor installed in the imaging environment independent of the camera.
[0085] Then, the RGB value acquisition unit 103 calculates RGB values when the camera captures a color chart consisting of the nine sample colors, based on the spectral reflectance data of each of the nine sample colors selected by the selection unit 102, the camera's color filter spectral sensitivity characteristic data acquired from a database or the camera, and the imaging light source spectral distribution characteristic data acquired from the imaging-side external sensor 801.
[0086] On the other hand, the XYZ value acquisition unit 104 acquires the spectral distribution characteristics of the observation light source acquired by an observation-side external sensor 802 installed in the observation environment, or estimates the spectral distribution characteristics of the observation light source from the values acquired from the observation-side external sensor 802. For example, the observation-side external sensor 802 may be mounted on a display device that displays an image captured by a camera, and the display device may transmit sensing data by the observation-side external sensor 802 to the information processing device 100 (or the XYZ value acquisition unit 104). Alternatively, the observation-side external sensor 802 may be an external light sensor installed in the observation environment independent of the display device.
[0087] Then, the XYZ value acquisition unit 104 calculates the XYZ values when a color chart consisting of the nine sample colors selected by the selection unit 102 is observed under an observation environment, based on the color matching function from the spectral reflectance data of each of the nine sample colors selected by the selection unit 102 and the spectral distribution characteristic data of the observation light source acquired from the observation-side external sensor 802.
[0088] The conversion information calculation unit 105 compares the RGB values of the camera output acquired by the RGB value acquisition unit 103 with the XYZ values acquired by the XYZ value acquisition unit 104, and calculates conversion coefficients for converting the RGB values into XYZ values using the least squares method or the like.
[0089] The accuracy evaluation RGB value acquisition unit 107 calculates RGB values when the camera captures a color chart consisting of the 24 sample colors of the Macbeth color chart, from the spectral reflectance data of each of the 24 sample colors of the Macbeth color chart, the camera's color filter spectral sensitivity characteristic data acquired from a database or the camera, and the imaging light source spectral distribution characteristic data acquired from the imaging side external sensor 801.
[0090] The accuracy evaluation XYZ value acquisition unit 108 calculates the XYZ values when a color chart consisting of the 24 sample colors of the Macbeth color chart is observed under an observation environment, based on the color matching function from the spectral reflectance data of each of the 24 sample colors of the Macbeth color chart and the spectral distribution characteristic data of the observation light source acquired from the observation-side external sensor 802.
[0091] The conversion unit 109 converts the RGB values for accuracy evaluation acquired by the unit for acquiring RGB values for accuracy evaluation 107 into XYZ values using the conversion coefficients calculated by the conversion information calculation unit 105 .
[0092] The error calculation unit 110 compares the XYZ values after conversion by the conversion unit 109 with the XYZ values for accuracy evaluation acquired by the XYZ value for accuracy evaluation acquisition unit 108, and calculates the error in the conversion coefficients calculated by the conversion information calculation unit 105.
[0093] The error calculated by the error calculation unit 110 is fed back to the selection unit 102. Then, the selection unit 102 selects 9 sample colors from the 24 colors included in the Macbeth color chart using an optimization algorithm so as to minimize the error in the conversion coefficients.
[0094] In the method of obtaining RGB values by calculation described in Section F-2 (or the configuration of information processing device 100 shown in FIG. 8), the spectral characteristics of all equipment are known, so it is possible to select the optimal nine colors for a combination of environment and equipment. This makes it possible to calculate more optimal conversion coefficients, i.e., to perform more optimal correction of the subject image, compared to the method described in Section F-1 above of obtaining RGB values by actually capturing an image.
[0095] 8, the spectral distribution characteristics of the imaging light source and the viewing light source can be dynamically acquired, so that the nine colors are periodically updated in the selection unit 102, and the conversion coefficients are updated while adapting to environmental changes, thereby enabling more optimal correction of the optimal subject image. For example, more optimal correction of the optimal subject image can be performed while adapting to environmental changes such as changing from daytime to evening and then to night.
[0096] F-3. Implementation example In the method of obtaining RGB values by calculation described in section F-2 above, in order to dynamically select 9 colors from the 24 colors of the Macbeth color chart, it is necessary to perform calculations on a computer to obtain conversion coefficients. If this calculation is performed at intervals of several seconds to several minutes, the calculation load is low, and the conversion coefficients can be obtained using a CPU (Central Processing Unit) installed in equipment such as a camera or display device, without using a dedicated computer (for example, a PC or cloud server).
[0097] In this section F-3, an implementation example in which the components of information processing device 100 shown in FIG. 8 are arranged on a server, a camera (or an image capturing side), and a display device (or an observation side), respectively, will be described.
[0098] Fig. 9 shows an example of implementation in which most of the components of the information processing device 100 shown in Fig. 8 are realized by a server (for example, a cloud server). In Fig. 9, components implemented on the image capturing side or in a camera are painted light gray, and components implemented on the observation side or in a display device are painted dark gray. Moreover, each component included in the area surrounded by a dashed line in Fig. 9 is implemented on a server. Such a server can calculate RGB values when a color chart is captured by a camera using the spectral distribution characteristics of the image capturing light source supplied from the image capturing side external sensor 801 and the spectral distribution characteristics of the observation light source supplied from the observation side external sensor 802, and further select an optimal combination of sample colors to calculate highly accurate conversion coefficients.
[0099] Fig. 10 shows an example of implementation in which most of the components of the information processing device 100 shown in Fig. 8 are realized by a camera. In Fig. 10, components implemented on the image capturing side or in the camera are painted light gray, and components implemented on the observation side or in the display device are painted dark gray. Such a camera acquires the spectral distribution characteristics of the image capturing light source inside, and uses the spectral distribution characteristics of the observation light source supplied from the observation side external sensor 802 to calculate RGB values when a color chart is captured by the camera, and further selects an optimal combination of sample colors to calculate a highly accurate conversion coefficient. Therefore, this camera can capture an RGB image and output an XYZ image.
[0100] Fig. 11 shows an example of implementation in which most of the components of the information processing device 100 shown in Fig. 8 are realized by a display device. In Fig. 11, components implemented on the image capturing side or in the camera are painted light gray, and components implemented on the observation side or in the display device are painted dark gray. Such a display device acquires the spectral distribution characteristics of the observation light source internally, and uses the spectral distribution characteristics of the image capturing light source supplied from the image capturing side external sensor 801 to calculate RGB values when a color chart is captured by the camera, and further selects an optimal combination of sample colors to calculate highly accurate conversion coefficients. Therefore, this display device can convert the RGB image supplied from the camera into an XYZ image and reproduce and display correct colors.
[0101] F-4. Functional configuration of the camera 12 shows an example of the functional configuration of a camera 1200 applicable to the present disclosure. The camera 1200 can supply spectral distribution characteristic data of an imaging light source to the RGB acquisition unit 103 and the accuracy evaluation RGB acquisition unit 107. The camera 1200 includes a communication unit 1201, an imaging unit 1202, an external light sensor 1203, and a processing unit 1204.
[0102] The communication unit 1201 is a wired or wireless communication interface that communicates with an external device via a network. The external device referred to here is, for example, a conversion device that converts RGB values output from the camera 1200 into XYZ values, or an information processing device 100 (see FIG. 8) that calculates conversion information for converting RGB values output from the camera 1200 into XYZ values. The communication interface is compatible with wireless communication such as Wi-Fi (registered trademark) or Bluetooth (registered trademark), or wired communication such as Ethernet (registered trademark), USB (Universal Serial Bus), or HDMI (registered trademark) (High Definition Multimedia Interface). The communication unit 1201 is used to transmit, for example, an image captured by the imaging unit 1202 or sensor data sensed by the external light sensor 1203 to the external device.
[0103] The imaging unit 1202 includes an optical lens that collects reflected light from a subject, and an image sensor configured with a CMOS (Complementary Metal Oxide Semiconductor) or the like, and captures a moving image or a still image of the subject to generate a captured image (RGB value). The imaging unit 1202 outputs the captured image to the conversion device or the information processing device 100 via the communication unit 1201.
[0104] The external light sensor 1203 is a device that acquires information about an imaging light source installed in an imaging environment. The external light sensor 1203 includes, for example, a plurality of color sensors (not shown). Each color sensor separates and extracts light (color components) of different wavelengths. Therefore, the external light sensor 1203 performs a filter spectroscopic process that separates light in the human visible range (wavelengths of 380 nm to 780 nm) into a plurality of wavelengths using a plurality of color sensors, and separates and extracts light of a predetermined wavelength. The external light sensor 1203 corresponds to the imaging side external sensor 801 in FIG. 8 that supplies the spectral distribution characteristic data of the imaging light source to the RGB acquisition unit 103 and the accuracy evaluation RGB acquisition unit 107, and outputs the separation result of the light emitted from the imaging light source to the information processing device 100 via, for example, the communication unit 1201.
[0105] Although the above describes an example configuration in which the external light sensor 1203 performs spectral analysis using multiple color sensors, the configuration of the external light sensor 1203 is not limited to this. The external light sensor 1203 may be a sensor that obtains the spectral analysis of the light source in more detail, such as a spectrometer. By using a spectrometer as the external light sensor 1203, it is possible to omit the process of estimating the light source on the information processing device 100 side. However, since spectrometers are expensive and uncommon, the external light sensor 1203 can be configured more cheaply and easily using multiple color sensors as described above.
[0106] The processing unit 1204 includes, for example, a CPU, and performs processing corresponding to each component included in the area enclosed by the dashed line in the implementation example shown in FIG.
[0107] F-5. Functional configuration of the display device 13 shows an example of a functional configuration of a display device 1300 applicable to the present disclosure. The display device 1300 can supply spectral distribution characteristic data of an observation light source to the XYZ acquisition unit 104 and the accuracy evaluation XYZ acquisition unit 108. The display device 1300 includes a communication unit 1301, a display unit 1302, an external light sensor 1303, and a processing unit 1304.
[0108] The communication unit 1301 is a wired or wireless communication interface that communicates with an external device via a network. The external device referred to here is, for example, a conversion device that converts RGB values output from the camera 1200 into XYZ values, or an information processing device 100 (see FIG. 8) that calculates conversion information. The communication interface is compatible with wireless communication such as Wi-Fi (registered trademark) or Bluetooth (registered trademark), or wired communication such as Ethernet (registered trademark), USB, or HDMI (registered trademark). The communication unit 1301 is used, for example, to receive an image to be displayed and output on the display unit 1302 from the external device, or to transmit sensor data sensed by an external light sensor 1303 to the external device.
[0109] The display unit 1302 is composed of, for example, an LCD (Liquid Crystal Display) or an organic EL (Electro Luminescence) display, and displays an image received from an external device via the communication unit 1301. The display unit 1302 may convert the converted image of XYZ values from the conversion device into RGB values before displaying it.
[0110] The external light sensor 1303 is a device that acquires information on an observation light source installed in an observation environment. The external light sensor 1303 includes, for example, a plurality of color sensors (not shown). Each color sensor separates and extracts light (color components) of different wavelengths. Therefore, the external light sensor 1303 performs a filter spectroscopic process that separates light in the human visible range (wavelengths of 380 nm to 780 nm) into a plurality of wavelengths using a plurality of color sensors, and separates and extracts light of a predetermined wavelength. The external light sensor 1303 corresponds to the observation side external sensor 802 in FIG. 8 that supplies the XYZ acquisition unit 104 and the accuracy evaluation XYZ acquisition unit 108 with spectral distribution characteristic data of the observation light source, and outputs the separation result of the light emitted from the observation light source to the information processing device 100 via, for example, the communication unit 1301. Note that the external light sensor 1303 is not limited to a configuration that performs spectroscopic analysis using a plurality of color sensors, and may be a sensor that acquires the spectrum of the light source in more detail, such as a spectrometer (ibid.).
[0111] The processing unit 1304 includes, for example, a CPU, and performs processing corresponding to each component included in the area surrounded by the dashed line in the implementation example shown in FIG.
[0112] G. Desk calculation of error The error in the conversion coefficients calculated using the nine optimal colors selected from the 24 colors of the Macbeth color chart in accordance with the present disclosure was calculated theoretically, along with the error in the conversion coefficients calculated using nine colors empirically selected from the 24 colors of the Macbeth color chart, and the error in the conversion coefficients calculated using all 24 colors of the Macbeth color chart, and the results were compared.
[0113] Fig. 14 shows a functional configuration for theoretically calculating the error of the conversion coefficient calculated using 9 colors selected from the 24 colors of the Macbeth color chart based on the present disclosure. Fig. 14 has a functional configuration basically similar to that of Fig. 1, but differs from Fig. 1 in that the same Macbeth color chart is used both when calculating the conversion coefficient and when evaluating the accuracy.
[0114] The selection unit 1402 selects nine sample colors from the 24 colors included in the Macbeth color chart, reads out the spectral reflectance data of each selected sample color from the sample color spectral data storage unit 1401, and outputs it to a downstream functional block.
[0115] The RGB value acquisition unit 1403 calculates RGB values when the camera captures a color chart consisting of the nine sample colors selected by the selection unit 1402, based on the spectral reflectance data of each of the nine sample colors, the spectral sensitivity characteristic data of the camera's color filter, and the spectral distribution characteristic data of the imaging light source.
[0116] In addition, the XYZ value acquisition unit 1404 calculates the XYZ values when a color chart consisting of the nine sample colors selected by the selection unit 1402 is observed under a viewing environment, based on the color matching function from the spectral reflectance data of each of the nine sample colors selected by the selection unit 1402 and the spectral distribution characteristic data of the viewing light source.
[0117] The conversion information calculation unit 1405 compares the RGB values of the camera output acquired by the RGB value acquisition unit 1403 with the XYZ values acquired by the XYZ value acquisition unit 1404, and calculates conversion coefficients for converting the RGB values into XYZ values using the least squares method or the like.
[0118] The accuracy evaluation RGB value acquisition unit 1407 calculates RGB values when the camera captures a color chart consisting of the 24 sample colors of the Macbeth color chart, from the spectral reflectance data of each of the 24 sample colors of the Macbeth color chart, the spectral sensitivity characteristic data of the camera's color filter, and the spectral distribution characteristic data of the imaging light source.
[0119] The accuracy evaluation XYZ value acquisition unit 1408 calculates the XYZ values when a color chart consisting of 24 sample colors of the Macbeth color chart is observed under a viewing environment, based on the color matching function from the spectral reflectance data of each of the 24 sample colors of the Macbeth color chart and the spectral distribution characteristic data of the viewing light source.
[0120] The conversion unit 1409 converts the RGB values for accuracy evaluation acquired by the accuracy evaluation RGB value acquisition unit 1407 into XYZ values using the conversion coefficients calculated by the conversion information calculation unit 1405 .
[0121] The error calculation unit 1410 compares the XYZ values obtained by the conversion unit 1409 converting the RGB values using the conversion coefficients with the XYZ values for accuracy evaluation obtained by the accuracy evaluation XYZ value acquisition unit 1408, and calculates the error of the conversion coefficients calculated by the conversion information calculation unit 1405 based on the set target. The error calculation unit 1410 sets a target for error calculation based on the target of color reproduction or the application field of the conversion information. The target setting enables processing such as increasing the accuracy of a specific sample color according to the target application field.
[0122] The error calculated by the error calculation unit 1410 is fed back to the selection unit 1402. Then, the selection unit 1402 uses an optimization algorithm to select nine sample colors from the 24 colors included in the Macbeth color chart so that the error in the conversion coefficients is minimized. In this way, the error calculated using the nine optimized sample colors can be obtained.
[0123] Fig. 15 shows a functional configuration for theoretically calculating the error of the conversion coefficient calculated using 9 colors empirically selected from the 24 colors of the Macbeth color chart, as a comparison with Fig. 14. Fig. 15 differs from the functional configuration shown in Fig. 14 in that a target is not set when calculating the error of the conversion coefficient, and the calculated error is not fed back, but otherwise they are the same.
[0124] The selection unit 1502 empirically selects nine sample colors from the 24 colors included in the Macbeth color chart, reads out the spectral reflectance data of each selected sample color from the sample color spectral data storage unit 1501, and outputs it to a downstream functional block.
[0125] The RGB value acquisition unit 1503 calculates RGB values when the camera captures nine empirically selected sample colors. The XYZ value calculation unit 1504 calculates XYZ values when the nine empirically selected sample colors are observed under a viewing environment based on color matching functions. The conversion information calculation unit 1505 then calculates conversion coefficients for converting the RGB values of the camera output acquired by the RGB value acquisition unit 1503 into the XYZ values acquired by the XYZ value acquisition unit 1504 using the least squares method or the like.
[0126] The accuracy evaluation RGB value acquisition unit 1507 calculates the RGB values when the 24 colors of the Macbeth color chart are captured by the camera. The accuracy evaluation XYZ value acquisition unit 1508 calculates the XYZ values when the 24 colors of the Macbeth color chart are observed under a viewing environment based on the color matching function. The conversion unit 1509 converts the accuracy evaluation RGB values acquired by the accuracy evaluation RGB value acquisition unit 1507 into XYZ values using the conversion coefficients calculated by the conversion information calculation unit 1505. Then, the error calculation unit 1510 compares the XYZ values converted by the conversion unit 1509 with the accuracy evaluation XYZ values acquired by the accuracy evaluation XYZ value acquisition unit 1508 to calculate the error of the conversion coefficients calculated by the conversion information calculation unit 1505. However, since nine colors are empirically selected from the original 24 colors, no target setting is performed when calculating the error. In this way, the error calculated using nine empirically selected sample colors can be obtained.
[0127] Moreover, Fig. 16 shows a functional configuration for theoretically calculating the error of the conversion coefficient calculated using all 24 colors of the Macbeth color chart, as a further comparison with Fig. 14. Since all the original sample colors are used in the calculation of the conversion coefficient, it does not include a selection unit for selecting some of the sample colors.
[0128] The RGB value acquisition unit 1602 calculates RGB values when the camera captures a color chart consisting of the 24 sample colors of the Macbeth color chart, from the spectral reflectance data of each of the 24 sample colors of the Macbeth color chart read out from the sample color spectral data storage unit 1601, the spectral sensitivity characteristic data of the camera's color filter, and the spectral distribution characteristic data of the imaging light source.
[0129] In addition, the XYZ value acquisition unit 1603 calculates the XYZ values when a color chart consisting of 24 sample colors of the Macbeth color chart is observed under a viewing environment, based on the color matching function from the spectral reflectance data of each of the 24 sample colors of the Macbeth color chart and the spectral distribution characteristic data of the viewing light source.
[0130] The conversion information calculation unit 1604 compares the RGB values of the camera output acquired by the RGB value acquisition unit 1602 with the XYZ values acquired by the XYZ value acquisition unit 1603, and calculates conversion coefficients for converting the RGB values into XYZ values using the least squares method or the like.
[0131] The conversion unit 1605 converts the RGB values acquired by the RGB value acquisition unit 1602 into XYZ values using the conversion coefficients calculated by the conversion information calculation unit 1604 .
[0132] The error calculation unit 1606 compares the XYZ values converted from RGB values by the conversion unit 1605 using the conversion coefficients with the XYZ values acquired by the XYZ value acquisition unit 1603, and calculates the error in the conversion coefficients calculated by the conversion information calculation unit 1604.
[0133] In the configuration examples shown in FIGS. 14 to 16, four types of imaging light sources are used: D65, White LED, high color rendering White LED, and fluorescent lamp; all observation light sources are D65, and all cameras are RGB single-chip.
[0134] Next, the sample colors used in each of FIGS. 14 to 16 will be described.
[0135] Figure 17 shows the Macbeth color chart. The Macbeth color chart has 24 sample colors arranged in a 4 x 6 matrix from the top left to the bottom right. Each sample color is assigned a unique name such as "Dark Skin," "Light Skin," "bluesky," etc., and each has a specified spectral reflectance.
[0136] Figure 18 shows an example of nine colors empirically selected from the 24 colors of the Macbeth color chart. In this figure, two colors of Skin, a low-saturation bluesky, three primary colors of BGR, and three colors of White & Gray have been empirically selected from the original 24 colors with the goal of reproducing skin.
[0137] Figure 19 shows an example of setting a target for each color for the calculated color difference in the method of converting the camera output XYZ values and observed XYZ values shown in Figure 2 into two-dimensional xy coordinates and comparing them. Specifically, the delta-x and delta-y standard deviations of low saturation from the 24 evaluation colors of the Macbeth color chart and the coordinate movement distance of 6 white-gray colors are calculated, and the goal is set to minimize the sum of these two. The 12 low saturation colors include 2 skin colors, and the smaller this standard deviation, the more likely it is that skin reproducibility will be good.
[0138] The inventor compared the errors (error standard deviation and coordinate movement distance) calculated using each assumed imaging light source (D65, White LED, high color rendering White LED, fluorescent lamp) for each of the following cases: when all 24 colors of the Macbeth color chart are used (all 24 colors: see FIG. 16), when 9 colors empirically selected from the 24 colors are used (empirical 9 colors: see FIG. 15), and when the optimal 9 colors are selected from the 24 colors (optimal 9 colors: see FIG. 14). However, for all 24 colors and the empirical 9 colors, the error calculation was performed using the same color chip regardless of the imaging light source, and for the optimal 9 colors, the error calculation was performed using a color chip of 9 colors optimized for each imaging light source, and the calculation results were compared.
[0139] As a result, it was confirmed that the accuracy of the conversion coefficients calculated theoretically using a color chart consisting of nine colors optimized by setting a target is higher (the error is smaller) than the accuracy of the conversion coefficients calculated theoretically using a color chart of nine empirical colors, and in some cases, the accuracy is higher than the accuracy of the conversion coefficients calculated theoretically using a color chart of all 24 colors. Once the equipment (camera, light source) is determined, the accuracy of the conversion coefficients can be further improved by using a color chart consisting of a combination of colors optimized based on this disclosure. Note that the optimal combination of nine colors selected based on this disclosure is completely different from the combination of nine colors selected empirically, and the optimal combination of nine colors differs for each imaging light source.
[0140] H. Processing Flow Fig. 20 shows, in the form of a flowchart, a processing procedure for selecting an optimum combination of r sample colors to be used for a color chart for calculating conversion coefficients from among n sample colors each having known spectral reflectance characteristics in the information processing device 100 shown in Fig. 1. Hereinafter, the processing for selecting an optimum combination of sample colors in the information processing device 100 will be described with reference to the flowchart shown in Fig. 20.
[0141] First, the selection unit 102 randomly selects r colors from the n sample colors that are the basis for selection (step S2001), then reads out the spectral reflectance data of each selected sample color from the sample color spectral data storage unit 101, and outputs it to a downstream functional block.
[0142] The RGB value acquisition unit 103 calculates RGB values (camera RGB values) when a color chart consisting of r colors is captured by a camera, based on the spectral reflectance data of each sample color of the r colors selected by the selection unit 102, the spectral sensitivity characteristic data of the color filter of the camera, and the spectral distribution characteristic data of the imaging light source (step S2002).
[0143] In addition, the XYZ value acquisition unit 104 calculates XYZ values (target XYZ values) as target values based on the color matching function from the spectral reflectance data of each of the r sample colors selected by the selection unit 102 and the spectral distribution characteristic data of the light source (observation light source) of the observation environment (step S2003).
[0144] Next, the conversion information calculation unit 105 compares the RGB values of the camera output acquired by the RGB value acquisition unit 103 with the XYZ values acquired by the XYZ value acquisition unit 104, and calculates conversion coefficients for converting the RGB values into XYZ values using the least squares method or the like (step S2004).
[0145] On the other hand, the accuracy evaluation RGB value acquisition unit 107 reads out the spectral reflectance data of each of the p sample colors for accuracy evaluation from the accuracy evaluation sample color spectral data storage unit 106, and calculates the accuracy evaluation RGB values when the camera captures the color chart consisting of these p colors under an imaging environment, based on the color filter spectral sensitivity characteristic data of the camera and the spectral distribution characteristic data of the imaging light source (step S2005).
[0146] In addition, the accuracy evaluation XYZ value acquisition unit 107 calculates XYZ values as target values for accuracy evaluation based on the color matching function from the spectral reflectance data of each of the p sample colors and the spectral distribution characteristic data of the light source (observation light source) of the observation environment (step S2006).
[0147] Next, the conversion unit 109 converts the RGB values for accuracy evaluation acquired by the accuracy evaluation RGB value acquisition unit 107 into XYZ values using the conversion coefficients calculated by the conversion information calculation unit 105 (step S2007). Alternatively, in step S2007, the conversion unit 1099 may convert the XYZ values for accuracy evaluation acquired by the accuracy evaluation XYZ value acquisition unit 108 into RGB values using the conversion coefficients calculated by the conversion information calculation unit 105.
[0148] After calculating the color difference between the RGB values or the XYZ values obtained in steps S2005 to S2007, the error calculation unit 110 weights the color difference for each color in accordance with a set target (step S2008) and calculates the error (standard error, etc.) of the conversion coefficient calculated in step S2004 (step S2009).
[0149] Then, the error calculation unit 110 checks whether the calculated error has become minimum (step S2010). If it is determined that the error of the conversion coefficient has become minimum (Yes in step S2010), the information processing device 100 outputs the conversion coefficient to an external device (for example, a conversion device that performs a process of converting the RGB values of the image captured by the camera into XYZ values), and ends this process.
[0150] On the other hand, if it is determined that the error in the conversion coefficient has not yet reached the minimum (No in step S2010), the error calculation unit 110 feeds back the calculation result to the selection unit 102. Then, the selection unit 102 uses an optimization algorithm to newly select r sample colors from among n colors so that the error in the conversion coefficient is minimized (step S2011), and the same process as above is repeatedly performed.
[0151] According to the processing procedure shown in FIG. 20, it is possible to select the optimal combination of r sample colors depending on the equipment (camera, light source) and target, and therefore it becomes possible to calculate highly accurate conversion coefficients for each equipment and target.
[0152] I. Effects For example, Patent Document 1 discloses a technique for reproducing the colors observed on the observation side by converting the RGB values of the captured image of the subject into XYZ values when observing an image captured by a camera at a remote location. In contrast, the information processing device 100 according to the present disclosure can select a combination of sample colors that is optimal as a color chart to be used when calculating conversion coefficients for converting RGB values into XYZ values.
[0153] As explained in Section F above, there are two methods: (F-1) in which the conversion coefficients and their errors are calculated using RGB values obtained by actually capturing an image of a printed color patch with a camera; and (F-2) in which the color patch is not printed, but the camera captures the color patch and calculates the output RGB values based on the spectral reflectance characteristics of each sample color stored as data, the spectral sensitivity characteristics of the camera's color filter, and the spectral distribution characteristics of the imaging light source.
[0154] When the method (F-1) is adopted, it is necessary to select sample colors in advance in order to print a color chart, but according to the present disclosure, there is an effect that the number of colors in the color chart can be reduced, thereby reducing printing costs. In addition, when the equipment to be used and the target color reproduction are determined, it is possible to select an optimal combination of sample colors with a smaller number of colors and propose an optimal color chart. By using an optimal color chart, it is possible to improve the accuracy of the conversion coefficients, in other words, the accuracy of color reproduction. On the other hand, when the equipment to be used is not determined, it is possible to select a more optimal combination of sample colors by assuming the equipment and applying weighting or the like. The method of selecting sample colors can be realized by either an actual equipment (camera or display device) or a computer other than the actual equipment.
[0155] When method (F-2) is adopted, the color chips are not printed, but the spectral reflectance characteristic data of each sample color is stored, and since the equipment (camera, light source) can be specified (i.e., the spectral characteristics of each equipment are known), it is possible to dynamically select the optimal combination of sample colors according to the environment and the goal. Therefore, by using the optimal color chip, it is possible to improve the accuracy of the conversion coefficients, in other words, the accuracy of color reproduction. The method of selecting sample colors can basically be realized on a computer.
[0156] In addition, in either method (F-1) or (F-2), by setting a color reproduction target and calculating an error according to the target, it is possible to control the color reproduction accuracy of a specific color.
[0157] J. Hardware configuration of information processing device Fig. 21 shows an example of a hardware configuration of an information processing device 100 capable of realizing the functional configuration shown in Fig. 1. The illustrated information processing device 100 includes a CPU 2001, a ROM (Read Only Memory) 2002, a RAM (Random Access Memory) 2003, a host bus 2004, a bridge 2005, an expansion bus 2006, an interface unit 2007, an input unit 2008, an output unit 2009, a storage unit 2010, a drive 2011, and a communication unit 2013.
[0158] The CPU 2001 functions as an arithmetic processing device and control device, and controls the overall operation of the information processing device 100 in accordance with various programs. The ROM 2002 stores in a non-volatile manner the programs (basic input / output system, etc.) and arithmetic parameters used by the CPU 2001. The RAM 2003 is used to load programs used in the execution of the CPU 2001, and to temporarily store parameters such as working data that change as appropriate during program execution. Programs loaded into the RAM 2003 and executed by the CPU 2001 include, for example, various application programs and an operating system (OS).
[0159] The CPU 2001, the ROM 2002, and the RAM 2003 are connected to each other by a host bus 2004 including a CPU bus and the like. The CPU 2001 can execute various application programs under an execution environment provided by the OS through cooperative operation of the ROM 2002 and the RAM 2003, thereby realizing various functions and services. If the information processing device 100 is a personal computer, the OS is, for example, Windows or Unix from Microsoft Corporation. If the information processing device 100 is an information terminal such as a smartphone or a tablet, the OS is, for example, iOS from Apple Inc. or Android from Google Inc. The application program includes an application for executing the processing procedure shown in FIG. 20, or an application for the information processing device 100 to operate as each functional block in FIG. 1.
[0160] The host bus 2004 is connected to an expansion bus 2006 via a bridge 2005. The expansion bus 2006 is, for example, a PCI (Peripheral Component Interconnect) bus or PCI Express, and the bridge 2005 is based on the PCI standard. However, the information processing device 100 does not need to be configured such that the circuit components are separated by the host bus 2004, the bridge 2005, and the expansion bus 2006, and may be implemented such that almost all circuit components are interconnected by a single bus (not shown).
[0161] The interface unit 2007 connects peripheral devices such as an input unit 2008, an output unit 2009, a storage unit 2010, a drive 2011, and a communication unit 2013 in accordance with the standard of the expansion bus 2006. However, not all of the peripheral devices shown in Fig. 21 are necessarily required, and the information processing device 100 may further include peripheral devices not shown. The peripheral devices may be built into the main body of the information processing device 100, or some of the peripheral devices may be externally connected to the main body of the information processing device 100.
[0162] The input unit 2008 is composed of an input control circuit that generates an input signal based on an input from a user and outputs the signal to the CPU 2001. When the information processing device 100 is a personal computer, the input unit 2008 may include a keyboard, a mouse, and a touch panel, and may further include a camera and a microphone. When the information processing device 100 is an information terminal such as a smartphone or a tablet, the input unit 2008 is, for example, a touch panel, a camera, and a microphone, but may also include other mechanical operators such as buttons.
[0163] The output unit 2009 includes audio output devices such as speakers and headphones, and display devices such as an LCD, an organic EL display, and an LED (Light Emitting Diode).
[0164] The storage unit 2010 stores files such as programs (applications, OS, etc.) executed by the CPU 2001 and various data. The data stored in the storage unit 2010 may include a corpus of normal voice and whispered voice (described above) for training a neural network. The storage unit 2010 is configured with a large capacity storage device such as an SSD (Solid State Drive) or HDD (Hard Disk Drive), but may also include an external storage device.
[0165] The removable storage medium 2012 is a storage medium configured in a cartridge format, such as a microSD card. The drive 2011 performs read and write operations on the loaded removable storage medium 113. The drive 2011 outputs data read from the removable storage medium 2012 to the RAM 2003 or the storage unit 2010, and writes data on the RAM 2003 or the storage unit 2010 to the removable storage medium 2012.
[0166] The communication unit 2013 is a device that performs wireless communication such as Wi-Fi (registered trademark), Bluetooth (registered trademark), and cellular communication networks such as 4G and 5G. The communication unit 2013 may further include terminals such as USB and HDMI (registered trademark), and may further include a function of performing HDMI (registered trademark) communication with USB devices such as scanners and printers, displays, and the like.
[0167] The information processing device 100 is assumed to be a PC, but it is not limited to one device, and the information processing device 100 shown in FIG. 1 can be realized by distributing it across two or more PCs, or it can be configured to execute various applications for selecting optimal colors according to target settings or calculating conversion coefficients using a color chart consisting of optimally selected colors.
[0168] The information processing device 100 shown in FIG. 21 can realize the functional configuration as shown in FIG. 1 by executing a specified program code, and can also perform the processing procedure as shown in FIG. 20, thereby selecting the color combination that is optimal as a color chart for a set target, and generating highly accurate conversion information based on the optimal color chart and providing it to the conversion device. [Industrial Applicability]
[0169] The present disclosure has been described in detail above with reference to specific embodiments. However, the present disclosure should not be interpreted as being limited to the above-mentioned embodiments, and it is obvious that a person skilled in the art can modify or substitute the embodiments without departing from the gist of the present disclosure. In addition, the effects described in this specification are merely examples, and the effects brought about by the present disclosure are not limited, and there may be additional effects not described in this specification.
[0170] Although the present disclosure has been described in detail herein with reference to specific embodiments, the scope of the present disclosure is not limited thereto.
[0171] The present disclosure can be applied, for example, to the field of remote medical care. In this case, the present disclosure is applied to a scene where a doctor examines a patient at Hospital A by displaying an image of the patient on a monitor at another Hospital B, and the face color of the patient displayed on the monitor is reproduced in the same color as observed by the doctor at Hospital B, so that the doctor can remotely examine the patient at Hospital A in the same way as if he were at Hospital B. The present disclosure can also be applied to a scene where a work robot is remotely operated at a difficult work site such as a construction site, a nuclear power plant, or outer space, and an operator can give instructions (for example, remotely operate a robot) while observing an on-site image reproduced with high accuracy.
[0172] Furthermore, the scope of application of the present disclosure is not limited to cases where the image environment and the observation environment are physically separated by a large distance, but can include various situations in which the color of a subject in an imaging environment cannot be accurately reproduced in the observation environment.
[0173] In short, the present disclosure has been described in the form of examples, and the contents of the specification should not be interpreted as being limited. In order to judge the gist of the present disclosure, the claims should be taken into consideration.
[0174] The series of processes described in this specification can be executed by hardware, software, or a combination of hardware and software. When executing the processes by software, a program recording the processing sequence related to the realization of the present disclosure is installed in the memory of a computer incorporated in dedicated hardware and executed. It is also possible to install the program in a general-purpose computer capable of executing various processes and execute the processes related to the realization of the present disclosure.
[0175] The program can be stored in advance in a recording medium installed in a computer, such as a HDD, SSD, or ROM. Alternatively, the program can be temporarily or permanently stored in a removable recording medium, such as a flexible disk, a CD-ROM (Compact Disc Read Only Memory), an MO (Magneto optical) disk, a DVD (Digital Versatile Disc), a BD (Blu-Ray Disc (registered trademark)), a magnetic disk, or a USB (Universal Serial Bus) memory. Using such a removable recording medium, a program related to the realization of the present disclosure can be provided as so-called package software.
[0176] The program may also be transferred wirelessly or wired from a download site to a computer via a network such as a WAN (Wide Area Network) represented by a cellular network, a LAN (Local Area Network), the Internet, etc. The computer can receive the program transferred in this manner and install it in a large-capacity storage device such as an HDD or SSD within the computer.
[0177] The present disclosure can also be configured as follows.
[0178] (1) a selection unit for selecting r sample colors from n sample colors (where n and r are both positive integers, n>r); a first acquisition unit that acquires RGB values output by an imaging device when the imaging device captures each sample color selected by the selection unit in an imaging environment; a second acquisition unit that acquires XYZ values when each sample color selected by the selection unit is observed in a viewing environment; a conversion information calculation unit that calculates conversion information for converting an RGB value into an XYZ value based on the RGB value acquired by the first acquisition unit and the XYZ value acquired by the second acquisition unit; an error calculation unit that calculates an error in the conversion information calculated by the conversion information calculation unit; Equipped with the selection unit selects r sample colors from the n sample colors based on the error. Information processing device.
[0179] (2) the selection unit selects r sample colors from the n sample colors so as to minimize the error; The information processing device according to (1) above.
[0180] (3) the first acquisition unit calculates RGB values to be output by the imaging device when the imaging device captures each sample color selected by the selection unit, based on the spectral reflectance characteristics of each sample color selected by the selection unit, the spectral sensitivity characteristics of the imaging device, and the spectral distribution characteristics of an imaging light source in the imaging environment; An information processing device according to any one of (1) and (2) above.
[0181] (4) the second acquisition unit calculates XYZ values when observing each sample color selected by the selection unit based on a color matching function, using a spectral distribution characteristic of an observation light source in the observation environment; An information processing device according to any one of (1) to (3) above.
[0182] (5) a third acquisition unit that acquires an accuracy evaluation RGB value output by the imaging device when the imaging device captures an accuracy evaluation sample color in the imaging environment; and a fourth acquisition unit that acquires XYZ values for accuracy evaluation when the accuracy evaluation sample color is observed in the observation environment; Further equipped with the error calculation unit calculates an error of the conversion information by using the accuracy evaluation RGB values and the accuracy evaluation XYZ values. An information processing device according to any one of (1) to (4) above.
[0183] (6) the third acquisition unit calculates the accuracy evaluation RGB value based on a spectral reflectance characteristic of an accuracy evaluation sample color, a spectral sensitivity characteristic of the imaging device, and a spectral distribution characteristic of a light source in the imaging environment; and the fourth acquisition unit calculates the accuracy evaluation XYZ values based on color matching functions by using a spectral distribution characteristic of a light source in the viewing environment; The information processing device according to (5) above.
[0184] (7) A conversion unit that converts the RGB values for accuracy evaluation into XYZ values or converts the XYZ values for accuracy evaluation into RGB values using the conversion information, The error calculation unit compares the XYZ values converted from the RGB values for accuracy evaluation by the conversion unit with the XYZ values for accuracy evaluation, or compares the RGB values converted from the XYZ values for accuracy evaluation by the conversion unit with the RGB values for accuracy evaluation, to calculate an error in the conversion information. The information processing device according to (6) above.
[0185] (8) The error calculation unit sets a target for error calculation based on a target for color reproduction or an application field of the conversion information. The information processing device according to (7) above.
[0186] (9) The error calculation unit calculates an error by weighting each sample color according to the target. The information processing device according to (8) above.
[0187] (10) When comparing the XYZ values converted from the RGB values for accuracy evaluation by the conversion unit with the XYZ values for accuracy evaluation, the error calculation unit calculates two-dimensional xy coordinates of each XYZ value, and then calculates the average, sum, and standard deviation of coordinate distances for each color, or the average, sum, and standard deviation of errors between each other's x(y) values. An information processing device according to any one of (7) to (9) above.
[0188] (11) When comparing the XYZ values converted from the RGB values for accuracy evaluation by the conversion unit with the XYZ values for accuracy evaluation, the error calculation unit converts each XYZ value into an L*a*b value, calculates a DE2000 value indicating the color difference between the XYZ values for accuracy evaluation for each sample color, and calculates the average, sum, and standard deviation of the DE2000 values for each sample color. An information processing device according to any one of (7) to (9) above.
[0189] (12) The selection unit selects r sample colors from the n sample colors by using a generalized simplified gradient method so that the error is minimized. The information processing device according to (2) above.
[0190] (13) a selection step of selecting r sample colors from the n sample colors (where n and r are both positive integers, n>r); a first acquisition step of acquiring RGB values output by an imaging device when the imaging device captures each sample color selected in the selection step in an imaging environment; a second acquisition step of acquiring XYZ values when each sample color selected in the selection step is observed in a viewing environment; a conversion information calculation step of calculating conversion information for converting RGB values into XYZ values based on the RGB values acquired by the first acquisition unit and the XYZ values acquired by the second acquisition unit; an error calculation step of calculating an error of the converted information calculated in the converted information calculation step; having In the selecting step, r sample colors are selected from the n sample colors based on the error. Information processing methods.
[0191] (14) a selection unit for selecting r sample colors from n sample colors (where n and r are both positive integers, n>r); a first acquisition unit that acquires RGB values output by an imaging device when the imaging device captures each sample color selected by the selection unit in an imaging environment; a second acquisition unit that acquires XYZ values when each sample color selected by the selection unit is observed in a viewing environment; a conversion information calculation unit that calculates conversion information for converting RGB values into XYZ values based on the RGB values acquired by the first acquisition unit and the XYZ values acquired by the second acquisition unit; an error calculation unit that calculates an error in the conversion information calculated by the conversion information calculation unit; and the selection unit selects r sample colors from the n sample colors based on the error. Computer program.
[0192] (15) converting the RGB values output from the imaging device into XYZ values using the conversion information; The conversion information is calculated so that RGB values output by the imaging device that captures the optimal r sample colors selected from n sample colors (where n and r are both positive integers and n>r) can be converted into XYZ values when the optimal r sample colors are observed in a viewing environment. Information processing device. [Explanation of symbols]
[0193] 100: information processing device, 101: sample color spectrum data storage unit 102... selection unit, 103... RGB value acquisition unit, 104... RGB value acquisition unit 105...Conversion information calculation unit 106... Accuracy evaluation sample color spectrum data storage unit 107…RGB value acquisition unit for accuracy evaluation 108: XYZ value acquisition unit for accuracy evaluation, 109: conversion unit 110...Error calculation section 201, 202... xy calculation section, 203... weighting section 204…Standard deviation calculation section 301, 302…L * a * b * Calculation section, 303...DE2000 calculation section 304: weighting unit, 305: standard deviation calculation unit 1200: camera, 1201: communication unit, 1202: imaging unit 1203: external light sensor 1204: processing unit 1300...Display device, 1301...Communication section, 1302...Display section 1303: external light sensor; 1304: processing unit 1401: sample color spectral data storage unit; 1402: selection unit 1403: RGB value acquisition unit, 1404: XYZ value acquisition unit 1405: conversion information calculation unit, 1407: RGB value acquisition unit for accuracy evaluation 1408: XYZ value acquisition unit for accuracy evaluation, 1409: conversion unit 1410...Error calculation section 1501 sample color spectral data storage unit, 1502...selection unit 1503: RGB value acquisition unit, 1504: XYZ value acquisition unit 1505: conversion information calculation unit, 1507: RGB value acquisition unit for accuracy evaluation 1508: XYZ value acquisition unit for accuracy evaluation, 1509: conversion unit 1510...Error calculation section 1601: Sample color spectral data storage unit; 1602: RGB value acquisition unit 1603: XYZ value acquisition unit; 1604: conversion information acquisition unit 1605: conversion unit; 1606: error calculation unit 2001…CPU, 2002…ROM, 2003…RAM 2004…Host bus, 2005…Bridge, 2006…Expansion bus 2007: Interface section, 2008: Input section, 2009: Output section 2010…Storage section, 2011…Drive 2012…Removable Recording Media, 2013…Communications Department 2200: color reproduction system, 2210: imaging device, 2211: imaging light source 2220: display device, 2221: observation light source, 2230: conversion device 2240…Information processing device
Claims
1. a selection unit for selecting r sample colors from among n sample colors (where n and r are both positive integers and n>r); a first acquisition unit that acquires RGB values output by an imaging device when the imaging device captures each sample color selected by the selection unit in an imaging environment; a second acquisition unit that acquires XYZ values when each sample color selected by the selection unit is observed in a viewing environment; a conversion information calculation unit that calculates conversion information for converting the RGB values into XYZ values based on the RGB values acquired by the first acquisition unit and the XYZ values acquired by the second acquisition unit; an error calculation unit that calculates an error in the conversion information calculated by the conversion information calculation unit; Equipped with the selection unit selects r sample colors from the n sample colors based on the error. Information processing device.
2. the selection unit selects r sample colors from the n sample colors so as to minimize the error. The information processing device according to claim 1 .
3. the first acquisition unit calculates RGB values to be output by the imaging device when the imaging device captures each sample color selected by the selection unit, based on the spectral reflectance characteristics of each sample color selected by the selection unit, the spectral sensitivity characteristics of the imaging device, and the spectral distribution characteristics of an imaging light source in the imaging environment; The information processing device according to claim 1 .
4. the second acquisition unit calculates XYZ values when observing each sample color selected by the selection unit based on color matching functions, using a spectral distribution characteristic of an observation light source in the observation environment. The information processing device according to claim 1 .
5. a third acquisition unit that acquires an accuracy evaluation RGB value output by the imaging device when the imaging device captures an accuracy evaluation sample color in the imaging environment; a fourth acquisition unit that acquires XYZ values for accuracy evaluation when the accuracy evaluation sample color is observed in the observation environment; Further equipped with the error calculation unit calculates an error of the conversion information by using the accuracy evaluation RGB values and the accuracy evaluation XYZ values; The information processing device according to claim 1 .
6. the third acquisition unit calculates the accuracy evaluation RGB value based on a spectral reflectance characteristic of an accuracy evaluation sample color, a spectral sensitivity characteristic of the imaging device, and a spectral distribution characteristic of a light source in the imaging environment; and the fourth acquisition unit calculates the accuracy evaluation XYZ values based on color matching functions by using a spectral distribution characteristic of a light source in the viewing environment; The information processing device according to claim 5 .
7. A conversion unit that converts the accuracy evaluation RGB values into XYZ values or converts the accuracy evaluation XYZ values into RGB values using the conversion information, The error calculation unit compares the XYZ values converted from the RGB values for accuracy evaluation by the conversion unit with the XYZ values for accuracy evaluation, or compares the RGB values converted from the XYZ values for accuracy evaluation by the conversion unit with the RGB values for accuracy evaluation, to calculate an error in the conversion information. The information processing device according to claim 6.
8. the error calculation unit sets a target for error calculation based on a target for color reproduction or an application field of the conversion information; The information processing device according to claim 7.
9. the error calculation unit calculates an error by weighting each sample color according to the target. The information processing device according to claim 8.
10. When comparing the XYZ values converted from the RGB values for accuracy evaluation by the conversion unit with the XYZ values for accuracy evaluation, the error calculation unit calculates two-dimensional x and y coordinates of each XYZ value, and then calculates the average, sum, and standard deviation of the coordinate distances for each color, or the average, sum, and standard deviation of the errors between the x (y) values. The information processing device according to claim 7.
11. When comparing the XYZ values converted from the RGB values for accuracy evaluation by the conversion unit with the XYZ values for accuracy evaluation, the error calculation unit converts each XYZ value into an L*a*b value, calculates a DE2000 value indicating the color difference between the XYZ values for accuracy evaluation for each sample color, and calculates the average, sum, and standard deviation of the DE2000 values for each sample color. The information processing device according to claim 7.
12. the selection unit selects r sample colors from the n sample colors so as to minimize the error by using a generalized reduced gradient method; The information processing device according to claim 2 .
13. a selection unit for selecting r sample colors from among n sample colors (where n and r are both positive integers and n>r); a first acquisition unit that acquires RGB values output by an imaging device when the imaging device captures each sample color selected by the selection unit in an imaging environment; a second acquisition unit that acquires XYZ values when each sample color selected by the selection unit is observed in a viewing environment; a conversion information calculation unit that calculates conversion information for converting the RGB values into XYZ values based on the RGB values acquired by the first acquisition unit and the XYZ values acquired by the second acquisition unit; an error calculation unit that calculates an error in the conversion information calculated by the conversion information calculation unit; and the selection unit selects r sample colors from the n sample colors based on the error. Computer program.
14. Converting the RGB values output from the imaging device into XYZ values using the conversion information; the conversion information is calculated by using r optimal sample colors selected from n sample colors (where n and r are both positive integers and n>r), so that RGB values output by the imaging device that has imaged the r optimal sample colors can be converted into XYZ values when the r optimal sample colors are observed in an observation environment. Information processing device.
Citation Information
Patent Citations
Information processing device and information processing method
JP2022182590A
