The present application is based on, and claims priority from JP Application Serial Number 2021-083698, filed May 18, 2021, the disclosure of which is hereby incorporated by reference herein in its entirety.
The present disclosure relates to a spectrometer and a computer program.
For example, JP-A-2014-38081 discloses a method for measuring colors (color chart) printed on a medium with a reference spectral colorimeter and a spectrometer, determining a standard correction value (estimated matrix) in advance, applying the correction value to a spectrometer, and producing a reflection spectrum close to that produced by the reference spectral colorimeter.
For example, U.S. Pat. No. 10,605,660 discloses a method for producing a reflection spectrum by adding a coefficient to a transmission profile.
The method described in JP-A-2014-38081, however, has a problem of incorrect correction in a case where a medium under measurement differs from a medium used to determine the correction value. In addition, the method has another problem of necessity for determination of another correction value in a case where the spectrometer is formed of a different illumination light source, a different spectroscopic element, or any other different element. Furthermore, when an unknown illumination light source is used, as in the case of a spectroscopic camera, a correct reflection spectrum cannot be produced, and other problems are encountered.
The method described in U.S. Pat. No. 10,605,660 does not describe the sensitivity spectrum of the light receiver or the illumination spectrum, and has a problem of unclear characteristics contained in the transmission profile.
That is, there is a need for a versatile correction method that allows measurement of a correct optical spectrum with no need for preparation of a correction value in advance and with no need for any component other than a spectrometer.
A spectrometer includes a variable wavelength spectroscopic filter and a photosensor, and a method for correcting the spectrometer includes causing light having a first wave number from a spectroscopic light source to be incident on the variable wavelength spectroscopic filter, causing the photosensor to receive light having a second wave number and outputted from the variable wavelength spectroscopic filter, generating a matrix representing spectral characteristics of the light having the second wave number based on an output from the photosensor, and generating a correction matrix based on an inverse matrix of the matrix and storing the correction matrix in a storage section.
A non-transitory computer-readable storage medium stores a computer program for correcting a spectrometer including a variable wavelength spectroscopic filter and a photosensor, the computer program including causing light having a first wave number from a spectroscopic light source to be incident on the variable wavelength spectroscopic filter, causing the photosensor to receive light having a second wave number and outputted from the variable wavelength spectroscopic filter, generating a matrix representing spectral characteristics of the light having the second wave number based on an output from the photosensor, and generating a correction matrix based on an inverse matrix of the matrix and storing the correction matrix in a storage section.
How to determine a correction value for a spectrometer will first be described.
The spectral output from a spectrometer is the product of the true spectral characteristics of a measurement target object and the characteristics of a spectroscopic element as a variable wavelength spectroscopic filter. Specifically, let P be the spectral output from the spectrometer (matrix: (m×1)), M be the characteristics of the spectroscopic element, and R be the true spectral characteristics of the measurement target object (matrix: (m×1)), and the spectral output P can be determined by Expression (1) below. That is, the spectral output P can be produced by generating a matrix (m×m) representing the characteristics M of the spectroscopic element.
P=M·R (1)
The true spectral characteristics R of the measurement target object can therefore be determined by multiplying the spectral output P from the spectrometer by a correction matrix in the form of an inverse matrix generated by using the characteristics of the spectroscopic element. The inverse matrix of the characteristics of the spectroscopic element is the correction value.
Specifically, let M−1 be the inverse matrix of the characteristics of the spectroscopic element, and the true spectral characteristics R of the measurement target object can be determined by Expression (2) below.
R=M−1·P (2)
How to determine Expression (2) from Expression (1) can be determined by Expressions (3) to (6) below. The inverse matrix M−1 is the correction value.
P=M·R (3)
M−1·P=M−1·M·R (4)
M−1·P=E·R (5)
M−1·P=R (6)
M in Expression (3) is a square matrix, that is, a matrix having the same number of rows and columns. Furthermore, M is a regular matrix, that is, an inverse matrix can be derived from M. E in Expression (5) is the unit matrix, that is, “1”.
The spectral characteristics of the spectroscopic element, and difference between measured values from a spectrometer equipped with the spectroscopic element and the true spectral characteristics will next be described with reference to
The measurement target object is BCRA 12-color tiles used as a colorimetry reference. The spectroscopic element is a wavelength-variable Fabry-Perot etalon and has a full width at half maximum (resolution) of about 45 nm at the maximum.
The graphs shown in
The graphs shown in
The configuration of a spectroscopic camera 100 as the spectrometer according to the present embodiment will next be described with reference to
The spectroscopic camera 100 includes a measurement unit 10 and a control unit 20, as shown in
The measurement unit 10 includes a light-incident-side optical system 40, which light from a spectroscopic light source 30 enters, a bandpass filter (BPF) 50, a spectroscopic element 60, which spectroscopically separates light incident thereon, and a light receiver 70 as a photosensor that captures the light spectroscopically separated by the spectroscopic element 60.
The light-incident-side optical system 40 includes, for example, an autofocus mechanism. The light-incident-side optical system 40 is formed, for example, of a telecentric optical system, and guides light 31 having a first wave number to the spectroscopic element 60 in such a way that the optical axis of the light-incident-side optical system 40 is parallel or substantially parallel to the chief ray of the incident light.
The spectroscopic element 60 is, for example, a wavelength selective filter and is specifically a Fabry-Perot-type filter capable of changing the transmission wavelength band. The spectroscopic element 60 is a wavelength-variable interference filter including a pair of substrates 61 and 62, a pair of reflection films 63 and 64 facing each other, and a gap changer 65 capable of changing the dimension of the gap between the reflection films 63 and 64. The gap changer 65 is formed, for example, of an electrostatic actuator. The wavelength-variable interference filter is also called an etalon. The spectroscopic element 60 is disposed in the optical path of the light to be incident on the light receiver 70.
The spectroscopic element 60 changes the dimension of the gap between the reflection films 63 and 64 by changing the voltage applied to the gap changer 65 under the control of the control unit 20 to change an output wavelength λi (i=1, 2, . . . , N), which is the wavelength of the light passing through the reflection films 63 and 64.
The light receiver 70 is, for example, a CCD (charge coupled Device) and is an imaging device that photoelectrically converts light 32 having passed through the spectroscopic element 60 and having a second wave number to produce an electric signal representing the measurement target object.
The spectroscopic element 60 of the spectroscopic camera 100 sequentially receives instructions representing a plurality of measurement bands (multiple bands) from the control unit 20, so that the wavelength of the light that passes through the spectroscopic element 60 is sequentially changed. The spectroscopic camera 100 thus captures images of the measurement target object with sensitivities at the plurality of wavelength bands.
The control unit 20 includes a processor 21, which generates a matrix representing the spectral characteristics based on the output from the light receiver 70 and further generates a correction matrix by using the inversion matrix of the matrix, and a storage section 24 as a storage that stores the correction matrix. Specifically, the processing section 21 includes a matrix generator 22, which generates the matrices described above, and a correction matrix generator 23, which generates the correction matrix. The control unit 20 includes one or more processors, and the one or more processors, for example, operate in accordance with a control program stored in the storage section 24 to allow the control unit 20 to oversee and control the operation of the spectroscopic camera 100.
The processing section 21 carries out a variety of processes by executing the control program as a computer program. The storage section 24 includes a RAM (random access memory), a ROM (read only memory), and other memories. The RAM is used to temporarily store a variety of data and other pieces of information, and the ROM stores the control program, control data, and other pieces of information for controlling the operation of the spectroscopic camera 100. The processing section 21 carries out the processes by using the data and parameters stored in the storage section 24.
How to determine the spectral characteristics of the spectroscopic camera 100 according to the present embodiment will next be described with reference to
The spectral characteristics of the spectroscopic element 60 are measured with the light receiver 70 such as an area sensor by introducing light from the spectroscopic light source (constant energy spectroscopic light source PVL-3310 manufactured by Asahi Spectra Co., Ltd.) into the spectroscopic camera 100. That is, the spectral characteristics are measured as those of the spectroscopic camera 100. The spectral characteristics measured by the spectroscopic camera 100 also contain the spectral characteristics of the bandpass filter 50 and the light receiver 70, as described above. Specifically, the spectral characteristics can be determined by Expression (7) below.
M(eλ,λ)=ET(eλ,λ)·B(λ)·PD(λ) (7)
Expression (7) can be used to determine the spectral characteristics M measured by the spectroscopic camera 100. M represents the product of the characteristics of the components described above (m×m matrix). ET represents the spectral characteristic of the spectroscopic element 60. B represents the spectral characteristics of the bandpass filter 50. PD represents the sensitivity of the light receiver 70. The second wavelength number eλ represents driving wavelengths at which the spectroscopic element 60 is driven (measurement interval). λ represents data wavelengths at which data on the characteristics are provided (data interval). That is, there are two methods for generating the spectral characteristics: a method for directly measuring the spectral characteristics as described above; and a method for calculating the spectral characteristics by multiplying the data on the characteristics.
In
The spectroscopic camera 100 according to the present embodiment performs the measurement by multiplying the output P from the spectroscopic camera 100 by the correction matrix in the form of the inverse matrix M−1 of the matrix representing the actually measured spectral characteristics shown in
Rt(λ)=M−1(λ,eλ)·P(eλ) (8)
Specifically, Rt in Expression (8) represents the true output as a result of correction of the characteristics of the spectroscopic element 60, that is, the intensity spectrum. That is, Rt is the spectrum of the light that actually enters the spectroscopic camera 100. M−1 represents the inverse matrix of the characteristics measured by the light receiver 70 and produced in accordance with Expression (7). P represents the output produced by the spectroscopic camera 100 and containing the light source characteristics and other characteristics.
Expression (9) below is an expression for determining the reflection spectrum. The reflection spectrum is determined in the form of an intensity spectrum, and white is measured, for example, before red is measured. Also in this case, the correction is performed in the same manner as described above.
For example, to determine the reflectance, the corrected intensity spectrum of red is divided by the intensity spectrum of the white, which is the reference, and the result of the division is then multiplied by original calibration data of the reference white to calculate a correct reflection spectrum of red. An accurate spectrum can thus be determined. The spectrum of the light from the light source can also be correctly measured, for example, by multiplication of a luminance calibration factor.
Specifically, the graphs show comparison between the true reflection spectra produced by the reference spectrometer and drawn with solid lines and the reflection spectra measured with the spectroscopic camera 100 drawn with broken lines, as in
The true reflection spectra (solid lines), which are the reference, and the corrected reflection spectra (broken lines) can be made to substantially equal to each other by using the method for correcting the spectroscopic camera 100 according to the present embodiment, as shown in
It has been shown that the correction method described above can be used to measure a reflection spectrum with substantial correctness, and the method can also be used to measure the spectrum of the light from the light source such as an LED with substantial correctness. When the light source is measured, the spectrum of the light from the light source is the true output Rt as a result of the correction of the spectral characteristics, and calibration of the true output Rt provides a correct luminance spectrum.
In the spectroscopic camera 100 using an etalon as the spectroscopic element 60, the spectral characteristics vary in accordance with the difference in angle between beams 33 and 34 incident on the spectroscopic element 60, in-plane gap unevenness in the spectroscopic element 60 itself, and the location of the light receiver 70, as shown in
A correction method for suppressing overfitting by adding a parameter (regularization) to the correction value will next be described with reference to
In the spectroscopic camera 100, when the intervals in the measurement is reduced, overfitting (incorrect evaluation due, for example, to magnified noise) occurs in some cases. In this case, correct spectral characteristics can be produced by adding a parameter (regularization) to the correction value, as shown in
Expressions (10) to (13) below show the correction method using an added parameter that suppresses overfitting that occurs in the spectroscopic camera 100.
Expression (11) shows that the parameter β is added to the product M of the characteristics. In Expression (11), I represents a unit matrix (E). Expression (12) determines the true output Rt as a result of correction of the characteristics of the spectroscopic element 60.
When the correction value M′−1 contains the parameter β as described above, overfitting portions F shown in
A basic form of the correction will next be described.
M represents the spectral characteristics measured and produced by the spectroscopic camera 100 in the form of a camera equipped with an etalon, that is, the spectroscopic element 60. The corrected output Rt from the light receiver can be determined by Expression (14). M† represents a correction value different from M−1. P represents the output from the light receiver.
Rt=M†P (14)
The corrected reflectance R can be determined by using Expression (15). RWhite-data represents a reference reflectance calibration value.
M in Expression (16) below represents the spectral characteristic of the spectroscopic camera 100 in the form of a camera. ET represents the spectral characteristic of an etalon, that is, the spectroscopic element 60. B represents the spectral characteristics of the bandpass filter (BPF) 50. PD represents the sensitivity of the light receiver 70. eλ represents the driving wavelength (measurement interval). A represents the data wavelength (data interval). n represents the number of data on eλ and λ.
M(eλn,λn)=ET(eλn,λn)×B(λn)×PD(λn) (16)
The spectral characteristics M are basically expressed by a square matrix having the same number of rows and columns. That is, the number of data on eλ is equal to the number of data on λ.
Expressions for determining the correction value M† in the case where the spectral characteristics M are expressed by a square matrix and the case where the spectral characteristics M are expressed by a non-square matrix will next be described with reference to
In the case where the spectral characteristics M are expressed by a square matrix, the correction value M†=inverse matrix M−1 of M, as indicated by Expressions (17) to (19) below. In the case where the spectral characteristics M are expressed by a non-square matrix, the correction value M† can be determined as a pseudo-inverse matrix, as indicated by Expression (20).
M†=MT·(M·MT)−1 (17)
M†=MT·MT−1·M−1( 18)
M†=M−1 (19)
M†=MT·(M·MT)−1 (20)
Specifically, there are three methods for determining the correction value M†, as indicated by Expressions (21) to (23) below. The three correction values M† are each a portion containing the regularization parameter β and the unit matrix I as a portion different from Expressions (19) and (20) described above.
M†=(M+βI)−1 (21)
M†=MT(M MT+βI)−1 (22)
M†=(M+β(MT)−1)−1 (23)
Expression (21) is an expression for determining the correction value M† in the case where the spectral characteristics M are expressed by a square matrix. Specifically, when the parameter β has a large value, the correction value M† approaches the unit matrix I=1 and becomes equal to the correction value M† in the case where no correction is made. On the other hand, when the parameter β is 0, the correction value M† is a simple inverse matrix M−1 of the spectral characteristics M. That is, the parameter β is a parameter that restricts the amount of correction. It can be said in a broad sense that the parameter β is a regularization parameter. Overfitting is a phenomenon caused by overcorrection and can therefore be suppressed by adjusting the parameter β.
Expression (22) is an expression for determining the correction value M† in the case where the spectral characteristics M are expressed by a non-square matrix. Specifically, Expression (22) is a generally known pseudo-inverse matrix to which a regularization term BI is attached. Even when the spectral characteristics M are expressed by a non-square matrix, the inverse matrix M† of M can be determined. For example, even in the case of an m×n matrix M in which the number of data on eλ is n=16 with the measurement interval being 20 nm and the number of data on λ is m=61 with the data interval being 5 nm, the inverse matrix of the matrix can be calculated, and the correction value M† can be produced. It is, however, noted that even when the measurement interval is 20 nm (n=16), the output interval after the correction is 5 nm (m=61).
Expression (23) is a simplified version of expression (22) provided that the spectral characteristics M are expressed by a square matrix in the pseudo-inverse matrix with a regularization term in Expression (22). Specifically, the term β(MT)−1 is the regularization term. The behavior of the correction value M† with respect to the parameter β differs from that in Expression (21). When the parameter β is 0, the correction value M† is the simple inverse matrix M−1 of M, as in Expression (21).
Expression (25) below shows the content of an expression for the correction. For example, multiplying the output outputted at 20-nm intervals from the light receiver over the range from 400 nm to 700 nm by a correction matrix (a correction value) allows determination of a matrix from 400 nm to 700 nm. The resultant matrix represents a spectrum. A measured light source spectrum S can be determined by using Expression (26). k represents a luminance calibration coefficient.
Rt=M†P (25)
S=k Rt (26)
As described above, the spectroscopic camera 100 according to the present embodiment includes the spectroscopic element 60 and the light receiver 70, and the method for correcting the spectroscopic camera 100 includes causing the light 31 having the first wave number from the spectroscopic light source 30 to be incident on the spectroscopic element 60, causing the light receiver 70 to receive the light 32 having the second wave number and outputted from the spectroscopic element 60, generating a matrix representing the spectral characteristics of the light 32 based on the output from the light receiver 70, and storing a correction matrix generated from the inverse matrix of the matrix in the storage section 24.
According to the method described above, the actual spectral characteristics produced from the light received by the light receiver 70 are corrected, the characteristics of other components, such as a medium and a light source, can be canceled out, whereby a correct optical spectrum that is not affected by the dependence of the characteristics of the other components can be measured, as compared with the related-art method for measuring an optical spectrum based on a correction value created in advance. In addition, it is not necessary to prepare data for the correction in advance, and a correction value can be created by using only the components of the spectroscopic camera 100, whereby a highly versatile spectroscopic camera 100 can be provided. A correct optical spectrum can be measured irrespective of the measurement target object.
In the spectroscopic camera 100, it is preferable that the inverse matrix contains the correction value M†, and that the correction value M† satisfies M†=(M+β·I)−1, where M represents the spectral characteristics, β represents the regularization parameter, and I represents a unit matrix. Using the expression causes the unit matrix I in the correction value M† to approach 1 when the regularization parameter β has a large value, M† has the same value as that in the case of no correction. When the regularization parameter β is zero, the correction value M† is the simple inverse matrix M−1 of the spectral characteristics M. That is, the regularization parameter β is a parameter that restricts the amount of correction. The overfitting can therefore be suppressed by adjusting the regularization parameter β.
In the spectroscopic camera 100, it is preferable that the inverse matrix contains the correction value M†, and that the correction value M† satisfies M†=MT (M·MT+β·I)−1, where M represents the spectral characteristics, β represents the regularization parameter, and I represents a unit matrix. According to the method described above, the correction value M† is a generally known pseudo-inverse matrix to which a regularization term β·I is attached, and can be determined even when the spectral characteristics M are expressed by a non-square matrix.
In the spectroscopic camera 100, it is preferable that the inverse matrix contains the correction value M†, and that the correction value M† satisfies M†=(M+β (MT)−1)−1, where M represents the spectral characteristic, and β represents the regularization parameter. According to the method described above, when the spectral characteristics M are expressed by a square matrix, the pseudo-inverse matrix with a regularization term according to claim 3 can be determined in a simplified manner. B (MT)−1 represents the regularization term. The behavior of the correction value M† with respect to the regularization parameter β differs from that in claim 2. When the regularization parameter β is 0, the correction value M† is a simple inverse matrix M−1 of the spectral characteristics M.
In the spectroscopic camera 100, it is preferable that the spectroscopic element 60 includes the pair of reflection films 63 and 64 and the gap changer 65 capable of changing the dimension of the gap between the pair of reflection films 63 and 64, and that the spectroscopic element 60 is disposed in the optical path of the light incident on the light receiver 70. According to the method described above, since the spectroscopic element 60 having the configuration described above is disposed in the optical path, a correct optical spectrum can be measured irrespective of the measurement target object as compared, for example, with a wavelength-dispersive spectroscopic element.
In the spectral camera 100, it is preferable that the light receiver 70 is a photosensor array. According to the method described above, since a photosensor array is used, a measurement target object can be measured over a wide range with high accuracy.
A computer program is a computer program for correcting the spectroscope camera 100 including the spectroscopic element 60 and the light receiver 70 and includes causing the light 31 having the first wave number from the spectroscopic light source 30 to be incident on the spectroscopic element 60, causing the light receiver 70 to receive the light 32 having the second wave number and outputted from the spectroscopic element 60, generating a matrix representing the spectral characteristics of the light 32 based on the output from the light receiver 70, and storing a correction matrix generated from the inverse matrix of the matrix in the storage section 24.
According to the computer program described above, the actual spectral characteristics produced from the light received by the light receiver 70 are corrected, the characteristics of other components, such as a medium and a light source, can be canceled out, whereby a correct optical spectrum that is not affected by the dependence of the characteristics of the other components can be measured, as compared with the related-art method for measuring an optical spectrum based on a correction value created in advance. In addition, it is not necessary to prepare data for the correction in advance, and a correction value can be created by using only the components of the spectroscopic camera 100, whereby a highly versatile spectroscopic camera 100 can be provided. A correct optical spectrum can be measured irrespective of the measurement target object.
A variation of the embodiment described above will be described below.
The spectrometer is not limited to the spectroscopic camera 100 described above and may, for example, be a spectroscopic camera 200 shown in
The spectroscopic camera 200 according to the variation, in which a general-purpose spectrophotometer 270 (Otsuka Electronics Co., Ltd., MCPD) is disposed in place of the light receiver 70, differs from the spectroscopic camera 100 according to the embodiment described above in terms of the portion that measures the spectral characteristics of the spectroscopic element 60.
The spectroscopic camera 200 according to the variation includes an illumination light source (LED) 130, the bandpass filter 50, the spectroscopic element 60, and the general-purpose spectrophotometer 270. A white tile is used as a reference measurement target object 210. In the measurement described above, the spectral characteristics of the spectroscopic element 60 further contain the spectral characteristics of the illumination light source 130, the reference measurement target object 210, and the bandpass filter 50.
To calculate the correction value M−1, the measured spectral characteristics are further multiplied by the spectral characteristics of the spectrophotometer 270 (light receiver). The spectral characteristics of the spectrophotometer 270 may be data from the manufacturer or data measured with a dedicated measurement tool that is separately provided. The method for calculating the reflectance R is the same method in the embodiment described above.
To calculate the correction value M−1 based on the inverse matrix, the original spectral characteristic data needs to be expressed by a square matrix (m×m) having the same number of rows and columns. However, even in the case of a matrix having different numbers of rows and columns, a correction value can be created by using a pseudo-inverse matrix, as indicated by Expressions (27) to (29) below. That is, even when the spectral characteristic measurement interval eλ and the data interval A differ from each other, a correction value can be created.
M(eλ,λ)=M′(eλ,λ)·PD(λ) (27)
M′(eλ,λ)=ET(eλ,λ)·S(λ)·B(λ)·TWhite(λ) (28)
Rt(λ)=M−1(eλ,λ)·P(eλ) (29)
The spectroscopic camera 200, which includes the built-in illumination light source 130, can measure the reflection spectrum of the white tile. When the illumination light source 130 is provided, the accuracy of the correction is improved by performing the measurement including measurement of the illumination light source 130. Furthermore, measurement using the high-precision spectrophotometer 270 allows measurement of a correct reflection spectrum.
The light receiver 70 described above may, for example, be a single photosensor, a photosensor array, an area sensor, an image sensor, or a camera.
In the embodiment described above, the light receiver 70 of the spectrometer includes an array of a plurality of two-dimensionally arranged photosensors, and may instead be formed of a single light receiving sensor.
Number | Date | Country | Kind |
---|---|---|---|
2021-083698 | May 2021 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7408645 | DiFoggio | Aug 2008 | B2 |
9163986 | Bouckaert | Oct 2015 | B2 |
9970817 | Sakurai | May 2018 | B2 |
10605660 | Raz et al. | Mar 2020 | B2 |
20110292386 | Funamoto | Dec 2011 | A1 |
20140052402 | Arai | Feb 2014 | A1 |
20140240711 | Matsushita | Aug 2014 | A1 |
20160091369 | Sakurai | Mar 2016 | A1 |
20190323887 | Ishihara | Oct 2019 | A1 |
20210025755 | Knobbe | Jan 2021 | A1 |
Number | Date | Country |
---|---|---|
2014038081 | Feb 2014 | JP |
Number | Date | Country | |
---|---|---|---|
20220373391 A1 | Nov 2022 | US |